From 07af1b3cf2be1ab441f2db2721969a6b5014e0bd Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Tue, 29 Oct 2013 14:57:01 +0100 Subject: [PATCH] Add icons to the additional windows (Launcher, Preferences and Custom Commands) Improvements welcome ;-) --- .../48x48/apps/terminator-custom-commands.png | Bin 0 -> 3247 bytes data/icons/48x48/apps/terminator-layout.png | Bin 0 -> 3059 bytes .../48x48/apps/terminator-preferences.png | Bin 0 -> 3741 bytes .../apps/terminator-custom-commands.svg | 627 ++++++++++++ .../icons/scalable/apps/terminator-layout.svg | 909 ++++++++++++++++++ .../scalable/apps/terminator-preferences.svg | 728 ++++++++++++++ terminatorlib/layoutlauncher.py | 10 + terminatorlib/plugins/custom_commands.py | 12 +- terminatorlib/prefseditor.py | 10 + 9 files changed, 2295 insertions(+), 1 deletion(-) create mode 100644 data/icons/48x48/apps/terminator-custom-commands.png create mode 100644 data/icons/48x48/apps/terminator-layout.png create mode 100644 data/icons/48x48/apps/terminator-preferences.png create mode 100644 data/icons/scalable/apps/terminator-custom-commands.svg create mode 100644 data/icons/scalable/apps/terminator-layout.svg create mode 100644 data/icons/scalable/apps/terminator-preferences.svg 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 0000000000000000000000000000000000000000..5d71d3dfd18277ef81e61efb789c0653915e85d3 GIT binary patch literal 3247 zcmV;g3{dllP)cY-ZQYgWXzz3~nGEo{<^PS4ARvNBa4#a1OC@d&-?Y#C@BdUQ zUiHrp{M{G79RoQ0?VZjRDtN96!aJ5D#Hf^-BY=&p#XM4g zgd8HC5ukb=O5t0}#nDmLScw&Et;HIvVgPd$AOU|HJpQ{6d>9pKqW)6M-ir<1*Y6V% z{zU?QpD|`uFqz#qpU3<)MEJcIUjz{xrO?_(0Amcs8Wsgm4+JX|cWx)q+)Uxc7pRuX zh=9YakVMvrg|kfbZDXQ)9lfFZ{Rr6T)yNz@N_lE3u%L?0N@$5$J_;MI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VDo7#$rQ0C=8<)|yNvLnf2Kbpw~sTI2gZrBW%51Avj?VN9h$+vF6~7W%)cvp~Il ztescLq8Kn*qy4ZBgbcp*jxZx5BMe@+KznB=Teoj#_?1^UJ8+tdU;Q#QWnQxvswc7YEMTlf!szxx|BV17 zD;_P8H6DDBE&KP!hX24zJ8s_W5=j``qO;yfd}G!T5HapIm4}k z2Qi=e6oonW zi~tW9{^x(9p}CpTtx=q0k`9qMb;9#JtT9|2y2`D8{UR+ZR^m?= z2)a=Z*O?v2&o08?S0ha#ynD%egDmbs^)cW;T?~ZH9LBJ^s|z5W$KJ>l(XYirDb}xB zN3}egf){3?u$}h(AO>a$ z>3N<-*cn?a8* zS6v9XEfmKK&QS&ArOdU^__6t3%%%jK}fGWhbKclq+whsJ+7 zUQj?5XzJhhfj{nC(fNhFzq>EJzNc5Uw6w&(7}~JauwvuEB^V!VxF=e(;hJEriO*WG z@z7*qUg3ZgT_GQ_67Qc~vy^6LC=~McmEoJ-*x2~r9y@ycyTG&pQa}#KZQQbP!={ZJ z{>n`ycPSM&o^J;d5hneb_lxrvFMa9Sm1~1Q87Qf6Moj~a1lGs^4M36r!0Ru?zgY@K z!`arW3RHj@pd9~Btdw$@6+Q(dczXbdgtvgE4upt^nx8hqqU45`!&?u)QU^dp<`jkn h0N!czj{j$m{|C}jL7qC)@z?+W002ovPDHLkV1mAdF984m literal 0 HcmV?d00001 diff --git a/data/icons/48x48/apps/terminator-layout.png b/data/icons/48x48/apps/terminator-layout.png new file mode 100644 index 0000000000000000000000000000000000000000..7a6d6b3c5bc0785dc3aa996052cc2e54922bbb8f GIT binary patch literal 3059 zcmVv$P)BUM$@{!=yTf2|Z%YNMn|tn{J&Q7K5R97rOZL{ZX0niP_N5{eUIjEMoW zHjW+R$1dLWj(2D0dC%k5KhB*yv$L}hLIU9@oxS&-x%YQ|-{1S(yGlfOJClB^1$d+M zwg(XPUhLn$?+Vd+FQ{8Y{G^De*UL~u@ZKj!LB#)($H2#nfOt_lnnC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minator-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()