diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-01-03 05:32:14 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-01-03 05:32:14 +0800 |
commit | 64ea8d10a87fe73f712963104909f4897b0c4f11 (patch) | |
tree | 1bd873666afef36347bc10b6f9eed57758e68549 /e-util/e-categories-config.c | |
parent | 84c85d8eb70ca06ba9c608a83d1de6c814433c85 (diff) | |
download | gsoc2013-evolution-64ea8d10a87fe73f712963104909f4897b0c4f11.tar.gz gsoc2013-evolution-64ea8d10a87fe73f712963104909f4897b0c4f11.tar.zst gsoc2013-evolution-64ea8d10a87fe73f712963104909f4897b0c4f11.zip |
A bunch of fixes to make e-util build with -DG_DISABLE_DEPRECATED and
2003-01-02 Jeffrey Stedfast <fejj@ximian.com>
A bunch of fixes to make e-util build with -DG_DISABLE_DEPRECATED
and -DGTK_DISABLE_DEPRECATED.
svn path=/trunk/; revision=19210
Diffstat (limited to 'e-util/e-categories-config.c')
-rw-r--r-- | e-util/e-categories-config.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/e-util/e-categories-config.c b/e-util/e-categories-config.c index 987badebf9..6d286197b6 100644 --- a/e-util/e-categories-config.c +++ b/e-util/e-categories-config.c @@ -12,7 +12,6 @@ #include <libgnomeui/gnome-dialog.h> #include <libgnome/gnome-i18n.h> #include <gdk-pixbuf/gdk-pixbuf.h> -#include <gal/widgets/e-unicode.h> #include <gal/widgets/e-categories.h> #include "e-categories-config.h" #include "e-categories-master-list-wombat.h" @@ -176,34 +175,34 @@ e_categories_config_set_icon_for (const char *category, const char *icon_file) void e_categories_config_open_dialog_for_entry (GtkEntry *entry) { - char *categories; GnomeDialog *dialog; + const char *text; + char *categories; int result; - + g_return_if_fail (entry != NULL); g_return_if_fail (GTK_IS_ENTRY (entry)); - + if (!initialized) initialize_categories_config (); - - categories = e_utf8_gtk_entry_get_text (GTK_ENTRY (entry)); - dialog = GNOME_DIALOG (e_categories_new (categories)); - + + text = gtk_entry_get_text (GTK_ENTRY (entry)); + dialog = GNOME_DIALOG (e_categories_new (text)); + gtk_object_set (GTK_OBJECT (dialog), "ecml", ecmlw, NULL); - + /* run the dialog */ result = gnome_dialog_run (dialog); - g_free (categories); - + if (result == 0) { gtk_object_get (GTK_OBJECT (dialog), "categories", &categories, NULL); - e_utf8_gtk_entry_set_text (GTK_ENTRY (entry), categories); + gtk_entry_set_text (GTK_ENTRY (entry), categories); g_free (categories); } - + gtk_object_destroy (GTK_OBJECT (dialog)); } |