aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-url-entry.c
diff options
context:
space:
mode:
authorRodney Dawes <dobey@ximian.com>2004-04-19 23:18:37 +0800
committerRodney Dawes <dobey@src.gnome.org>2004-04-19 23:18:37 +0800
commitf4b4be936edef388577024f565b2f1643d4bd2f9 (patch)
treeeb1dc967076e1a46b25fb1c84c596ef94e40fbc9 /widgets/misc/e-url-entry.c
parent9b8a6860948ad7cd5d1c6a24360e4b59fc120fb2 (diff)
downloadgsoc2013-evolution-f4b4be936edef388577024f565b2f1643d4bd2f9.tar
gsoc2013-evolution-f4b4be936edef388577024f565b2f1643d4bd2f9.tar.gz
gsoc2013-evolution-f4b4be936edef388577024f565b2f1643d4bd2f9.tar.bz2
gsoc2013-evolution-f4b4be936edef388577024f565b2f1643d4bd2f9.tar.lz
gsoc2013-evolution-f4b4be936edef388577024f565b2f1643d4bd2f9.tar.xz
gsoc2013-evolution-f4b4be936edef388577024f565b2f1643d4bd2f9.tar.zst
gsoc2013-evolution-f4b4be936edef388577024f565b2f1643d4bd2f9.zip
Update to use EIconFactory to get the filename for the component icons
2004-04-19 Rodney Dawes <dobey@ximian.com> * 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 <mike@mterry.name> * e-combo-buddon.c: * e-url-entry.c: Update these to use EIconFactory and GtkImages directly instead of GdkPixmaps svn path=/trunk/; revision=25513
Diffstat (limited to 'widgets/misc/e-url-entry.c')
-rw-r--r--widgets/misc/e-url-entry.c6
1 files changed, 5 insertions, 1 deletions
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 <gtk/gtk.h>
#include <libgnome/gnome-url.h>
#include "e-url-entry.h"
+#include <e-util/e-icon-factory.h>
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);