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
This commit is contained in:
Rodrigo Moya
2005-01-07 17:02:27 +00:00
committed by Rodrigo Moya
parent 621fa44198
commit 754665c5aa
2 changed files with 9 additions and 10 deletions

View File

@ -1,3 +1,8 @@
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.
2005-01-06 Rodney Dawes <dobey@novell.com>
* e-config.c (e_config_create_window): Add the GTK_DIALOG_NOSEPARATOR

View File

@ -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));