Commit dd2424d1 authored by Paolo Maggi's avatar Paolo Maggi

Fix icon size

parent 4ea0cf40
2006-01-09 Paolo Maggi <paolo@gnome.org>
Patch by Steve Frécinaux <nud@apinc.org>
* gedit/gedit-panel.c (gedit_panel_add_item): crop the image to
GTK_ICON_SIZE_MENU size.
* plugins/pythonconsole/pythonconsole.py: use GTK_ICON_SIZE_MENU size
for the icon
2006-01-08 Paolo Maggi <paolo@gnome.org>
* gedit/sexy-icon-entry.c:
......
......@@ -697,7 +697,8 @@ gedit_panel_add_item (GeditPanel *panel,
GeditPanelItem *data;
GtkWidget *tab_label;
GtkWidget *menu_label;
gint w, h;
g_return_if_fail (GEDIT_IS_PANEL (panel));
g_return_if_fail (GTK_IS_WIDGET (item));
g_return_if_fail (name != NULL);
......@@ -718,6 +719,9 @@ gedit_panel_add_item (GeditPanel *panel,
data->icon = image;
}
gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &w, &h);
gtk_widget_set_size_request (data->icon, w, h);
data->toolbar = NULL;
g_object_set_data (G_OBJECT (item),
......
......@@ -11,7 +11,7 @@ class ConsolePlugin(gedit.Plugin):
bottom = window.get_bottom_panel()
image = gtk.Image()
image.set_from_icon_name("gnome-mime-text-x-python", gtk.ICON_SIZE_BUTTON)
image.set_from_icon_name("gnome-mime-text-x-python", gtk.ICON_SIZE_MENU)
bottom.add_item(cons, "Python Console", image)
# Store data in the window object
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment