From 4bc30a90723b94823dc036497f2aaddd03429fb3 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Fri, 6 Nov 2009 13:22:35 +0000 Subject: [PATCH] Changed logo back to mint logo, and added hover icon --- usr/lib/bonobo/servers/mintMenu.server | 2 +- usr/lib/linuxmint/mintMenu/mint-logo.svg | 613 ++++++++++++++++++ usr/lib/linuxmint/mintMenu/mintMenu.py | 18 +- usr/lib/linuxmint/mintMenu/mintMenu_hover.png | Bin 0 -> 1118 bytes 4 files changed, 630 insertions(+), 3 deletions(-) create mode 100644 usr/lib/linuxmint/mintMenu/mint-logo.svg create mode 100644 usr/lib/linuxmint/mintMenu/mintMenu_hover.png diff --git a/usr/lib/bonobo/servers/mintMenu.server b/usr/lib/bonobo/servers/mintMenu.server index b422b91..1a3a169 100755 --- a/usr/lib/bonobo/servers/mintMenu.server +++ b/usr/lib/bonobo/servers/mintMenu.server @@ -21,6 +21,6 @@ - + diff --git a/usr/lib/linuxmint/mintMenu/mint-logo.svg b/usr/lib/linuxmint/mintMenu/mint-logo.svg new file mode 100644 index 0000000..e4a5477 --- /dev/null +++ b/usr/lib/linuxmint/mintMenu/mint-logo.svg @@ -0,0 +1,613 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/usr/lib/linuxmint/mintMenu/mintMenu.py b/usr/lib/linuxmint/mintMenu/mintMenu.py index 7156b9b..186f797 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenu.py +++ b/usr/lib/linuxmint/mintMenu/mintMenu.py @@ -42,8 +42,9 @@ except ImportError: gettext.install("mintmenu", "/usr/share/linuxmint/locale") NAME = _("Menu") -ICON = "/usr/lib/linuxmint/mintMenu/icon.svg" PATH = os.path.abspath( os.path.dirname( sys.argv[0] ) ) +ICON = "/usr/lib/linuxmint/mintMenu/mintMenu.png" +ICON_HOVER = "/usr/lib/linuxmint/mintMenu/mintMenu_hover.png" sys.path.append( os.path.join( PATH , "plugins") ) @@ -566,6 +567,8 @@ class MenuWin( object ): self.applet.connect( "button-press-event", self.showMenu ) self.applet.connect( "change-orient", self.changeOrientation ) self.applet.connect( "change-background", self.changeBackground ) + self.applet.connect("enter-notify-event", self.enter_notify) + self.applet.connect("leave-notify-event", self.leave_notify) self.mainwin = MainWindow( self.button_box ) self.mainwin.window.connect( "map-event", lambda *args: self.applet.set_state( gtk.STATE_SELECTED ) ) self.mainwin.window.connect( "unmap-event", lambda *args: self.applet.set_state( gtk.STATE_NORMAL ) ) @@ -598,6 +601,16 @@ class MenuWin( object ): except Exception, cause: print cause + def enter_notify(self, applet, event): + self.do_image(self.buttonIcon_hover) + + def leave_notify(self, applet, event): + self.do_image(self.buttonIcon) + + def do_image(self, image_file): + pixbuf = gtk.gdk.pixbuf_new_from_file(image_file) + self.button_icon.set_from_pixbuf(pixbuf) + def createPanelButton( self ): self.button_icon = gtk.image_new_from_file( self.buttonIcon ) self.systemlabel = gtk.Label( self.buttonText ) @@ -641,7 +654,8 @@ class MenuWin( object ): self.hideIcon = self.gconf.get( "bool", "hide_applet_icon", False ) self.buttonText = self.gconf.get( "string", "applet_text", "Menu" ) self.hotkeyText = self.gconf.get( "string", "hot_key", "Super_L" ) - self.buttonIcon = self.gconf.get( "string", "applet_icon", "/usr/lib/linuxmint/mintMenu/icon.png" ) + self.buttonIcon = self.gconf.get( "string", "applet_icon", ICON ) + self.buttonIcon_hover = self.gconf.get( "string", "applet_icon_hover", ICON_HOVER ) self.setIconSize( self.gconf.get( "int", "applet_icon_size", 2 ) ) def setIconSize( self, icon_size): diff --git a/usr/lib/linuxmint/mintMenu/mintMenu_hover.png b/usr/lib/linuxmint/mintMenu/mintMenu_hover.png new file mode 100644 index 0000000000000000000000000000000000000000..5c929b770358618f496756b932b94efbc3f7aa5f GIT binary patch literal 1118 zcmV-k1flzhP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01ejw01ejxLMWSf00007bV*G`2iXe- z4GkbIMnqfy00Z7hL_t(I%XO7sh*VV^$3OSZotfR)ojbBR<>q96hzi#v6Lb?rlne@j zU?C_l^q~!UFeG|1f?j$Mln@Jg5vhm5$_jc(Gm7@fK>QO(TCIz_th>(W?9QKi?>Xmp zP7il>+Sc_4zso)6p5OO;`SSh!uIHTl9as%mz%9z9>%|Gs2Bv^tfK$K?&+}~O8=iCS z22jz=usAH~8P~zF-DkR!A)tp6Pyna_hmA4Eve|5-3mh|98RJN&$f8jgtI(n_qEM1x zWMQ44v_hOFu)S1zH?m{pTdZQ80H0T@)&1pix#2G`bO?f=QTSwe#NR>4gD4weBtc7r zT1XcWOPjiy;=-M8`Q-1Hxg39;0rm_G3>+968_W2B7tl{B8NxJrUA^8wT6v!0bq3i) zl4z7Dj2J`=A{G&i5rsI1h)_>v_;UOJGwyQ6_x=507_JQf7qEiO`B7}X!8fz-5~&3G zz$inj*+MXESn(oTi+l0Oa-sD-#wKhmjvy$`OdsXvnPZ%uI?SHRiItT~<%K|N{Z14` z{b3jm`xM_OW(S#zrvVTvD6M!b+{$ys_qw7D_l zC=?dKVpID$#d5J2*a3((Xx)**I~(jrcy#dOO3djhA$PB2E&n?z7X zbE`GMs-6jyiBKd=H?NS(^r0j|tPoSBZSHjYb6LiSMM=sy1fu_PHGa1M~*{h|@H573(y9Cats>nkGg($o9aR zQkg?fj}y1OQ~nZD`~kcfP@I1InUjoe`INP#ArjMKE}lh1rBl!f)(JiyVXl{fTrY#U zHM~@LAD_Ov8FyHFzy{z$U^kF;#0a`O^u1*pA`j%#UrW1vYPmDiYBj5O?F>J5&!@I07*qoM6N<$f(p0^+yDRo literal 0 HcmV?d00001