From 754665c5aa85c322f31c74d4e2d0467efd4a3a38 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Fri, 7 Jan 2005 17:02:27 +0000 Subject: use the new ECategoriesDialog in libedataserverui. 2005-01-07 Rodrigo Moya * e-categories-config.c (e_categories_config_open_dialog_for_entry): use the new ECategoriesDialog in libedataserverui. svn path=/trunk/; revision=28274 --- e-util/ChangeLog | 5 +++++ e-util/e-categories-config.c | 14 ++++---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/e-util/ChangeLog b/e-util/ChangeLog index dd71c5e11c..248d2c0c68 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2005-01-07 Rodrigo Moya + + * e-categories-config.c (e_categories_config_open_dialog_for_entry): + use the new ECategoriesDialog in libedataserverui. + 2005-01-06 Rodney Dawes * e-config.c (e_config_create_window): Add the GTK_DIALOG_NOSEPARATOR diff --git a/e-util/e-categories-config.c b/e-util/e-categories-config.c index da72879aae..cdd1c0b9ed 100644 --- a/e-util/e-categories-config.c +++ b/e-util/e-categories-config.c @@ -12,10 +12,9 @@ #include #include #include -#include #include +#include #include "e-categories-config.h" -#include "e-categories-master-list-wombat.h" static GHashTable *icons_table = NULL; @@ -81,24 +80,19 @@ e_categories_config_open_dialog_for_entry (GtkEntry *entry) const char *text; char *categories; int result; - ECategoriesMasterListWombat *ecmlw; g_return_if_fail (entry != NULL); g_return_if_fail (GTK_IS_ENTRY (entry)); text = gtk_entry_get_text (GTK_ENTRY (entry)); - dialog = GTK_DIALOG (e_categories_new (text)); - - ecmlw = e_categories_master_list_wombat_new (); - g_object_set (dialog, "ecml", ecmlw, NULL); - + dialog = GTK_DIALOG (e_categories_dialog_new (text)); + /* run the dialog */ result = gtk_dialog_run (dialog); if (result == GTK_RESPONSE_OK) { - g_object_get (dialog, "categories", &categories, NULL); + categories = e_categories_dialog_get_categories (E_CATEGORIES_DIALOG (dialog)); gtk_entry_set_text (GTK_ENTRY (entry), categories); - g_free (categories); } gtk_object_destroy (GTK_OBJECT (dialog)); -- cgit v1.2.3