aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-splash.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-splash.c
parent2a7bc6967326be929beb1e0d7a3ba091022d59e9 (diff)
downloadgsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.gz
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.bz2
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.lz
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.xz
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-splash.c')
-rw-r--r--shell/e-splash.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/shell/e-splash.c b/shell/e-splash.c
index f56cf7c4e8..08a735c46f 100644
--- a/shell/e-splash.c
+++ b/shell/e-splash.c
@@ -137,8 +137,8 @@ icon_new (ESplash *splash,
static void
icon_free (Icon *icon)
{
- gdk_pixbuf_unref (icon->dark_pixbuf);
- gdk_pixbuf_unref (icon->light_pixbuf);
+ g_object_unref (icon->dark_pixbuf);
+ g_object_unref (icon->light_pixbuf);
/* g_object_unref (icon->canvas_item); */
@@ -168,7 +168,7 @@ layout_icons (ESplash *splash)
icon = (Icon *) p->data;
- gtk_object_set (GTK_OBJECT (icon->canvas_item),
+ g_object_set((icon->canvas_item),
"x", (double) x,
"y", (double) ICON_Y,
NULL);
@@ -219,7 +219,7 @@ impl_dispose (GObject *object)
priv = splash->priv;
if (priv->splash_image_pixbuf != NULL) {
- gdk_pixbuf_unref (priv->splash_image_pixbuf);
+ g_object_unref (priv->splash_image_pixbuf);
priv->splash_image_pixbuf = NULL;
}
@@ -265,7 +265,7 @@ class_init (ESplashClass *klass)
object_class->dispose = impl_dispose;
object_class->finalize = impl_finalize;
- parent_class = gtk_type_class (gtk_window_get_type ());
+ parent_class = g_type_class_ref(gtk_window_get_type ());
}
static void
@@ -317,7 +317,7 @@ e_splash_construct (ESplash *splash,
priv = splash->priv;
- priv->splash_image_pixbuf = gdk_pixbuf_ref (splash_image_pixbuf);
+ priv->splash_image_pixbuf = g_object_ref (splash_image_pixbuf);
canvas = gnome_canvas_new_aa ();
priv->canvas = GNOME_CANVAS (canvas);
@@ -327,7 +327,7 @@ e_splash_construct (ESplash *splash,
image_width = gdk_pixbuf_get_width (splash_image_pixbuf);
image_height = gdk_pixbuf_get_height (splash_image_pixbuf);
- gtk_widget_set_usize (canvas, image_width, image_height);
+ gtk_widget_set_size_request (canvas, image_width, image_height);
gnome_canvas_set_scroll_region (GNOME_CANVAS (canvas), 0, 0, image_width, image_height);
gtk_widget_show (canvas);
@@ -346,7 +346,7 @@ e_splash_construct (ESplash *splash,
g_signal_connect (splash, "button-press-event",
G_CALLBACK (button_press_event), splash);
- gtk_object_set (GTK_OBJECT (splash), "type", GTK_WINDOW_TOPLEVEL, NULL);
+ g_object_set((splash), "type", GTK_WINDOW_TOPLEVEL, NULL);
gtk_window_set_position (GTK_WINDOW (splash), GTK_WIN_POS_CENTER);
gtk_window_set_policy (GTK_WINDOW (splash), FALSE, FALSE, FALSE);
gtk_window_set_default_size (GTK_WINDOW (splash), image_width, image_height);
@@ -375,7 +375,7 @@ e_splash_new (void)
new = g_object_new (e_splash_get_type (), NULL);
e_splash_construct (new, splash_image_pixbuf);
- /* gdk_pixbuf_unref (splash_image_pixbuf); */
+ /* g_object_unref (splash_image_pixbuf); */
return GTK_WIDGET (new);
}
@@ -438,7 +438,7 @@ e_splash_set_icon_highlight (ESplash *splash,
icon = (Icon *) g_list_nth_data (priv->icons, num);
g_return_if_fail (icon != NULL);
- gtk_object_set (GTK_OBJECT (icon->canvas_item),
+ g_object_set((icon->canvas_item),
"pixbuf", highlight ? icon->light_pixbuf : icon->dark_pixbuf,
NULL);
}