aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-folder-title-bar.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-12-02 11:23:57 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-12-02 11:23:57 +0800
commit9d77b85ae36094fd1a0b07be4ebb69e047c9cec1 (patch)
treebbbaa747e8cf40cb220d651d4b2fdd8159fae652 /shell/e-shell-folder-title-bar.c
parent2a7bc6967326be929beb1e0d7a3ba091022d59e9 (diff)
downloadgsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.gz
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.zst
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.zip
changed to use a gtkdialog instead of a gnome one.
2002-11-27 Not Zed <NotZed@Ximian.com> * 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
Diffstat (limited to 'shell/e-shell-folder-title-bar.c')
-rw-r--r--shell/e-shell-folder-title-bar.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/shell/e-shell-folder-title-bar.c b/shell/e-shell-folder-title-bar.c
index 328e867828..3f20c8b189 100644
--- a/shell/e-shell-folder-title-bar.c
+++ b/shell/e-shell-folder-title-bar.c
@@ -168,7 +168,7 @@ new_empty_pixmap_widget (void)
gdk_pixbuf_render_pixmap_and_mask (empty_pixbuf, &pixmap, &mask, 127);
pixmap_widget = gtk_pixmap_new (pixmap, mask);
- gdk_pixbuf_unref (empty_pixbuf);
+ g_object_unref (empty_pixbuf);
return pixmap_widget;
}
@@ -393,7 +393,7 @@ impl_dispose (GObject *object)
priv = folder_title_bar->priv;
if (priv->icon != NULL) {
- gdk_pixbuf_unref (priv->icon);
+ g_object_unref (priv->icon);
priv->icon = NULL;
}
@@ -469,12 +469,12 @@ class_init (EShellFolderTitleBarClass *klass)
widget_class = GTK_WIDGET_CLASS (klass);
widget_class->size_allocate = impl_size_allocate;
- parent_class = gtk_type_class (PARENT_TYPE);
+ parent_class = g_type_class_ref(PARENT_TYPE);
signals[TITLE_TOGGLED] = gtk_signal_new ("title_toggled",
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
- GTK_SIGNAL_OFFSET (EShellFolderTitleBarClass, title_toggled),
+ G_STRUCT_OFFSET (EShellFolderTitleBarClass, title_toggled),
e_shell_marshal_NONE__BOOL,
GTK_TYPE_NONE, 1,
GTK_TYPE_BOOL);
@@ -482,14 +482,14 @@ class_init (EShellFolderTitleBarClass *klass)
signals[BACK_CLICKED] = gtk_signal_new ("back_clicked",
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
- GTK_SIGNAL_OFFSET (EShellFolderTitleBarClass, back_clicked),
+ G_STRUCT_OFFSET (EShellFolderTitleBarClass, back_clicked),
e_shell_marshal_NONE__NONE,
GTK_TYPE_NONE, 0);
signals[FORWARD_CLICKED] = gtk_signal_new ("forward_clicked",
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
- GTK_SIGNAL_OFFSET (EShellFolderTitleBarClass, forward_clicked),
+ G_STRUCT_OFFSET (EShellFolderTitleBarClass, forward_clicked),
e_shell_marshal_NONE__NONE,
GTK_TYPE_NONE, 0);
}
@@ -708,12 +708,12 @@ e_shell_folder_title_bar_set_icon (EShellFolderTitleBar *folder_title_bar,
if (icon == NULL) {
if (priv->icon != NULL)
- gdk_pixbuf_unref (priv->icon);
+ g_object_unref (priv->icon);
priv->icon = new_empty_pixbuf ();
} else {
- gdk_pixbuf_ref (icon);
+ g_object_ref (icon);
if (priv->icon != NULL)
- gdk_pixbuf_unref (priv->icon);
+ g_object_unref (priv->icon);
priv->icon = icon;
}