Slightly modified version of Custom Commands Dialog fix from David Chandler
This commit is contained in:
parent
e6d20aa655
commit
3a5d86acb0
|
@ -157,8 +157,13 @@ class CustomCommandsMenu(plugin.MenuItem):
|
||||||
column = gtk.TreeViewColumn("Command", renderer, text=CC_COL_COMMAND)
|
column = gtk.TreeViewColumn("Command", renderer, text=CC_COL_COMMAND)
|
||||||
treeview.append_column(column)
|
treeview.append_column(column)
|
||||||
|
|
||||||
|
scroll_window = gtk.ScrolledWindow()
|
||||||
|
scroll_window.set_size_request(500, 250)
|
||||||
|
scroll_window.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
|
||||||
|
scroll_window.add_with_viewport(treeview)
|
||||||
|
|
||||||
hbox = gtk.HBox()
|
hbox = gtk.HBox()
|
||||||
hbox.pack_start(treeview)
|
hbox.pack_start(scroll_window, True, True)
|
||||||
dbox.vbox.pack_start(hbox)
|
dbox.vbox.pack_start(hbox)
|
||||||
|
|
||||||
button_box = gtk.VBox()
|
button_box = gtk.VBox()
|
||||||
|
@ -206,7 +211,7 @@ class CustomCommandsMenu(plugin.MenuItem):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
hbox.pack_start(button_box)
|
hbox.pack_start(button_box, False, True)
|
||||||
dbox.show_all()
|
dbox.show_all()
|
||||||
res = dbox.run()
|
res = dbox.run()
|
||||||
if res == gtk.RESPONSE_ACCEPT:
|
if res == gtk.RESPONSE_ACCEPT:
|
||||||
|
|
Loading…
Reference in New Issue