instant apply on first tab of preferences window

This commit is contained in:
bigpod 2005-03-06 15:14:34 +00:00
parent a37882df65
commit 19785c664f
2 changed files with 170 additions and 136 deletions

View File

@ -40,97 +40,146 @@ class preferences_window:
def delete_event(self, widget):
"""close window"""
del self.plugin.windows['preferences']
def on_incoming_msg_colorbutton_color_set(self, widget):
"""Take The Color For The Incoming Messages"""
color = widget.get_color()
color_string = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['inmsgcolor'] = color_string
self.update_text_tags()
def on_outgoing_msg_colorbutton_color_set(self, widget):
"""Take The Color For The Outgoing Messages"""
color = widget.get_color()
color_string = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['outmsgcolor'] = color_string
self.update_text_tags()
def on_status_msg_colorbutton_color_set(self, widget):
"""Take The Color For The Status Messages"""
color = widget.get_color()
color_string = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['statusmsgcolor'] = color_string
self.update_text_tags()
def on_account_text_colorbutton_color_set(self, widget):
"""Take The Color For The Account Text"""
color = widget.get_color()
color_string = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['accounttextcolor'] = color_string
self.update_text_tags()
def on_group_text_colorbutton_color_set(self, widget):
"""Take The Color For The Group Text"""
color = widget.get_color()
color_string = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['grouptextcolor'] = color_string
self.update_text_tags()
def on_cancel(self, widget):
"""When Cancel button is clicked"""
widget.get_toplevel().destroy()
def on_user_text_colorbutton_color_set(self, widget):
"""Take The Color For The User Text"""
color = widget.get_color()
color_string = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['usertextcolor'] = color_string
self.update_text_tags()
def write_cfg(self): #FIXME: (nk) instant apply
"""Save preferences in config File and apply them"""
#Color for incomming messages
color = self.xml.get_widget('colorbutton_in').get_color()
colSt = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
def on_account_text_bg_colorbutton_color_set(self, widget):
"""Take The Color For The Background Of Account Text"""
color = widget.get_color()
color_string = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['inmsgcolor'] = colSt
#Color for outgoing messages
color = self.xml.get_widget('colorbutton_out').get_color()
colSt = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
self.plugin.config['accountbgcolor'] = color_string
self.update_text_tags()
def on_group_text_bg_colorbutton_color_set(self, widget):
"""Take The Color For The Background Of Group Text"""
color = widget.get_color()
color_string = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['outmsgcolor'] = colSt
#Color for status messages
color = self.xml.get_widget('colorbutton_status').get_color()
colSt = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
self.plugin.config['groupbgcolor'] = color_string
self.update_text_tags()
def on_user_text_bg_colorbutton_color_set(self, widget):
"""Take The Color For The Background Of User Text"""
color = widget.get_color()
color_string = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['statusmsgcolor'] = colSt
#Color for account text
color = self.xml.get_widget('colorbutton_account_text').get_color()
colSt = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['accounttextcolor'] = colSt
#Color for group text
color = self.xml.get_widget('colorbutton_group_text').get_color()
colSt = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['grouptextcolor'] = colSt
#Color for user text
color = self.xml.get_widget('colorbutton_user_text').get_color()
colSt = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['usertextcolor'] = colSt
#Color for background account
color = self.xml.get_widget('colorbutton_account_bg').get_color()
colSt = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['accountbgcolor'] = colSt
#Color for background group
color = self.xml.get_widget('colorbutton_group_bg').get_color()
colSt = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['groupbgcolor'] = colSt
#Color for background user
color = self.xml.get_widget('colorbutton_user_bg').get_color()
colSt = '#'+(hex(color.red)+'0')[2:4] + (hex(color.green)+'0')[2:4]\
+(hex(color.blue)+'0')[2:4]
self.plugin.config['userbgcolor'] = colSt
#Font for account
fontStr = self.xml.get_widget('fontbutton_account_text').get_font_name()
self.plugin.config['accountfont'] = fontStr
#Font for group
fontStr = self.xml.get_widget('fontbutton_group_text').get_font_name()
self.plugin.config['groupfont'] = fontStr
#Font for user
fontStr = self.xml.get_widget('fontbutton_user_text').get_font_name()
self.plugin.config['userfont'] = fontStr
#update opened chat windows
self.plugin.config['userbgcolor'] = color_string
self.update_text_tags()
def on_account_text_fontbutton_font_set(self, widget):
"""Take The Font For The User Text"""
font_string = widget.get_font_name()
self.plugin.config['accountfont'] = font_string
self.update_text_tags()
def on_group_text_fontbutton_font_set(self, widget):
"""Take The Font For The Group Text"""
font_string = widget.get_font_name()
self.plugin.config['groupfont'] = font_string
self.update_text_tags()
def on_user_text_fontbutton_font_set(self, widget):
"""Take The Font For The User Text"""
font_string = widget.get_font_name()
self.plugin.config['userfont'] = font_string
self.update_text_tags()
def update_text_tags(self):
"""Update Opened Chat Windows"""
for a in self.plugin.accounts.keys():
if self.plugin.windows[a]['chats'].has_key('tabbed'):
self.plugin.windows[a]['chats']['tabbed'].update_tags()
else:
for jid in self.plugin.windows[a]['chats'].keys():
self.plugin.windows[a]['chats'][jid].update_tags()
#IconStyle
ist = self.iconstyle_combobox.entry.get_text()
self.plugin.config['iconstyle'] = ist
self.plugin.roster.mkpixbufs()
#save position
chk = self.xml.get_widget('save_position_checkbutton')
if chk.get_active():
def on_save_position_checkbutton_toggled(self, widget):
"""On Save Position Checkbutton Toggled"""
if widget.get_active():
self.plugin.config['saveposition'] = 1
else:
self.plugin.config['saveposition'] = 0
#merge groups
chk = self.xml.get_widget('merge_checkbutton')
if chk.get_active():
def on_merge_position_checkbutton_toggled(self, widget):
"""On Merge Accounts Checkbutton Toggled"""
if widget.get_active():
self.plugin.config['mergeaccounts'] = 1
else:
self.plugin.config['mergeaccounts'] = 0
self.plugin.roster.regroup = self.plugin.config['mergeaccounts']
#use tabbed chat window
chk = self.xml.get_widget('checkbutton_tabbed')
if chk.get_active():
def on_use_tabbed_chat_window_checkbutton_toggled(self, widget):
"""On Use Tabbed Chat Window Checkbutton Toggled"""
if widget.get_active():
self.plugin.config['usetabbedchat'] = 1
else:
self.plugin.config['usetabbedchat'] = 0
def on_tray_icon_checkbutton_toggled(self, widget):
"""On Tray Icon Checkbutton Toggled"""
if self.widget.get_active():
self.plugin.config['trayicon'] = 1
self.plugin.show_systray()
else:
self.plugin.config['trayicon'] = 0
self.plugin.hide_systray()
self.plugin.send('CONFIG', None, ('GtkGui', self.plugin.config, 'GtkGui'))
self.plugin.roster.draw_roster()
def write_cfg(self): #FIXME: (nk) instant apply
"""Save preferences in config File and apply them"""
#IconStyle
ist = self.iconstyle_combobox.entry.get_text()
self.plugin.config['iconstyle'] = ist
self.plugin.roster.mkpixbufs()
#Emoticons
model = self.emot_tree.get_model()
iter = model.get_iter_first()
@ -202,15 +251,7 @@ class preferences_window:
del self.plugin.config['msg%i_name' % i]
del self.plugin.config['msg%i' % i]
i += 1
#trayicon
if self.tray_icon_checkbutton.get_active():
self.plugin.config['trayicon'] = 1
self.plugin.show_systray()
else:
self.plugin.config['trayicon'] = 0
self.plugin.hide_systray()
self.plugin.send('CONFIG', None, ('GtkGui', self.plugin.config, 'GtkGui'))
self.plugin.roster.draw_roster()
#open links with
if self.links_open_with_combobox.get_active() == 0:
self.plugin.config['openwith'] = 'gnome-open'
@ -242,6 +283,10 @@ class preferences_window:
def on_apply(self, widget):
"""When Apply button is clicked"""
self.write_cfg()
def on_close_button_clicked(self, widget):
"""When The close button is clicked"""
widget.get_toplevel().destroy()
def fill_msg_treeview(self):
i = 0
@ -517,17 +562,17 @@ class preferences_window:
#Color for incomming messages
colSt = self.plugin.config['inmsgcolor']
self.xml.get_widget('colorbutton_in').set_color(\
self.xml.get_widget('incoming_msg_colorbutton').set_color(\
gtk.gdk.color_parse(colSt))
#Color for outgoing messages
colSt = self.plugin.config['outmsgcolor']
self.xml.get_widget('colorbutton_out').set_color(\
self.xml.get_widget('outgoing_msg_colorbutton').set_color(\
gtk.gdk.color_parse(colSt))
#Color for status messages
colSt = self.plugin.config['statusmsgcolor']
self.xml.get_widget('colorbutton_status').set_color(\
self.xml.get_widget('status_msg_colorbutton').set_color(\
gtk.gdk.color_parse(colSt))
#iconStyle
@ -552,7 +597,7 @@ class preferences_window:
#use tabbed chat window
st = self.plugin.config['usetabbedchat']
self.xml.get_widget('checkbutton_tabbed').set_active(st)
self.xml.get_widget('use_tabbed_chat_window_checkbutton').set_active(st)
#Use emoticons
st = self.plugin.config['useemoticons']
@ -669,45 +714,45 @@ class preferences_window:
#Color for account text
colSt = self.plugin.config['accounttextcolor']
self.xml.get_widget('colorbutton_account_text').set_color(\
self.xml.get_widget('account_text_colorbutton').set_color(\
gtk.gdk.color_parse(colSt))
#Color for group text
colSt = self.plugin.config['grouptextcolor']
self.xml.get_widget('colorbutton_group_text').set_color(\
self.xml.get_widget('group_text_colorbutton').set_color(\
gtk.gdk.color_parse(colSt))
#Color for user text
colSt = self.plugin.config['usertextcolor']
self.xml.get_widget('colorbutton_user_text').set_color(\
self.xml.get_widget('user_text_colorbutton').set_color(\
gtk.gdk.color_parse(colSt))
#Color for background account
colSt = self.plugin.config['accountbgcolor']
self.xml.get_widget('colorbutton_account_bg').set_color(\
self.xml.get_widget('account_text_bg_colorbutton').set_color(\
gtk.gdk.color_parse(colSt))
#Color for background group
colSt = self.plugin.config['groupbgcolor']
self.xml.get_widget('colorbutton_group_bg').set_color(\
self.xml.get_widget('group_text_bg_colorbutton').set_color(\
gtk.gdk.color_parse(colSt))
#Color for background user
colSt = self.plugin.config['userbgcolor']
self.xml.get_widget('colorbutton_user_bg').set_color(\
self.xml.get_widget('user_text_bg_colorbutton').set_color(\
gtk.gdk.color_parse(colSt))
#font for account
fontStr = self.plugin.config['accountfont']
self.xml.get_widget('fontbutton_account_text').set_font_name(fontStr)
self.xml.get_widget('account_text_fontbutton').set_font_name(fontStr)
#font for group
fontStr = self.plugin.config['groupfont']
self.xml.get_widget('fontbutton_group_text').set_font_name(fontStr)
self.xml.get_widget('group_text_fontbutton').set_font_name(fontStr)
#font for account
fontStr = self.plugin.config['userfont']
self.xml.get_widget('fontbutton_user_text').set_font_name(fontStr)
self.xml.get_widget('user_text_fontbutton').set_font_name(fontStr)
self.xml.signal_connect('on_auto_pop_up_checkbox_toggled', \
self.on_chk_toggled, [self.auto_pp_away_checkbutton])

View File

@ -3079,6 +3079,7 @@ on the server as a vCard</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_tray_icon_checkbutton_toggled" last_modification_time="Sun, 06 Mar 2005 15:13:50 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
@ -3098,6 +3099,7 @@ on the server as a vCard</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_save_position_checkbutton_toggled" last_modification_time="Sun, 06 Mar 2005 15:04:10 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
@ -3117,6 +3119,7 @@ on the server as a vCard</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_merge_checkbutton_toggled" last_modification_time="Sun, 06 Mar 2005 15:07:26 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
@ -3126,7 +3129,7 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_tabbed">
<widget class="GtkCheckButton" id="use_tabbed_chat_window_checkbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Use a single chat window with tabs</property>
@ -3136,6 +3139,7 @@ on the server as a vCard</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_use_tabbed_chat_window_checkbutton_toggled" last_modification_time="Sun, 06 Mar 2005 15:11:41 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
@ -3318,7 +3322,7 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkColorButton" id="colorbutton_in">
<widget class="GtkColorButton" id="incoming_msg_colorbutton">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
@ -3326,6 +3330,7 @@ on the server as a vCard</property>
<property name="has_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
<signal name="color_set" handler="on_incoming_msg_colorbutton_color_set" last_modification_time="Sun, 06 Mar 2005 14:07:44 GMT"/>
</widget>
<packing>
<property name="left_attach">1</property>
@ -3338,11 +3343,12 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkColorButton" id="colorbutton_out">
<widget class="GtkColorButton" id="outgoing_msg_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
<signal name="color_set" handler="on_outgoing_msg_colorbutton_color_set" last_modification_time="Sun, 06 Mar 2005 14:07:56 GMT"/>
</widget>
<packing>
<property name="left_attach">1</property>
@ -3355,11 +3361,12 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkColorButton" id="colorbutton_status">
<widget class="GtkColorButton" id="status_msg_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
<signal name="color_set" handler="on_status_msg_colorbutton_color_set" last_modification_time="Sun, 06 Mar 2005 14:08:04 GMT"/>
</widget>
<packing>
<property name="left_attach">1</property>
@ -3471,7 +3478,7 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkFontButton" id="fontbutton_account_text">
<widget class="GtkFontButton" id="account_text_fontbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="show_style">True</property>
@ -3479,6 +3486,7 @@ on the server as a vCard</property>
<property name="use_font">False</property>
<property name="use_size">False</property>
<property name="focus_on_click">True</property>
<signal name="font_set" handler="on_account_text_fontbutton_font_set" last_modification_time="Sun, 06 Mar 2005 14:37:23 GMT"/>
</widget>
<packing>
<property name="left_attach">2</property>
@ -3491,7 +3499,7 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkFontButton" id="fontbutton_group_text">
<widget class="GtkFontButton" id="group_text_fontbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="show_style">True</property>
@ -3499,6 +3507,7 @@ on the server as a vCard</property>
<property name="use_font">False</property>
<property name="use_size">False</property>
<property name="focus_on_click">True</property>
<signal name="font_set" handler="on_group_text_fontbutton_font_set" last_modification_time="Sun, 06 Mar 2005 14:37:32 GMT"/>
</widget>
<packing>
<property name="left_attach">2</property>
@ -3511,7 +3520,7 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkFontButton" id="fontbutton_user_text">
<widget class="GtkFontButton" id="user_text_fontbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="show_style">True</property>
@ -3519,6 +3528,7 @@ on the server as a vCard</property>
<property name="use_font">False</property>
<property name="use_size">False</property>
<property name="focus_on_click">True</property>
<signal name="font_set" handler="on_user_text_fontbutton_font_set" last_modification_time="Sun, 06 Mar 2005 14:37:36 GMT"/>
</widget>
<packing>
<property name="left_attach">2</property>
@ -3627,11 +3637,12 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkColorButton" id="colorbutton_account_bg">
<widget class="GtkColorButton" id="account_text_bg_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
<signal name="color_set" handler="on_account_text_bg_colorbutton_color_set" last_modification_time="Sun, 06 Mar 2005 14:35:55 GMT"/>
</widget>
<packing>
<property name="left_attach">3</property>
@ -3644,11 +3655,12 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkColorButton" id="colorbutton_group_bg">
<widget class="GtkColorButton" id="group_text_bg_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
<signal name="color_set" handler="on_group_text_bg_colorbutton_color_set" last_modification_time="Sun, 06 Mar 2005 14:36:00 GMT"/>
</widget>
<packing>
<property name="left_attach">3</property>
@ -3661,11 +3673,12 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkColorButton" id="colorbutton_user_bg">
<widget class="GtkColorButton" id="user_text_bg_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
<signal name="color_set" handler="on_user_text_bg_colorbutton_color_set" last_modification_time="Sun, 06 Mar 2005 14:36:07 GMT"/>
</widget>
<packing>
<property name="left_attach">3</property>
@ -3678,11 +3691,12 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkColorButton" id="colorbutton_account_text">
<widget class="GtkColorButton" id="account_text_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
<signal name="color_set" handler="on_account_text_colorbutton_color_set" last_modification_time="Sun, 06 Mar 2005 14:24:01 GMT"/>
</widget>
<packing>
<property name="left_attach">1</property>
@ -3695,11 +3709,12 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkColorButton" id="colorbutton_group_text">
<widget class="GtkColorButton" id="group_text_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
<signal name="color_set" handler="on_group_text_colorbutton_color_set" last_modification_time="Sun, 06 Mar 2005 14:24:07 GMT"/>
</widget>
<packing>
<property name="left_attach">1</property>
@ -3712,11 +3727,12 @@ on the server as a vCard</property>
</child>
<child>
<widget class="GtkColorButton" id="colorbutton_user_text">
<widget class="GtkColorButton" id="user_text_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
<signal name="color_set" handler="on_user_text_colorbutton_color_set" last_modification_time="Sun, 06 Mar 2005 14:24:35 GMT"/>
</widget>
<packing>
<property name="left_attach">1</property>
@ -5151,46 +5167,19 @@ Custom</property>
<widget class="GtkHButtonBox" id="hbuttonbox7">
<property name="border_width">5</property>
<property name="visible">True</property>
<property name="layout_style">GTK_BUTTONBOX_END</property>
<property name="layout_style">GTK_BUTTONBOX_SPREAD</property>
<property name="spacing">15</property>
<child>
<widget class="GtkButton" id="button_apply">
<widget class="GtkButton" id="close_button">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-apply</property>
<property name="label">gtk-close</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_apply" last_modification_time="Sat, 05 Mar 2005 16:24:18 GMT"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button_cancel">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-cancel</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_cancel" last_modification_time="Sat, 05 Mar 2005 16:24:59 GMT"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button_ok">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-ok</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_ok" last_modification_time="Sat, 05 Mar 2005 16:25:12 GMT"/>
<signal name="clicked" handler="on_close_button_clicked" last_modification_time="Sun, 06 Mar 2005 13:49:57 GMT"/>
</widget>
</child>
</widget>