Transparent menu (new opacity setting)

This commit is contained in:
Clement Lefebvre 2010-03-16 14:56:55 +00:00
parent edd91d8d02
commit 6e018b34ef
4 changed files with 123 additions and 62 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-02-24 10:56+0000\n" "POT-Creation-Date: 2010-03-16 14:53+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -20,35 +20,35 @@ msgstr ""
msgid "Menu" msgid "Menu"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:271 #: usr/lib/linuxmint/mintMenu/mintMenu.py:283
msgid "Couldn't load plugin:" msgid "Couldn't load plugin:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:345 #: usr/lib/linuxmint/mintMenu/mintMenu.py:357
msgid "Couldn't initialize plugin" msgid "Couldn't initialize plugin"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:595 #: usr/lib/linuxmint/mintMenu/mintMenu.py:607
msgid "Preferences" msgid "Preferences"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:595 #: usr/lib/linuxmint/mintMenu/mintMenu.py:607
msgid "Edit menu" msgid "Edit menu"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:595 #: usr/lib/linuxmint/mintMenu/mintMenu.py:607
msgid "Reload plugins" msgid "Reload plugins"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:595 #: usr/lib/linuxmint/mintMenu/mintMenu.py:607
msgid "About" msgid "About"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:785 #: usr/lib/linuxmint/mintMenu/mintMenu.py:797
msgid "Advanced Gnome Menu" msgid "Advanced Gnome Menu"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:788 #: usr/lib/linuxmint/mintMenu/mintMenu.py:800
msgid "Based on USP from S.Chanderbally" msgid "Based on USP from S.Chanderbally"
msgstr "" msgstr ""
@ -129,189 +129,193 @@ msgstr ""
msgid "pixels" msgid "pixels"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:58 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:59
msgid "Opacity:"
msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:62
msgid "Button text:" msgid "Button text:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:59 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:63
msgid "Options" msgid "Options"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:60 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:64
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:243 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:243
msgid "Applications" msgid "Applications"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:62 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:66
msgid "Colors" msgid "Colors"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:63 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:67
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:229 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:229
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:234 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:234
msgid "Favorites" msgid "Favorites"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:64 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:68
msgid "Main button" msgid "Main button"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:66 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:70
msgid "Background:" msgid "Background:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:67 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:71
msgid "Headings:" msgid "Headings:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:68 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:72
msgid "Borders:" msgid "Borders:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:72 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:76
msgid "Number of columns:" msgid "Number of columns:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:73 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:77
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:74 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:78
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:75 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:79
msgid "Icon size:" msgid "Icon size:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:76 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:80
msgid "Hover delay (ms):" msgid "Hover delay (ms):"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:77 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:81
msgid "Button icon:" msgid "Button icon:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:78 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:82
msgid "Search command:" msgid "Search command:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:80 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:84
#: usr/lib/linuxmint/mintMenu/plugins/places.py:40 #: usr/lib/linuxmint/mintMenu/plugins/places.py:40
msgid "Places" msgid "Places"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:81 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:85
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:92 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:96
msgid "Allow Scrollbar" msgid "Allow Scrollbar"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:82 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:86
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:93 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:97
msgid "Height:" msgid "Height:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:83 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:87
msgid "Toggle Default Places:" msgid "Toggle Default Places:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:84 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:88
#: usr/lib/linuxmint/mintMenu/plugins/places.py:144 #: usr/lib/linuxmint/mintMenu/plugins/places.py:144
msgid "Computer" msgid "Computer"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:85 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:89
#: usr/lib/linuxmint/mintMenu/plugins/places.py:151 #: usr/lib/linuxmint/mintMenu/plugins/places.py:151
msgid "Home Folder" msgid "Home Folder"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:86 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:90
#: usr/lib/linuxmint/mintMenu/plugins/places.py:158 #: usr/lib/linuxmint/mintMenu/plugins/places.py:158
msgid "Network" msgid "Network"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:87 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:91
#: usr/lib/linuxmint/mintMenu/plugins/places.py:178 #: usr/lib/linuxmint/mintMenu/plugins/places.py:178
msgid "Desktop" msgid "Desktop"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:88 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:92
#: usr/lib/linuxmint/mintMenu/plugins/places.py:185 #: usr/lib/linuxmint/mintMenu/plugins/places.py:185
msgid "Trash" msgid "Trash"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:89 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:93
msgid "Custom Places:" msgid "Custom Places:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:91 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:95
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:38 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:38
msgid "System" msgid "System"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:94 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:98
msgid "Toggle Default Items:" msgid "Toggle Default Items:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:95 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:99
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:134 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:134
msgid "Software Manager" msgid "Software Manager"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:96 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:100
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:141 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:141
msgid "Package Manager" msgid "Package Manager"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:97 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:101
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:148 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:148
msgid "Control Center" msgid "Control Center"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:98 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:102
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:155 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:155
msgid "Terminal" msgid "Terminal"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:99 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:103
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:162 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:162
msgid "Lock Screen" msgid "Lock Screen"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:100 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:104
msgid "Log Out" msgid "Log Out"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:101 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:105
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:176 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:176
msgid "Quit" msgid "Quit"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:103 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:107
msgid "Edit Place" msgid "Edit Place"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:104 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:108
msgid "New Place" msgid "New Place"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:105 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:109
msgid "Select a folder" msgid "Select a folder"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:107 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:111
msgid "Keyboard shortcut:" msgid "Keyboard shortcut:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:231 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:237
msgid "Name" msgid "Name"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:232 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:238
msgid "Path" msgid "Path"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:331 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:337
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:365 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:371
msgid "Name:" msgid "Name:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:332 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:338
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:366 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:372
msgid "Path:" msgid "Path:"
msgstr "" msgstr ""

View File

@ -101,6 +101,7 @@ class MainWindow( object ):
self.getSetGconfEntries() self.getSetGconfEntries()
self.SetupMintMenuBorder() self.SetupMintMenuBorder()
self.SetupMintMenuOpacity()
self.tooltips = gtk.Tooltips() self.tooltips = gtk.Tooltips()
if self.globalEnableTooltips and self.enableTooltips: if self.globalEnableTooltips and self.enableTooltips:
@ -123,6 +124,7 @@ class MainWindow( object ):
self.gconf.notifyAdd( "custom_heading_color", self.toggleCustomHeadingColor ) self.gconf.notifyAdd( "custom_heading_color", self.toggleCustomHeadingColor )
self.gconf.notifyAdd( "custom_color", self.toggleCustomBackgroundColor ) self.gconf.notifyAdd( "custom_color", self.toggleCustomBackgroundColor )
self.gconf.notifyAdd( "border_width", self.toggleBorderWidth ) self.gconf.notifyAdd( "border_width", self.toggleBorderWidth )
self.gconf.notifyAdd( "opacity", self.toggleOpacity )
def quit_cb (self): def quit_cb (self):
gtk.main_quit() gtk.main_quit()
@ -159,6 +161,10 @@ class MainWindow( object ):
self.borderwidth = entry.get_value().get_int() self.borderwidth = entry.get_value().get_int()
self.SetupMintMenuBorder() self.SetupMintMenuBorder()
def toggleOpacity( self, client, connection_id, entry, args ):
self.opacity = entry.get_value().get_int()
self.SetupMintMenuOpacity()
def toggleUseCustomColor( self, client, connection_id, entry, args ): def toggleUseCustomColor( self, client, connection_id, entry, args ):
self.usecustomcolor = entry.get_value().get_bool() self.usecustomcolor = entry.get_value().get_bool()
self.SetupMintMenuBorder() self.SetupMintMenuBorder()
@ -189,6 +195,7 @@ class MainWindow( object ):
self.custombordercolor = self.gconf.get( "color", "custom_border_color", "#001155" ) self.custombordercolor = self.gconf.get( "color", "custom_border_color", "#001155" )
self.borderwidth = self.gconf.get( "int", "border_width", 1 ) self.borderwidth = self.gconf.get( "int", "border_width", 1 )
self.opacity = self.gconf.get( "int", "opacity", 100 )
self.offset = self.gconf.get( "int", "mintMenu_offset", 0 ) self.offset = self.gconf.get( "int", "mintMenu_offset", 0 )
self.pinmenu = self.gconf.get( "bool", "pin_menu", False ) self.pinmenu = self.gconf.get( "bool", "pin_menu", False )
self.enableTooltips = self.gconf.get( "bool", "tooltips_enabled", True ) self.enableTooltips = self.gconf.get( "bool", "tooltips_enabled", True )
@ -222,6 +229,11 @@ class MainWindow( object ):
else: else:
self.sidepane.show() self.sidepane.show()
def SetupMintMenuOpacity( self ):
print "Opacity is: " + str(self.opacity)
opacity = float(self.opacity) / float(100)
print "Setting opacity to: " + str(opacity)
self.window.set_opacity(opacity)
def PopulatePlugins( self ): def PopulatePlugins( self ):
self.panesToColor = [ ] self.panesToColor = [ ]

View File

@ -270,17 +270,27 @@
</packing> </packing>
</child> </child>
<child> <child>
<widget class="GtkHBox" id="hbox5"> <widget class="GtkTable" id="table2">
<property name="visible">True</property> <property name="visible">True</property>
<property name="spacing">5</property> <property name="n_rows">2</property>
<property name="n_columns">3</property>
<property name="row_spacing">8</property>
<child> <child>
<widget class="GtkLabel" id="label11"> <widget class="GtkLabel" id="label11">
<property name="visible">True</property> <property name="visible">True</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="label" translatable="yes">Border width:</property> <property name="label" translatable="yes">Border width:</property>
</widget> </widget>
</child>
<child>
<widget class="GtkLabel" id="label8">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Opacity:</property>
</widget>
<packing> <packing>
<property name="position">0</property> <property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -293,7 +303,36 @@
<property name="climb_rate">1</property> <property name="climb_rate">1</property>
</widget> </widget>
<packing> <packing>
<property name="position">1</property> <property name="left_attach">1</property>
<property name="right_attach">2</property>
</packing>
</child>
<child>
<widget class="GtkSpinButton" id="opacity">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="invisible_char">&#x25CF;</property>
<property name="adjustment">0 0 100 1 0 0</property>
<property name="climb_rate">1</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label9">
<property name="visible">True</property>
<property name="label" translatable="yes">%</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -302,13 +341,13 @@
<property name="label" translatable="yes">px</property> <property name="label" translatable="yes">px</property>
</widget> </widget>
<packing> <packing>
<property name="position">2</property> <property name="left_attach">2</property>
<property name="right_attach">3</property>
</packing> </packing>
</child> </child>
</widget> </widget>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">False</property>
<property name="position">3</property> <property name="position">3</property>
</packing> </packing>
</child> </child>

View File

@ -55,6 +55,10 @@ class mintMenuConfig( object ):
wTree.get_widget("label11").set_text(_("Border width:")) wTree.get_widget("label11").set_text(_("Border width:"))
wTree.get_widget("label2").set_text(_("pixels")) wTree.get_widget("label2").set_text(_("pixels"))
wTree.get_widget("label8").set_text(_("Opacity:"))
wTree.get_widget("label9").set_text("%")
wTree.get_widget("buttonTextLabel").set_text(_("Button text:")) wTree.get_widget("buttonTextLabel").set_text(_("Button text:"))
wTree.get_widget("label1").set_text(_("Options")) wTree.get_widget("label1").set_text(_("Options"))
wTree.get_widget("label23").set_text(_("Applications")) wTree.get_widget("label23").set_text(_("Applications"))
@ -119,6 +123,7 @@ class mintMenuConfig( object ):
self.favIconSize = wTree.get_widget( "favIconSize" ) self.favIconSize = wTree.get_widget( "favIconSize" )
self.favCols = wTree.get_widget( "numFavCols" ) self.favCols = wTree.get_widget( "numFavCols" )
self.borderWidth = wTree.get_widget( "borderWidth" ) self.borderWidth = wTree.get_widget( "borderWidth" )
self.opacity = wTree.get_widget( "opacity" )
self.useCustomColors = wTree.get_widget( "useCustomColors" ) self.useCustomColors = wTree.get_widget( "useCustomColors" )
self.backgroundColor = wTree.get_widget( "backgroundColor" ) self.backgroundColor = wTree.get_widget( "backgroundColor" )
self.borderColor = wTree.get_widget( "borderColor" ) self.borderColor = wTree.get_widget( "borderColor" )
@ -184,6 +189,7 @@ class mintMenuConfig( object ):
self.bindGconfValueToWidget( self.gconfApplications, "int", "fav_cols", self.favCols, "value-changed", self.favCols.set_value, self.favCols.get_value ) self.bindGconfValueToWidget( self.gconfApplications, "int", "fav_cols", self.favCols, "value-changed", self.favCols.set_value, self.favCols.get_value )
self.bindGconfValueToWidget( self.gconf, "int", "border_width", self.borderWidth, "value-changed", self.borderWidth.set_value, self.borderWidth.get_value_as_int ) self.bindGconfValueToWidget( self.gconf, "int", "border_width", self.borderWidth, "value-changed", self.borderWidth.set_value, self.borderWidth.get_value_as_int )
self.bindGconfValueToWidget( self.gconf, "int", "opacity", self.opacity, "value-changed", self.opacity.set_value, self.opacity.get_value_as_int )
self.bindGconfValueToWidget( self.gconf, "bool", "use_custom_color", self.useCustomColors, "toggled", self.useCustomColors.set_active, self.useCustomColors.get_active ) self.bindGconfValueToWidget( self.gconf, "bool", "use_custom_color", self.useCustomColors, "toggled", self.useCustomColors.set_active, self.useCustomColors.get_active )
self.bindGconfValueToWidget( self.gconf, "color", "custom_color", self.backgroundColor, "color-set", self.backgroundColor.set_color, self.getBackgroundColor ) self.bindGconfValueToWidget( self.gconf, "color", "custom_color", self.backgroundColor, "color-set", self.backgroundColor.set_color, self.getBackgroundColor )
self.bindGconfValueToWidget( self.gconf, "color", "custom_heading_color", self.headingColor, "color-set", self.headingColor.set_color, self.getHeadingColor ) self.bindGconfValueToWidget( self.gconf, "color", "custom_heading_color", self.headingColor, "color-set", self.headingColor.set_color, self.getHeadingColor )