From 9d77b85ae36094fd1a0b07be4ebb69e047c9cec1 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 2 Dec 2002 03:23:57 +0000 Subject: changed to use a gtkdialog instead of a gnome one. 2002-11-27 Not Zed * main.c (show_development_warning): changed to use a gtkdialog instead of a gnome one. (warning_dialog_response_callback): clicked->response. * e-shell-folder-selection-dialog.c: Include gtk/gtkstock.h * e-shell-folder-creation-dialog.c: include gnome-dialog.h (dialog_response_cb): gtk_entry_get_text now returns const. Dont free result. * e-setup.c: include gnome-messagebox.h * *.c: (re)run fix.sh over all, for e_notice changes & pick up some deprecated functions. * e-shell-shared-folder-picker-dialog.c (shared_folder_discovery_callback): reformat e_notice call for script. * e-shell-offline-sync.c (impl_SyncFolderProgressListener_reportFailure): Fix e_notice call, we weren't passing type in. * e-shell-folder-commands.c (xfer_result_callback): changed around slightly to save some processing & allow a script to run. (e_shell_command_rename_folder): reformat e_notice call to help script. Include gnome-messagebox.h svn path=/trunk/; revision=18977 --- shell/e-shell-settings-dialog.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'shell/e-shell-settings-dialog.c') diff --git a/shell/e-shell-settings-dialog.c b/shell/e-shell-settings-dialog.c index 4161cba791..53ed1388f9 100644 --- a/shell/e-shell-settings-dialog.c +++ b/shell/e-shell-settings-dialog.c @@ -64,7 +64,7 @@ set_dialog_size (EShellSettingsDialog *dialog) width = gdk_string_width (font, "M") * 72; height = (font->ascent + font->descent) * 35; - gtk_widget_set_usize (GTK_WIDGET (dialog), width, height); + gtk_widget_set_size_request (GTK_WIDGET (dialog), width, height); } @@ -91,7 +91,7 @@ page_new (const char *title, Page *page; if (icon != NULL) - gdk_pixbuf_ref (icon); + g_object_ref (icon); page = g_new (Page, 1); page->title = g_strdup (title); @@ -111,7 +111,7 @@ page_free (Page *page) g_free (page->description); if (page->icon != NULL) - gdk_pixbuf_unref (page->icon); + g_object_unref (page->icon); g_free (page); } @@ -223,7 +223,7 @@ load_pages (EShellSettingsDialog *dialog) } if (icon != NULL) - gdk_pixbuf_unref (icon); + g_object_unref (icon); CORBA_exception_free (&ev); } @@ -315,7 +315,7 @@ class_init (EShellSettingsDialog *class) widget_class = GTK_WIDGET_CLASS (class); widget_class->realize = impl_realize; - parent_class = gtk_type_class (PARENT_TYPE); + parent_class = g_type_class_ref(PARENT_TYPE); } static void -- cgit v1.2.3