diff --git a/data/icons/48x48/apps/terminator-custom-commands.png b/data/icons/48x48/apps/terminator-custom-commands.png new file mode 100644 index 00000000..5d71d3df Binary files /dev/null and b/data/icons/48x48/apps/terminator-custom-commands.png differ diff --git a/data/icons/48x48/apps/terminator-layout.png b/data/icons/48x48/apps/terminator-layout.png new file mode 100644 index 00000000..7a6d6b3c Binary files /dev/null and b/data/icons/48x48/apps/terminator-layout.png differ diff --git a/data/icons/48x48/apps/terminator-preferences.png b/data/icons/48x48/apps/terminator-preferences.png new file mode 100644 index 00000000..872bbb58 Binary files /dev/null and b/data/icons/48x48/apps/terminator-preferences.png differ diff --git a/data/icons/scalable/apps/terminator-custom-commands.svg b/data/icons/scalable/apps/terminator-custom-commands.svg new file mode 100644 index 00000000..ac1aca61 --- /dev/null +++ b/data/icons/scalable/apps/terminator-custom-commands.svg @@ -0,0 +1,627 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/icons/scalable/apps/terminator-layout.svg b/data/icons/scalable/apps/terminator-layout.svg new file mode 100644 index 00000000..18e9f4e6 --- /dev/null +++ b/data/icons/scalable/apps/terminator-layout.svg @@ -0,0 +1,909 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/icons/scalable/apps/terminator-preferences.svg b/data/icons/scalable/apps/terminator-preferences.svg new file mode 100644 index 00000000..f85f9490 --- /dev/null +++ b/data/icons/scalable/apps/terminator-preferences.svg @@ -0,0 +1,728 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/terminatorlib/layoutlauncher.py b/terminatorlib/layoutlauncher.py index e59048c3..8ea5bba5 100755 --- a/terminatorlib/layoutlauncher.py +++ b/terminatorlib/layoutlauncher.py @@ -5,6 +5,7 @@ import os import gtk +import gobject from util import dbg, err, spawn_new_terminator import config @@ -44,6 +45,15 @@ class LayoutLauncher: self.builder.add_from_string(gladedata) self.window = self.builder.get_object('layoutlauncherwin') + + icon_theme = gtk.IconTheme() + try: + icon = icon_theme.load_icon('terminator-layout', 48, 0) + except (NameError, gobject.GError): + dbg('Unable to load 48px Terminator preferences icon') + icon = self.window.render_icon(gtk.STOCK_DIALOG_INFO, gtk.ICON_SIZE_BUTTON) + self.window.set_icon(icon) + self.builder.connect_signals(self) self.window.connect('destroy', self.on_destroy_event) self.window.show_all() diff --git a/terminatorlib/plugins/custom_commands.py b/terminatorlib/plugins/custom_commands.py index 3d87e5b0..7cfb0579 100755 --- a/terminatorlib/plugins/custom_commands.py +++ b/terminatorlib/plugins/custom_commands.py @@ -10,10 +10,11 @@ if __name__ == '__main__': sys.path.append( os.path.join(os.path.dirname(__file__), "../..")) import gtk +import gobject import terminatorlib.plugin as plugin from terminatorlib.config import Config from terminatorlib.translation import _ -from terminatorlib.util import get_config_dir +from terminatorlib.util import get_config_dir, err, dbg (CC_COL_ENABLED, CC_COL_NAME, CC_COL_COMMAND) = range(0,3) @@ -122,6 +123,15 @@ class CustomCommandsMenu(plugin.MenuItem): gtk.STOCK_OK, gtk.RESPONSE_ACCEPT ) ) + + icon_theme = gtk.IconTheme() + try: + icon = icon_theme.load_icon('terminator-custom-commands', 48, 0) + except (NameError, gobject.GError): + dbg('Unable to load 48px Terminator preferences icon') + icon = dbox.render_icon(gtk.STOCK_DIALOG_INFO, gtk.ICON_SIZE_BUTTON) + dbox.set_icon(icon) + store = gtk.ListStore(bool, str, str) for command in [ self.cmd_list[key] for key in sorted(self.cmd_list.keys()) ]: diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index bbc063b7..de2cdcbe 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -9,6 +9,7 @@ write it to a config file import os import gtk +import gobject from util import dbg, err import config @@ -166,6 +167,15 @@ class PrefsEditor: self.builder.add_from_string(gladedata) self.window = self.builder.get_object('prefswin') + + icon_theme = gtk.IconTheme() + try: + icon = icon_theme.load_icon('terminator-preferences', 48, 0) + except (NameError, gobject.GError): + dbg('Unable to load 48px Terminator preferences icon') + icon = self.window.render_icon(gtk.STOCK_DIALOG_INFO, gtk.ICON_SIZE_BUTTON) + self.window.set_icon(icon) + self.layouteditor = LayoutEditor(self.builder) self.builder.connect_signals(self) self.layouteditor.prepare()