Use E_ICON_SIZE_BUTTON for the icon size in the e_icon_factory_get_icon()

2004-05-17  Jeffrey Stedfast  <fejj@novell.com>

	* e-url-entry.c (init): Use E_ICON_SIZE_BUTTON for the icon size
	in the e_icon_factory_get_icon() call.

	* e-combo-button.c (create_empty_image_widget): Don't hard-code
	the size of the icon in pixels, instead use the appropriate
	E_ICON_SIZE_ enum.

svn path=/trunk/; revision=25930
This commit is contained in:
Jeffrey Stedfast
2004-05-17 17:10:39 +00:00
committed by Jeffrey Stedfast
parent c6edbf228c
commit a6d439b765
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2004-05-17 Jeffrey Stedfast <fejj@novell.com>
* e-url-entry.c (init): Use E_ICON_SIZE_BUTTON for the icon size
in the e_icon_factory_get_icon() call.
* e-combo-button.c (create_empty_image_widget): Don't hard-code
the size of the icon in pixels, instead use the appropriate
E_ICON_SIZE_ enum.
2004-05-17 JP Rosevear <jpr@novell.com>
Fixes #58460

View File

@ -73,7 +73,7 @@ create_empty_image_widget (void)
GtkWidget *image_widget;
GdkPixbuf *pixbuf;
pixbuf = e_icon_factory_get_icon (NULL, 16);
pixbuf = e_icon_factory_get_icon (NULL, E_ICON_SIZE_MENU);
image_widget = gtk_image_new_from_pixbuf (pixbuf);

View File

@ -104,7 +104,7 @@ 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);
pixbuf = e_icon_factory_get_icon ("stock_connect-to-url", 16);
pixbuf = e_icon_factory_get_icon ("stock_connect-to-url", E_ICON_SIZE_BUTTON);
pixmap = gtk_image_new_from_pixbuf (pixbuf);
g_object_unref (pixbuf);
gtk_container_add (GTK_CONTAINER (priv->button), pixmap);