remove AboutDialog-Window and make it a custom tab page instead

parent 16c8875e
......@@ -41,6 +41,8 @@ Overview of changes in v9.1 "Dial T for TNT"
* re-arrange some settings in 'Advanced' category. Rename 'Extra' sub-section
into 'BashStyle-NG', 'Misc' sub-section into 'Bash Builtin'.
* remove AboutDialog-Window and make it a custom tab page instead
* re-align widget groups for the better looks
* show what category the user is currently in, in the header
* added missing revert-to-default icons for PWD Length Spinbutton
......
This diff is collapsed.
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: BashStyle-NG\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-20 19:03+0200\n"
"POT-Creation-Date: 2015-09-21 19:29+0200\n"
"PO-Revision-Date: 2015-09-15 21:45+0200\n"
"Last-Translator: Christopher Roy Bratusek <nano@jpberlin.de>\n"
"Language-Team: German (Germany) (http://www.transifex.com/projects/p/bs-ng/"
......
This diff is collapsed.
......@@ -66,7 +66,7 @@ notebook_pages = {
_("Custom Prompt Builder") : 8,
_("Shell Options") : 10,
_("GIT") : 9,
_("About BashStyle-NG") : 0,
_("About BashStyle-NG") : 12,
_("Keybindings") : 11
}
......@@ -74,12 +74,6 @@ gtkbuilder = widgethandler.gtkbuilder
class IconBook(object):
def ShowAboutDialog(self):
aboutdialog = gtkbuilder.get_object("aboutdialog")
aboutdialog.show_all()
aboutdialog.connect("response", lambda w, e: w.hide() or True)
aboutdialog.connect("delete-event", lambda w, e: w.hide() or True)
def InitIconBook(self):
liststore = gtkbuilder.get_object("iconviewstore")
......@@ -91,6 +85,7 @@ class IconBook(object):
notebook = gtkbuilder.get_object("notebook")
notebook.set_current_page(0)
notebook.set_show_tabs(False)
main_label = gtkbuilder.get_object("main.label")
......@@ -112,15 +107,11 @@ class IconBook(object):
liststore.append([pixbuf, iconview_labels[icon]])
def iconview_activated(widget, item):
model = widget.get_model()
notebook.set_current_page(notebook_pages[model[item][1]])
if model[item][1] != _("About BashStyle-NG"):
back.set_visible(1)
main_label.set_text(_("Category: ") + _(model[item][1]))
if model[item][1] == _("Keybindings"):
use_keys_button.set_visible(1)
else:
self.ShowAboutDialog()
model = widget.get_model()
notebook.set_current_page(notebook_pages[model[item][1]])
back.set_visible(1)
main_label.set_text(_("Category: ") + _(model[item][1]))
if model[item][1] == _("Keybindings"):
use_keys_button.set_visible(1)
iconview.connect("item-activated", iconview_activated)
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