Use button size instead of menu
This commit is contained in:
1 parent
8a86af59fb
commit
164fe8015c
3 files changed
+13
-13
No files matched your search
@@ -70,7 +70,7 @@ class Action(object):
|
||||
eb_search.set_events(gtk.gdk.BUTTON_PRESS)
|
||||
eb_search.connect('button_press_event', self._sig_search)
|
||||
img_search = gtk.Image()
|
||||
img_search.set_from_stock('tryton-find', gtk.ICON_SIZE_MENU)
|
||||
img_search.set_from_stock('tryton-find', gtk.ICON_SIZE_BUTTON)
|
||||
img_search.set_alignment(0.5, 0.5)
|
||||
eb_search.add(img_search)
|
||||
hbox.pack_start(eb_search, expand=False, fill=False)
|
||||
@@ -80,7 +80,7 @@ class Action(object):
|
||||
eb_open.set_events(gtk.gdk.BUTTON_PRESS)
|
||||
eb_open.connect('button_press_event', self._sig_open)
|
||||
img_open = gtk.Image()
|
||||
img_open.set_from_stock('tryton-open', gtk.ICON_SIZE_MENU)
|
||||
img_open.set_from_stock('tryton-open', gtk.ICON_SIZE_BUTTON)
|
||||
img_open.set_alignment(0.5, 0.5)
|
||||
eb_open.add(img_open)
|
||||
hbox.pack_start(eb_open, expand=False, fill=False)
|
||||
@@ -93,7 +93,7 @@ class Action(object):
|
||||
eb_previous.set_events(gtk.gdk.BUTTON_PRESS)
|
||||
eb_previous.connect('button_press_event', self._sig_previous)
|
||||
img_previous = gtk.Image()
|
||||
img_previous.set_from_stock('tryton-go-previous', gtk.ICON_SIZE_MENU)
|
||||
img_previous.set_from_stock('tryton-go-previous', gtk.ICON_SIZE_BUTTON)
|
||||
img_previous.set_alignment(0.5, 0.5)
|
||||
eb_previous.add(img_previous)
|
||||
hbox.pack_start(eb_previous, expand=False, fill=False)
|
||||
@@ -106,7 +106,7 @@ class Action(object):
|
||||
eb_next.set_events(gtk.gdk.BUTTON_PRESS)
|
||||
eb_next.connect('button_press_event', self._sig_next)
|
||||
img_next = gtk.Image()
|
||||
img_next.set_from_stock('tryton-go-next', gtk.ICON_SIZE_MENU)
|
||||
img_next.set_from_stock('tryton-go-next', gtk.ICON_SIZE_BUTTON)
|
||||
img_next.set_alignment(0.5, 0.5)
|
||||
eb_next.add(img_next)
|
||||
hbox.pack_start(eb_next, expand=False, fill=False)
|
||||
@@ -118,7 +118,7 @@ class Action(object):
|
||||
eb_switch.set_events(gtk.gdk.BUTTON_PRESS)
|
||||
eb_switch.connect('button_press_event', self._sig_switch)
|
||||
img_switch = gtk.Image()
|
||||
img_switch.set_from_stock('tryton-fullscreen', gtk.ICON_SIZE_MENU)
|
||||
img_switch.set_from_stock('tryton-fullscreen', gtk.ICON_SIZE_BUTTON)
|
||||
img_switch.set_alignment(0.5, 0.5)
|
||||
eb_switch.add(img_switch)
|
||||
hbox.pack_start(eb_switch, expand=False, fill=False)
|
||||
|
||||
@@ -38,7 +38,7 @@ def _create_menu(self):
|
||||
self.eb_new.set_events(gtk.gdk.BUTTON_PRESS)
|
||||
self.eb_new.connect('button_press_event', self._sig_new)
|
||||
img_new = gtk.Image()
|
||||
img_new.set_from_stock('tryton-new', gtk.ICON_SIZE_MENU)
|
||||
img_new.set_from_stock('tryton-new', gtk.ICON_SIZE_BUTTON)
|
||||
img_new.set_alignment(0.5, 0.5)
|
||||
self.eb_new.add(img_new)
|
||||
hbox.pack_start(self.eb_new, expand=False, fill=False)
|
||||
@@ -48,7 +48,7 @@ def _create_menu(self):
|
||||
self.eb_open.set_events(gtk.gdk.BUTTON_PRESS)
|
||||
self.eb_open.connect('button_press_event', self._sig_edit)
|
||||
img_open = gtk.Image()
|
||||
img_open.set_from_stock('tryton-open', gtk.ICON_SIZE_MENU)
|
||||
img_open.set_from_stock('tryton-open', gtk.ICON_SIZE_BUTTON)
|
||||
img_open.set_alignment(0.5, 0.5)
|
||||
self.eb_open.add(img_open)
|
||||
hbox.pack_start(self.eb_open, expand=False, fill=False)
|
||||
@@ -58,7 +58,7 @@ def _create_menu(self):
|
||||
self.eb_del.set_events(gtk.gdk.BUTTON_PRESS)
|
||||
self.eb_del.connect('button_press_event', self._sig_remove)
|
||||
img_del = gtk.Image()
|
||||
img_del.set_from_stock('tryton-delete', gtk.ICON_SIZE_MENU)
|
||||
img_del.set_from_stock('tryton-delete', gtk.ICON_SIZE_BUTTON)
|
||||
img_del.set_alignment(0.5, 0.5)
|
||||
self.eb_del.add(img_del)
|
||||
hbox.pack_start(self.eb_del, expand=False, fill=False)
|
||||
@@ -70,7 +70,7 @@ def _create_menu(self):
|
||||
eb_pre.set_events(gtk.gdk.BUTTON_PRESS)
|
||||
eb_pre.connect('button_press_event', self._sig_previous)
|
||||
img_pre = gtk.Image()
|
||||
img_pre.set_from_stock('tryton-go-previous', gtk.ICON_SIZE_MENU)
|
||||
img_pre.set_from_stock('tryton-go-previous', gtk.ICON_SIZE_BUTTON)
|
||||
img_pre.set_alignment(0.5, 0.5)
|
||||
eb_pre.add(img_pre)
|
||||
hbox.pack_start(eb_pre, expand=False, fill=False)
|
||||
@@ -83,7 +83,7 @@ def _create_menu(self):
|
||||
eb_next.set_events(gtk.gdk.BUTTON_PRESS)
|
||||
eb_next.connect('button_press_event', self._sig_next)
|
||||
img_next = gtk.Image()
|
||||
img_next.set_from_stock('tryton-go-next', gtk.ICON_SIZE_MENU)
|
||||
img_next.set_from_stock('tryton-go-next', gtk.ICON_SIZE_BUTTON)
|
||||
img_next.set_alignment(0.5, 0.5)
|
||||
eb_next.add(img_next)
|
||||
hbox.pack_start(eb_next, expand=False, fill=False)
|
||||
@@ -95,7 +95,7 @@ def _create_menu(self):
|
||||
eb_switch.set_events(gtk.gdk.BUTTON_PRESS)
|
||||
eb_switch.connect('button_press_event', self.switch_view)
|
||||
img_switch = gtk.Image()
|
||||
img_switch.set_from_stock('tryton-fullscreen', gtk.ICON_SIZE_MENU)
|
||||
img_switch.set_from_stock('tryton-fullscreen', gtk.ICON_SIZE_BUTTON)
|
||||
img_switch.set_alignment(0.5, 0.5)
|
||||
eb_switch.add(img_switch)
|
||||
hbox.pack_start(eb_switch, expand=False, fill=False)
|
||||
|
||||
@@ -35,7 +35,7 @@ class Calendar(Interface):
|
||||
self.eb1.connect('button_press_event', self.cal_open, self.entry1,
|
||||
parent)
|
||||
img = gtk.Image()
|
||||
img.set_from_stock('tryton-find', gtk.ICON_SIZE_MENU)
|
||||
img.set_from_stock('tryton-find', gtk.ICON_SIZE_BUTTON)
|
||||
img.set_alignment(0.5, 0.5)
|
||||
self.eb1.add(img)
|
||||
self.widget.pack_start(self.eb1, expand=False, fill=False)
|
||||
@@ -54,7 +54,7 @@ class Calendar(Interface):
|
||||
self.eb2.connect('button_press_event', self.cal_open, self.entry2,
|
||||
parent)
|
||||
img = gtk.Image()
|
||||
img.set_from_stock('tryton-find', gtk.ICON_SIZE_MENU)
|
||||
img.set_from_stock('tryton-find', gtk.ICON_SIZE_BUTTON)
|
||||
img.set_alignment(0.5, 0.5)
|
||||
self.eb2.add(img)
|
||||
self.widget.pack_start(self.eb2, expand=False, fill=False)
|
||||
|
||||
Reference in new issue
Block a user