diff --git a/plugins/gtkgui/gtkgui.glade b/plugins/gtkgui/gtkgui.glade index eb493859f3bde0eef2d4ef9e76229162eb97537e..d1fb0655a4aa52332e815957cfe91cda2961a877 100644 --- a/plugins/gtkgui/gtkgui.glade +++ b/plugins/gtkgui/gtkgui.glade @@ -657,7 +657,7 @@ </child> </widget> -<widget class="GtkWindow" id="accounts_window"> +<widget class="GtkWindow" id="Accounts"> <property name="visible">True</property> <property name="title" translatable="yes">Accounts</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> @@ -690,7 +690,7 @@ <property name="window_placement">GTK_CORNER_TOP_LEFT</property> <child> - <widget class="GtkTreeView" id="accounts_treeview"> + <widget class="GtkTreeView" id="treeview"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="headers_visible">True</property> @@ -860,7 +860,7 @@ </child> </widget> -<widget class="GtkWindow" id="about_window"> +<widget class="GtkWindow" id="About"> <property name="visible">True</property> <property name="title" translatable="yes">About</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> @@ -3714,7 +3714,7 @@ on the server as a vCard</property> <child> <widget class="GtkLabel" id="label174"> <property name="visible">True</property> - <property name="label" translatable="yes">Icon Style: </property> + <property name="label" translatable="yes">Icon style: </property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> @@ -3798,7 +3798,7 @@ on the server as a vCard</property> <child> <widget class="GtkLabel" id="label72"> <property name="visible">True</property> - <property name="label" translatable="yes">Incoming Message:</property> + <property name="label" translatable="yes">Incoming message:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_CENTER</property> @@ -3822,7 +3822,7 @@ on the server as a vCard</property> <child> <widget class="GtkLabel" id="label70"> <property name="visible">True</property> - <property name="label" translatable="yes">Outgoing Message:</property> + <property name="label" translatable="yes">Outgoing message:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_CENTER</property> @@ -3846,7 +3846,7 @@ on the server as a vCard</property> <child> <widget class="GtkLabel" id="label71"> <property name="visible">True</property> - <property name="label" translatable="yes">Status Message:</property> + <property name="label" translatable="yes">Status message:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_CENTER</property> @@ -4351,7 +4351,7 @@ on the server as a vCard</property> <widget class="GtkCheckButton" id="use_emoticons_checkbutton"> <property name="visible">True</property> <property name="can_focus">True</property> - <property name="label" translatable="yes">Use Emoticons</property> + <property name="label" translatable="yes">Use emoticons</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> @@ -4846,7 +4846,7 @@ on the server as a vCard</property> <widget class="GtkCheckButton" id="chk_autoaway"> <property name="visible">True</property> <property name="can_focus">True</property> - <property name="label" translatable="yes">Auto Away After</property> + <property name="label" translatable="yes">Auto away after</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> @@ -4869,7 +4869,7 @@ on the server as a vCard</property> <widget class="GtkCheckButton" id="chk_autoxa"> <property name="visible">True</property> <property name="can_focus">True</property> - <property name="label" translatable="yes">Auto eXtanded Away After</property> + <property name="label" translatable="yes">Auto eXtended away after</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> @@ -5254,16 +5254,248 @@ on the server as a vCard</property> <property name="spacing">5</property> <child> - <widget class="GtkCheckButton" id="chk_log_pres_usr"> + <widget class="GtkFrame" id="frame21"> <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="label" translatable="yes">Log presences in user's log file</property> - <property name="use_underline">True</property> - <property name="relief">GTK_RELIEF_NORMAL</property> - <property name="focus_on_click">True</property> - <property name="active">False</property> - <property name="inconsistent">False</property> - <property name="draw_indicator">True</property> + <property name="label_xalign">0</property> + <property name="label_yalign">0.5</property> + <property name="shadow_type">GTK_SHADOW_NONE</property> + + <child> + <widget class="GtkAlignment" id="alignment42"> + <property name="visible">True</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xscale">1</property> + <property name="yscale">1</property> + <property name="top_padding">0</property> + <property name="bottom_padding">0</property> + <property name="left_padding">12</property> + <property name="right_padding">0</property> + + <child> + <widget class="GtkVBox" id="vbox50"> + <property name="visible">True</property> + <property name="homogeneous">False</property> + <property name="spacing">2</property> + + <child> + <widget class="GtkHBox" id="hbox2918"> + <property name="visible">True</property> + <property name="homogeneous">False</property> + <property name="spacing">0</property> + + <child> + <widget class="GtkLabel" id="label197"> + <property name="visible">True</property> + <property name="label" translatable="yes">Open with:</property> + <property name="use_underline">False</property> + <property name="use_markup">False</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + + <child> + <widget class="GtkComboBox" id="combobox1"> + <property name="visible">True</property> + <property name="items" translatable="yes">KDE default applications +GNOME default applications +Custom</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">True</property> + <property name="fill">True</property> + </packing> + </child> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">True</property> + <property name="fill">True</property> + </packing> + </child> + + <child> + <widget class="GtkFrame" id="frame22"> + <property name="visible">True</property> + <property name="label_xalign">0</property> + <property name="label_yalign">0.5</property> + <property name="shadow_type">GTK_SHADOW_NONE</property> + + <child> + <widget class="GtkAlignment" id="alignment43"> + <property name="visible">True</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xscale">1</property> + <property name="yscale">1</property> + <property name="top_padding">0</property> + <property name="bottom_padding">0</property> + <property name="left_padding">12</property> + <property name="right_padding">0</property> + + <child> + <widget class="GtkTable" id="table22"> + <property name="visible">True</property> + <property name="n_rows">2</property> + <property name="n_columns">2</property> + <property name="homogeneous">False</property> + <property name="row_spacing">0</property> + <property name="column_spacing">0</property> + + <child> + <widget class="GtkLabel" id="label199"> + <property name="visible">True</property> + <property name="label" translatable="yes">Browser</property> + <property name="use_underline">False</property> + <property name="use_markup">False</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + <packing> + <property name="left_attach">0</property> + <property name="right_attach">1</property> + <property name="top_attach">0</property> + <property name="bottom_attach">1</property> + <property name="x_options">fill</property> + <property name="y_options"></property> + </packing> + </child> + + <child> + <widget class="GtkLabel" id="label200"> + <property name="visible">True</property> + <property name="label" translatable="yes">Mail App</property> + <property name="use_underline">False</property> + <property name="use_markup">False</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + <packing> + <property name="left_attach">0</property> + <property name="right_attach">1</property> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + <property name="x_options">fill</property> + <property name="y_options"></property> + </packing> + </child> + + <child> + <widget class="GtkEntry" id="entry10"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="editable">True</property> + <property name="visibility">True</property> + <property name="max_length">0</property> + <property name="text" translatable="yes"></property> + <property name="has_frame">True</property> + <property name="invisible_char">*</property> + <property name="activates_default">False</property> + </widget> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">0</property> + <property name="bottom_attach">1</property> + <property name="y_options"></property> + </packing> + </child> + + <child> + <widget class="GtkEntry" id="entry11"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="editable">True</property> + <property name="visibility">True</property> + <property name="max_length">0</property> + <property name="text" translatable="yes"></property> + <property name="has_frame">True</property> + <property name="invisible_char">*</property> + <property name="activates_default">False</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> + <property name="y_options"></property> + </packing> + </child> + </widget> + </child> + </widget> + </child> + + <child> + <widget class="GtkLabel" id="label198"> + <property name="visible">True</property> + <property name="label" translatable="yes"><b>Custom Applications</b></property> + <property name="use_underline">False</property> + <property name="use_markup">True</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + <packing> + <property name="type">label_item</property> + </packing> + </child> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">True</property> + <property name="fill">True</property> + </packing> + </child> + </widget> + </child> + </widget> + </child> + + <child> + <widget class="GtkLabel" id="label196"> + <property name="visible">True</property> + <property name="label" translatable="yes"><b>Links</b></property> + <property name="use_underline">False</property> + <property name="use_markup">True</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + <packing> + <property name="type">label_item</property> + </packing> + </child> </widget> <packing> <property name="padding">0</property> @@ -5273,23 +5505,101 @@ on the server as a vCard</property> </child> <child> - <widget class="GtkCheckButton" id="chk_log_pres_ext"> + <widget class="GtkFrame" id="frame20"> <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="label" translatable="yes">Log presences in an external file</property> - <property name="use_underline">True</property> - <property name="relief">GTK_RELIEF_NORMAL</property> - <property name="focus_on_click">True</property> - <property name="active">False</property> - <property name="inconsistent">False</property> - <property name="draw_indicator">True</property> + <property name="label_xalign">0</property> + <property name="label_yalign">0.5</property> + <property name="shadow_type">GTK_SHADOW_NONE</property> + + <child> + <widget class="GtkAlignment" id="alignment41"> + <property name="visible">True</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xscale">1</property> + <property name="yscale">1</property> + <property name="top_padding">0</property> + <property name="bottom_padding">0</property> + <property name="left_padding">12</property> + <property name="right_padding">0</property> + + <child> + <widget class="GtkVBox" id="vbox48"> + <property name="visible">True</property> + <property name="homogeneous">False</property> + <property name="spacing">0</property> + + <child> + <widget class="GtkCheckButton" id="chk_log_pres_usr"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">Log presences in user's log file</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <property name="active">False</property> + <property name="inconsistent">False</property> + <property name="draw_indicator">True</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + + <child> + <widget class="GtkCheckButton" id="chk_log_pres_ext"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">Log presences in an external file</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <property name="active">False</property> + <property name="inconsistent">False</property> + <property name="draw_indicator">True</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + </widget> + </child> + </widget> + </child> + + <child> + <widget class="GtkLabel" id="label195"> + <property name="visible">True</property> + <property name="label" translatable="yes"><b>Log</b></property> + <property name="use_underline">False</property> + <property name="use_markup">True</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + <packing> + <property name="type">label_item</property> + </packing> + </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> - <property name="fill">False</property> + <property name="fill">True</property> </packing> </child> + + <child> + <placeholder/> + </child> </widget> <packing> <property name="tab_expand">False</property> @@ -5306,7 +5616,7 @@ on the server as a vCard</property> <child> <widget class="GtkImage" id="image176"> <property name="visible">True</property> - <property name="stock">gtk-justify-fill</property> + <property name="stock">gtk-preferences</property> <property name="icon_size">4</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> @@ -5323,7 +5633,7 @@ on the server as a vCard</property> <child> <widget class="GtkLabel" id="label169"> <property name="visible">True</property> - <property name="label" translatable="yes">Log</property> + <property name="label" translatable="yes">Advanced</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index 0392a7a535b2a9c5eac4a0a9f1876e9fd327e834..ff0ba6230701e256995969cb1785a8beef51092a 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -52,11 +52,18 @@ if __name__ == "__main__": import pygtk pygtk.require('2.0') import gtk -from gtk import TRUE, FALSE -import gtk.glade,gobject -import os,string,time,Queue, sys -import common.optparser,common.sleepy +import gtk.glade +import gobject +import os +import string +import time +import Queue +import sys +import common.optparser +import common.sleepy + from common import i18n + _ = i18n._ APP = i18n.APP gtk.glade.bindtextdomain (APP, i18n.DIR) @@ -75,7 +82,7 @@ class ImageCellRenderer(gtk.GenericCellRenderer): "image": (gobject.TYPE_OBJECT, "Image", "Image", gobject.PARAM_READWRITE), } - + def __init__(self): self.__gobject_init__() self.image = None