aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-categories-config.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@novell.com>2005-01-08 01:02:27 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2005-01-08 01:02:27 +0800
commit754665c5aa85c322f31c74d4e2d0467efd4a3a38 (patch)
tree9d9a34b1e8f483de51c564b811e678bf9bbfcf09 /e-util/e-categories-config.c
parent621fa441983c036519b49a8a200c9ee69715856b (diff)
downloadgsoc2013-evolution-754665c5aa85c322f31c74d4e2d0467efd4a3a38.tar.gz
gsoc2013-evolution-754665c5aa85c322f31c74d4e2d0467efd4a3a38.tar.zst
gsoc2013-evolution-754665c5aa85c322f31c74d4e2d0467efd4a3a38.zip
use the new ECategoriesDialog in libedataserverui.
2005-01-07 Rodrigo Moya <rodrigo@novell.com> * e-categories-config.c (e_categories_config_open_dialog_for_entry): use the new ECategoriesDialog in libedataserverui. svn path=/trunk/; revision=28274
Diffstat (limited to 'e-util/e-categories-config.c')
-rw-r--r--e-util/e-categories-config.c14
1 files changed, 4 insertions, 10 deletions
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 <gtk/gtkdialog.h>
#include <libgnome/gnome-i18n.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gal/widgets/e-categories.h>
#include <libedataserver/e-categories.h>
+#include <libedataserverui/e-categories-dialog.h>
#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));