aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-categories-config.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-08-24 11:05:59 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-08-24 11:05:59 +0800
commit6c7d2845a47bed10293552f2082b239945ffcaea (patch)
tree55ae8a20c9d51472face17b7d90fe2b5a3269288 /e-util/e-categories-config.c
parent8c8922a3083671463819815e2d882871566b4dcf (diff)
downloadgsoc2013-evolution-6c7d2845a47bed10293552f2082b239945ffcaea.tar
gsoc2013-evolution-6c7d2845a47bed10293552f2082b239945ffcaea.tar.gz
gsoc2013-evolution-6c7d2845a47bed10293552f2082b239945ffcaea.tar.bz2
gsoc2013-evolution-6c7d2845a47bed10293552f2082b239945ffcaea.tar.lz
gsoc2013-evolution-6c7d2845a47bed10293552f2082b239945ffcaea.tar.xz
gsoc2013-evolution-6c7d2845a47bed10293552f2082b239945ffcaea.tar.zst
gsoc2013-evolution-6c7d2845a47bed10293552f2082b239945ffcaea.zip
cast warning, good ol win32 patches. (e_strftime): fix some clahey-code to
2005-08-23 Not Zed <NotZed@Ximian.com> * e-util.c (e_mkdir_hier): cast warning, good ol win32 patches. (e_strftime): fix some clahey-code to use the right variable and not try to modify const strings by stealth. * eggtrayicon.h: add missing prototype. * e-gui-utils.c (e_create_image_widget): remove unused pixbuf. * e-dialog-utils.c (dialog_realized): fix cast. (e_dialog_set_transient_for_xid): same. (e_file_dialog_save): fix cases for build. * e-categories-config.c (e_categories_config_open_dialog_for_entry): cast & use right type for text. (icons_table[]): remove unused. * e-account-list.c (e_account_list_remove_account_proxies): cast to fix warning. svn path=/trunk/; revision=30215
Diffstat (limited to 'e-util/e-categories-config.c')
-rw-r--r--e-util/e-categories-config.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/e-util/e-categories-config.c b/e-util/e-categories-config.c
index af5961ef5d..eaf5510c72 100644
--- a/e-util/e-categories-config.c
+++ b/e-util/e-categories-config.c
@@ -16,8 +16,6 @@
#include <libedataserverui/e-categories-dialog.h>
#include "e-categories-config.h"
-static GHashTable *icons_table = NULL;
-
/**
* e_categories_config_get_icon_for:
* @category: Category for which to get the icon.
@@ -78,7 +76,6 @@ e_categories_config_open_dialog_for_entry (GtkEntry *entry)
{
GtkDialog *dialog;
const char *text;
- char *categories;
int result;
g_return_if_fail (entry != NULL);
@@ -87,14 +84,14 @@ e_categories_config_open_dialog_for_entry (GtkEntry *entry)
text = gtk_entry_get_text (GTK_ENTRY (entry));
dialog = GTK_DIALOG (e_categories_dialog_new (text));
- gtk_window_set_transient_for (GTK_WINDOW (dialog), gtk_widget_get_toplevel (GTK_WIDGET (entry)));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW(gtk_widget_get_toplevel (GTK_WIDGET (entry))));
/* run the dialog */
result = gtk_dialog_run (dialog);
if (result == GTK_RESPONSE_OK) {
- categories = e_categories_dialog_get_categories (E_CATEGORIES_DIALOG (dialog));
- gtk_entry_set_text (GTK_ENTRY (entry), categories);
+ text = e_categories_dialog_get_categories (E_CATEGORIES_DIALOG (dialog));
+ gtk_entry_set_text (GTK_ENTRY (entry), text);
}
gtk_object_destroy (GTK_OBJECT (dialog));