From f4b4be936edef388577024f565b2f1643d4bd2f9 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Mon, 19 Apr 2004 15:18:37 +0000 Subject: Update to use EIconFactory to get the filename for the component icons 2004-04-19 Rodney Dawes * e-info-label.c (e_info_label_new): Update to use EIconFactory to get the filename for the component icons using the icon theme 2004-04-19 Michael Terry * e-combo-buddon.c: * e-url-entry.c: Update these to use EIconFactory and GtkImages directly instead of GdkPixmaps svn path=/trunk/; revision=25513 --- widgets/misc/e-url-entry.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'widgets/misc/e-url-entry.c') diff --git a/widgets/misc/e-url-entry.c b/widgets/misc/e-url-entry.c index 4b680b1add..dad935b1da 100644 --- a/widgets/misc/e-url-entry.c +++ b/widgets/misc/e-url-entry.c @@ -28,6 +28,7 @@ #include #include #include "e-url-entry.h" +#include struct _EUrlEntryPrivate { GtkWidget *entry; @@ -93,6 +94,7 @@ init (EUrlEntry *url_entry) { EUrlEntryPrivate *priv; GtkWidget *pixmap; + GdkPixbuf *pixbuf; priv = g_new0 (EUrlEntryPrivate, 1); url_entry->priv = priv; @@ -102,7 +104,9 @@ init (EUrlEntry *url_entry) priv->button = gtk_button_new (); gtk_widget_set_sensitive (priv->button, FALSE); gtk_box_pack_start (GTK_BOX (url_entry), priv->button, FALSE, FALSE, 0); - pixmap = gtk_image_new_from_file (MAP_DIR "/connect_to_url-16.xpm"); + pixbuf = e_icon_factory_get_icon ("stock_connect-to-url", 16); + pixmap = gtk_image_new_from_pixbuf (pixbuf); + g_object_unref (pixbuf); gtk_container_add (GTK_CONTAINER (priv->button), pixmap); gtk_widget_show (pixmap); -- cgit v1.2.3