From 432a39b1727a63bacd6ac31cb7d8d77fbf63198f Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sun, 29 Nov 2009 17:36:22 +0000 Subject: [PATCH] better icon for tab close buttons --- pyfpdb/fpdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/fpdb.py b/pyfpdb/fpdb.py index 14117bdf..7f488116 100755 --- a/pyfpdb/fpdb.py +++ b/pyfpdb/fpdb.py @@ -159,10 +159,10 @@ class fpdb: def add_icon_to_button(self, button): iconBox = gtk.HBox(False, 0) image = gtk.Image() - image.set_from_stock(gtk.STOCK_CLOSE, gtk.ICON_SIZE_MENU) + image.set_from_stock(gtk.STOCK_CLOSE, gtk.ICON_SIZE_SMALL_TOOLBAR) gtk.Button.set_relief(button, gtk.RELIEF_NONE) settings = gtk.Widget.get_settings(button); - (w,h) = gtk.icon_size_lookup_for_settings(settings, gtk.ICON_SIZE_MENU); + (w,h) = gtk.icon_size_lookup_for_settings(settings, gtk.ICON_SIZE_SMALL_TOOLBAR); gtk.Widget.set_size_request (button, w + 4, h + 4); image.show() iconBox.pack_start(image, True, False, 0)