From: handa Date: Tue, 27 Mar 2007 01:14:38 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: REL-0-9-0~30 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb2777d7b6bd440acb4fd6460d470171a89f854a;p=m17n%2Fm17n-im-config.git *** empty log message *** --- diff --git a/README b/README index 66508c3..8ca8385 100644 --- a/README +++ b/README @@ -60,6 +60,10 @@ GtkWidget *mim_config_new (GCallback func, gpointer data) function must have two arguments; the widget created by this function, and DATA. + The widget returned is actually a GtkScrolledWindow widget + that contains a GtkTreeView widget. You can get this + GtkTreeView widget by mim_config_get_tree_view () function. + gboolean mim_config_modified (GtkWidget *config) The mim_config_modified () function checks if there are any @@ -83,6 +87,12 @@ gboolean mim_config_save (GtkWidget *config) to save, FALSE is returned. The argument CONFIG must be what created by mim_config_new (). +GtkTreeView *mim_config_get_tree_view (GtkWidget *config) + + The mim_config_get_tree_view () function returns the + GtkTreeView widget used in the widget created by + mim_config_new (). + (3-2) Compiling and Linking As this package provides pkgconfig data, you can see compiler and diff --git a/src/m17n-im-config.h b/src/m17n-im-config.h index 8e04981..b93a0df 100644 --- a/src/m17n-im-config.h +++ b/src/m17n-im-config.h @@ -32,6 +32,7 @@ extern GtkWidget *mim_config_new (GCallback func, gpointer data); extern gboolean mim_config_modified (GtkWidget *config); extern gboolean mim_config_revert (GtkWidget *config); extern gboolean mim_config_save (GtkWidget *config); +extern GtkTreeView *mim_config_get_tree_view (GtkWidget *config); G_END_DECLS diff --git a/src/mim-config.c b/src/mim-config.c index 6923125..5c5218a 100644 --- a/src/mim-config.c +++ b/src/mim-config.c @@ -594,3 +594,12 @@ mim_config_save (GtkWidget *config) gtk_tree_model_foreach (model, set_as_saved, config_status); return TRUE; } + +GtkTreeView * +mim_config_get_tree_view (GtkWidget *config) +{ + GtkTreeView *tree; + + tree = g_object_get_data (G_OBJECT (config), CONFIG_TREE_VIEW); + return tree; +}