From 6c7d2845a47bed10293552f2082b239945ffcaea Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 24 Aug 2005 03:05:59 +0000 Subject: cast warning, good ol win32 patches. (e_strftime): fix some clahey-code to 2005-08-23 Not Zed * 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 --- e-util/e-dialog-utils.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'e-util/e-dialog-utils.c') diff --git a/e-util/e-dialog-utils.c b/e-util/e-dialog-utils.c index 63d3f1d74c..716bd71f8d 100644 --- a/e-util/e-dialog-utils.c +++ b/e-util/e-dialog-utils.c @@ -197,7 +197,7 @@ e_dialog_set_transient_for (GtkWindow *dialog, static void dialog_realized (GtkWindow *dialog, gpointer xid) { - e_dialog_set_transient_for_xid (dialog, (GdkNativeWindow)xid); + e_dialog_set_transient_for_xid (dialog, (GdkNativeWindow)GPOINTER_TO_INT(xid)); } /** @@ -222,7 +222,7 @@ e_dialog_set_transient_for_xid (GtkWindow *dialog, if (!GTK_WIDGET_REALIZED (dialog)) { g_signal_connect (dialog, "realize", G_CALLBACK (dialog_realized), - (gpointer) xid); + GINT_TO_POINTER(xid)); return; } @@ -294,7 +294,7 @@ char * e_file_dialog_save (const char *title) { GtkWidget *selection; - char *path, *filename = NULL; + char *filename = NULL; #ifdef USE_GTKFILECHOOSER selection = gtk_file_chooser_dialog_new (title, @@ -308,6 +308,8 @@ e_file_dialog_save (const char *title) g_signal_connect (G_OBJECT (selection), "response", G_CALLBACK (filechooser_response), &filename); #else + char *path; + selection = gtk_file_selection_new (title); path = g_strdup_printf ("%s/", g_get_home_dir ()); gtk_file_selection_set_filename (GTK_FILE_SELECTION (selection), path); -- cgit