diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-03-27 15:38:17 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-03-27 15:38:17 +0800 |
commit | 824dd8a4f0bba86f78df499448e818f5998a96e5 (patch) | |
tree | 5a0492a3c7433d9b02cee88fb81faf8c3ebd521d | |
parent | 95217d7459ab0962e1733c58665d36f1a0f6029e (diff) | |
download | gsoc2013-empathy-824dd8a4f0bba86f78df499448e818f5998a96e5.tar gsoc2013-empathy-824dd8a4f0bba86f78df499448e818f5998a96e5.tar.gz gsoc2013-empathy-824dd8a4f0bba86f78df499448e818f5998a96e5.tar.bz2 gsoc2013-empathy-824dd8a4f0bba86f78df499448e818f5998a96e5.tar.lz gsoc2013-empathy-824dd8a4f0bba86f78df499448e818f5998a96e5.tar.xz gsoc2013-empathy-824dd8a4f0bba86f78df499448e818f5998a96e5.tar.zst gsoc2013-empathy-824dd8a4f0bba86f78df499448e818f5998a96e5.zip |
Add GUI to configure groupwise account. Fixes bug #522862 (Vincent Untz).
svn path=/trunk/; revision=827
-rw-r--r-- | libempathy-gtk/Makefile.am | 1 | ||||
-rw-r--r-- | libempathy-gtk/empathy-account-widget-groupwise.glade | 192 | ||||
-rw-r--r-- | libempathy-gtk/empathy-account-widget.c | 34 | ||||
-rw-r--r-- | libempathy-gtk/empathy-account-widget.h | 1 | ||||
-rw-r--r-- | libempathy-gtk/empathy-accounts-dialog.c | 4 |
5 files changed, 232 insertions, 0 deletions
diff --git a/libempathy-gtk/Makefile.am b/libempathy-gtk/Makefile.am index 1b9a24500..20613ab48 100644 --- a/libempathy-gtk/Makefile.am +++ b/libempathy-gtk/Makefile.am @@ -115,6 +115,7 @@ glade_DATA = \ empathy-account-widget-irc.glade \ empathy-account-widget-icq.glade \ empathy-account-widget-yahoo.glade \ + empathy-account-widget-groupwise.glade \ empathy-group-chat.glade \ empathy-spell-dialog.glade \ empathy-log-window.glade \ diff --git a/libempathy-gtk/empathy-account-widget-groupwise.glade b/libempathy-gtk/empathy-account-widget-groupwise.glade new file mode 100644 index 000000000..94d7b542a --- /dev/null +++ b/libempathy-gtk/empathy-account-widget-groupwise.glade @@ -0,0 +1,192 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd"> +<!--*- mode: xml -*--> +<glade-interface> + <widget class="GtkWindow" id="account_groupwise_settings"> + <property name="visible">True</property> + <property name="title" translatable="yes">groupwise account settings</property> + <property name="resizable">False</property> + <child> + <widget class="GtkVBox" id="vbox_groupwise_settings"> + <property name="visible">True</property> + <property name="spacing">6</property> + <child> + <widget class="GtkTable" id="table_common_groupwise_settings"> + <property name="visible">True</property> + <property name="n_rows">2</property> + <property name="n_columns">2</property> + <property name="column_spacing">6</property> + <property name="row_spacing">6</property> + <child> + <widget class="GtkHBox" id="hbox1"> + <property name="visible">True</property> + <property name="spacing">2</property> + <child> + <widget class="GtkEntry" id="entry_password"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="visibility">False</property> + </widget> + </child> + <child> + <widget class="GtkButton" id="button_forget"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="tooltip" translatable="yes">Forget password and clear the entry.</property> + <property name="response_id">0</property> + <child> + <widget class="GtkImage" id="image1"> + <property name="visible">True</property> + <property name="stock">gtk-clear</property> + <property name="icon_size">1</property> + </widget> + </child> + </widget> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </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> + <child> + <widget class="GtkLabel" id="label_password"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Pass_word:</property> + <property name="use_underline">True</property> + </widget> + <packing> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <widget class="GtkLabel" id="label_id"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Login I_D:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">entry_id</property> + </widget> + <packing> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <widget class="GtkEntry" id="entry_id"> + <property name="visible">True</property> + <property name="can_focus">True</property> + </widget> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="y_options"></property> + </packing> + </child> + </widget> + <packing> + <property name="expand">False</property> + </packing> + </child> + <child> + <widget class="GtkExpander" id="expander1"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <child> + <widget class="GtkTable" id="table_advanced_groupwise_settings"> + <property name="visible">True</property> + <property name="n_rows">2</property> + <property name="n_columns">2</property> + <property name="column_spacing">6</property> + <property name="row_spacing">6</property> + <child> + <widget class="GtkLabel" id="label_port"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">_Port:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">spinbutton_port</property> + </widget> + <packing> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <widget class="GtkLabel" id="label_server"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">_Server:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">entry_server</property> + </widget> + <packing> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <widget class="GtkEntry" id="entry_server"> + <property name="visible">True</property> + <property name="can_focus">True</property> + </widget> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <widget class="GtkSpinButton" id="spinbutton_port"> + <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="adjustment">0 0 65536 1 10 10</property> + <property name="climb_rate">1</property> + <property name="numeric">True</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> + <child> + <widget class="GtkLabel" id="label1"> + <property name="visible">True</property> + <property name="label" translatable="yes"><b>Advanced</b></property> + <property name="use_markup">True</property> + </widget> + <packing> + <property name="type">label_item</property> + </packing> + </child> + </widget> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </widget> + </child> + </widget> +</glade-interface> diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index a22949235..4550e9ec3 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -709,3 +709,37 @@ empathy_account_widget_yahoo_new (McAccount *account) return widget; } +GtkWidget * +empathy_account_widget_groupwise_new (McAccount *account) +{ + GladeXML *glade; + GtkWidget *widget; + gchar *filename; + + filename = empathy_file_lookup ("empathy-account-widget-groupwise.glade", + "libempathy-gtk"); + glade = empathy_glade_get_file (filename, + "vbox_groupwise_settings", + NULL, + "vbox_groupwise_settings", &widget, + NULL); + g_free (filename); + + empathy_account_widget_handle_params (account, glade, + "entry_id", "account", + "entry_password", "password", + "entry_server", "server", + "spinbutton_port", "port", + NULL); + + empathy_account_widget_add_forget_button (account, glade, + "button_forget", + "entry_password"); + + g_object_unref (glade); + + gtk_widget_show (widget); + + return widget; +} + diff --git a/libempathy-gtk/empathy-account-widget.h b/libempathy-gtk/empathy-account-widget.h index b7ebb6742..5c5940fab 100644 --- a/libempathy-gtk/empathy-account-widget.h +++ b/libempathy-gtk/empathy-account-widget.h @@ -47,6 +47,7 @@ GtkWidget *empathy_account_widget_jabber_new (McAccount *account); GtkWidget *empathy_account_widget_icq_new (McAccount *account); GtkWidget *empathy_account_widget_yahoo_new (McAccount *account); GtkWidget *empathy_account_widget_sip_new (McAccount *account); +GtkWidget *empathy_account_widget_groupwise_new (McAccount *account); G_END_DECLS diff --git a/libempathy-gtk/empathy-accounts-dialog.c b/libempathy-gtk/empathy-accounts-dialog.c index 75b3c5472..784bd2b2c 100644 --- a/libempathy-gtk/empathy-accounts-dialog.c +++ b/libempathy-gtk/empathy-accounts-dialog.c @@ -285,6 +285,10 @@ accounts_dialog_update_account (EmpathyAccountsDialog *dialog, dialog->settings_widget = empathy_account_widget_sip_new (account); } + else if (!tp_strdiff (config_ui, "groupwise")) { + dialog->settings_widget = + empathy_account_widget_groupwise_new (account); + } else { dialog->settings_widget = empathy_account_widget_generic_new (account); |