From b91191998ccc47545cf96cbbfbb792b8aa2f2ca0 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 8 Jun 2005 23:17:40 +0000 Subject: [PATCH] introducing GajimThemesWindow [but just introducing] --- src/config.py | 16 ++++++++++++++++ src/gtkgui.glade | 21 ++++++++++++--------- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/src/config.py b/src/config.py index e50206875..8988f864f 100644 --- a/src/config.py +++ b/src/config.py @@ -500,6 +500,10 @@ class Preferences_window: def on_transports_iconsets_checkbutton_toggled(self, widget): self.on_checkbutton_toggled(widget, 'use_transports_iconsets') self.plugin.roster.draw_roster() + + def on_edit_theme_button_clicked(self, widget): + GajimThemesWindow(self.plugin) + def on_roster_widget_color_set(self, widget, text): color = widget.get_color() @@ -1038,6 +1042,18 @@ class Preferences_window: self.plugin.windows['advanced_config'] = \ dialogs.Advanced_configuration_window(self.plugin) +#---------- GajimThemesWindow class -------------# +class GajimThemesWindow: + def on_close_button_clicked(self, widget): + self.window.destroy() + + def __init__(self, plugin): + self.xml = gtk.glade.XML(GTKGUI_GLADE, 'gajim_themes_window', APP) + self.window = self.xml.get_widget('gajim_themes_window') + self.plugin = plugin + self.xml.signal_autoconnect(self) + self.window.show_all() + #---------- Account_modification_window class -------------# class Account_modification_window: '''Class for account informations''' diff --git a/src/gtkgui.glade b/src/gtkgui.glade index db29cf256..b4acb9d87 100644 --- a/src/gtkgui.glade +++ b/src/gtkgui.glade @@ -2939,7 +2939,7 @@ True - Roster theme: + Gajim theme: False False GTK_JUSTIFY_LEFT @@ -2990,7 +2990,7 @@ 0 - + True False 2 @@ -2998,7 +2998,7 @@ True - gtk-edit + gtk-select-color 4 0.5 0.5 @@ -3013,7 +3013,7 @@ - + True Edit... True @@ -14139,10 +14139,10 @@ the Jabber network. - - 6 + + 12 True - Roster Themes Customization + Gajim Themes Customization GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False @@ -14158,10 +14158,11 @@ the Jabber network. True False - 0 + 12 + 6 True False 12 @@ -14673,12 +14674,13 @@ the Jabber network. + 6 True GTK_BUTTONBOX_END 0 - + True True True @@ -14686,6 +14688,7 @@ the Jabber network. True GTK_RELIEF_NORMAL True +