From 3abe3b2366168ee7c497f37f7fff744d97581a7c Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Mon, 10 Jan 2000 04:27:40 +0000 Subject: *** empty log message *** svn path=/trunk/; revision=1550 --- widgets/shortcut-bar/e-shortcut-bar.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'widgets/shortcut-bar/e-shortcut-bar.c') diff --git a/widgets/shortcut-bar/e-shortcut-bar.c b/widgets/shortcut-bar/e-shortcut-bar.c index 7ad00feb78..842a8927f9 100644 --- a/widgets/shortcut-bar/e-shortcut-bar.c +++ b/widgets/shortcut-bar/e-shortcut-bar.c @@ -48,7 +48,7 @@ typedef struct _EShortcutBarBuiltinType EShortcutBarBuiltinType; struct _EShortcutBarBuiltinType { gchar *name; gchar *filename; - GdkImlibImage *image; + GdkPixbuf *image; }; EShortcutBarBuiltinType e_shortcut_bar_builtin_types[] = { @@ -60,7 +60,7 @@ EShortcutBarBuiltinType e_shortcut_bar_builtin_types[] = { static gint e_shortcut_bar_num_builtin_types = sizeof (e_shortcut_bar_builtin_types) / sizeof (EShortcutBarBuiltinType); gboolean e_shortcut_bar_default_type_image_loaded = FALSE; -GdkImlibImage *e_shortcut_bar_default_type_image = NULL; +GdkPixbuf *e_shortcut_bar_default_type_image = NULL; gchar *e_shortcut_bar_default_type_filename = "gnome-balsa2.png"; static void e_shortcut_bar_class_init (EShortcutBarClass *class); @@ -95,9 +95,9 @@ static void e_shortcut_bar_on_drag_data_delete (GtkWidget *widget, EShortcutBar *shortcut_bar); static void e_shortcut_bar_stop_editing (GtkWidget *button, EShortcutBar *shortcut_bar); -static GdkImlibImage* e_shortcut_bar_get_image_from_url (EShortcutBar *shortcut_bar, +static GdkPixbuf* e_shortcut_bar_get_image_from_url (EShortcutBar *shortcut_bar, gchar *item_url); -static GdkImlibImage* e_shortcut_bar_load_image (gchar *filename); +static GdkPixbuf* e_shortcut_bar_load_image (gchar *filename); enum @@ -280,7 +280,7 @@ e_shortcut_bar_add_item (EShortcutBar *shortcut_bar, gint group_num, gchar *item_url, gchar *item_name) { EShortcutBarGroup *group; - GdkImlibImage *image; + GdkPixbuf *image; gint item_num; g_return_val_if_fail (E_IS_SHORTCUT_BAR (shortcut_bar), -1); @@ -290,7 +290,6 @@ e_shortcut_bar_add_item (EShortcutBar *shortcut_bar, gint group_num, g_return_val_if_fail (item_name != NULL, -1); image = e_shortcut_bar_get_image_from_url (shortcut_bar, item_url); - group = &g_array_index (shortcut_bar->groups, EShortcutBarGroup, group_num); @@ -437,7 +436,7 @@ e_shortcut_bar_on_drag_data_received (GtkWidget *widget, EShortcutBarGroup *group; gchar *item_name, *item_url; EIconBar *icon_bar; - GdkImlibImage *image; + GdkPixbuf *image; gint group_num, item_num; icon_bar = E_ICON_BAR (widget); @@ -518,7 +517,7 @@ e_shortcut_bar_stop_editing (GtkWidget *button, } -static GdkImlibImage* +static GdkPixbuf * e_shortcut_bar_get_image_from_url (EShortcutBar *shortcut_bar, gchar *item_url) { @@ -547,15 +546,15 @@ e_shortcut_bar_get_image_from_url (EShortcutBar *shortcut_bar, } -static GdkImlibImage* +static GdkPixbuf * e_shortcut_bar_load_image (gchar *filename) { gchar *pathname; - GdkImlibImage *image = NULL; + GdkPixbuf *image = NULL; pathname = gnome_pixmap_file (filename); if (pathname) - image = gdk_imlib_load_image (pathname); + image = gdk_pixbuf_new_from_file (pathname); else g_warning ("Couldn't find pixmap: %s", filename); -- cgit v1.2.3