diff options
author | Guillaume Desmottes <gdesmott@gnome.org> | 2008-02-08 10:18:45 +0800 |
---|---|---|
committer | Guillaume Desmottes <gdesmott@gnome.org> | 2008-02-08 10:18:45 +0800 |
commit | 8df2bb20d64b4f89126145fc75b4f5c63365c215 (patch) | |
tree | c4c7c9b78d708912d4fac5be9669a6ad83a62656 /libempathy-gtk | |
parent | 7efef4ee0cd73dca869aebebb9753536af515f40 (diff) | |
download | gsoc2013-empathy-8df2bb20d64b4f89126145fc75b4f5c63365c215.tar gsoc2013-empathy-8df2bb20d64b4f89126145fc75b4f5c63365c215.tar.gz gsoc2013-empathy-8df2bb20d64b4f89126145fc75b4f5c63365c215.tar.bz2 gsoc2013-empathy-8df2bb20d64b4f89126145fc75b4f5c63365c215.tar.lz gsoc2013-empathy-8df2bb20d64b4f89126145fc75b4f5c63365c215.tar.xz gsoc2013-empathy-8df2bb20d64b4f89126145fc75b4f5c63365c215.tar.zst gsoc2013-empathy-8df2bb20d64b4f89126145fc75b4f5c63365c215.zip |
add a add-network button
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-account-widget-irc.c | 11 | ||||
-rw-r--r-- | libempathy-gtk/empathy-account-widget-irc.glade | 284 |
2 files changed, 162 insertions, 133 deletions
diff --git a/libempathy-gtk/empathy-account-widget-irc.c b/libempathy-gtk/empathy-account-widget-irc.c index 7a69d1b6a..55d9c5718 100644 --- a/libempathy-gtk/empathy-account-widget-irc.c +++ b/libempathy-gtk/empathy-account-widget-irc.c @@ -50,6 +50,7 @@ typedef struct { GtkWidget *vbox_settings; GtkWidget *combobox_network; + GtkWidget *button_add_network; GtkWidget *button_network; GtkWidget *button_remove; @@ -239,6 +240,14 @@ account_widget_irc_button_remove_clicked_cb (GtkWidget *button, g_object_unref (network); } +static void +account_widget_irc_button_add_network_clicked_cb (GtkWidget *button, + EmpathyAccountWidgetIrc *settings) +{ + /* TODO */ + g_print ("add network\n"); +} + static gboolean account_widget_irc_is_separator (GtkTreeModel *model, GtkTreeIter *iter, @@ -549,6 +558,7 @@ empathy_account_widget_irc_new (McAccount *account) "vbox_irc_settings", &settings->vbox_settings, "combobox_network", &settings->combobox_network, "button_network", &settings->button_network, + "button_add_network", &settings->button_add_network, "button_remove", &settings->button_remove, "label_network", &label_network, "label_nick", &label_nick, @@ -603,6 +613,7 @@ empathy_account_widget_irc_new (McAccount *account) "entry_password", "focus-out-event", account_widget_irc_entry_focus_cb, "entry_quit_message", "focus-out-event", account_widget_irc_entry_focus_cb, "button_network", "clicked", account_widget_irc_button_network_clicked_cb, + "button_add_network", "clicked", account_widget_irc_button_add_network_clicked_cb, "button_remove", "clicked", account_widget_irc_button_remove_clicked_cb, "combobox_network", "changed", account_widget_irc_combobox_network_changed_cb, NULL); diff --git a/libempathy-gtk/empathy-account-widget-irc.glade b/libempathy-gtk/empathy-account-widget-irc.glade index d0dac354a..440b7e31a 100644 --- a/libempathy-gtk/empathy-account-widget-irc.glade +++ b/libempathy-gtk/empathy-account-widget-irc.glade @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd"> -<!--Generated with glade3 3.4.0 on Sun Feb 3 13:11:34 2008 --> +<!--Generated with glade3 3.4.0 on Fri Feb 8 03:13:32 2008 --> <glade-interface> <widget class="GtkWindow" id="account_irc_settings"> <property name="title" translatable="yes">irc account settings</property> @@ -13,110 +13,56 @@ <property name="column_spacing">12</property> <property name="row_spacing">6</property> <child> - <widget class="GtkLabel" id="label_network"> - <property name="visible">True</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Network:</property> - <property name="use_underline">True</property> - </widget> - <packing> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> - </packing> - </child> - <child> - <widget class="GtkHBox" id="hbox174"> + <widget class="GtkEntry" id="entry_quit_message"> <property name="visible">True</property> - <property name="spacing">2</property> - <child> - <widget class="GtkComboBox" id="combobox_network"> - <property name="visible">True</property> - <property name="items" translatable="yes"></property> - </widget> - </child> - <child> - <widget class="GtkButton" id="button_network"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="response_id">0</property> - <child> - <widget class="GtkImage" id="image834"> - <property name="visible">True</property> - <property name="stock">gtk-edit</property> - </widget> - </child> - </widget> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">1</property> - </packing> - </child> - <child> - <widget class="GtkButton" id="button_remove"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="response_id">0</property> - <child> - <widget class="GtkImage" id="image835"> - <property name="visible">True</property> - <property name="stock">gtk-remove</property> - </widget> - </child> - </widget> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">2</property> - </packing> - </child> + <property name="can_focus">True</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options">GTK_FILL</property> + <property name="top_attach">4</property> + <property name="bottom_attach">5</property> + <property name="y_options"></property> </packing> </child> <child> - <widget class="GtkLabel" id="label_nick"> + <widget class="GtkLabel" id="label_quit_message"> <property name="visible">True</property> <property name="xalign">0</property> - <property name="label" translatable="yes">Nickname:</property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">entry_nick</property> + <property name="label" translatable="yes">Quit message:</property> </widget> <packing> - <property name="top_attach">1</property> - <property name="bottom_attach">2</property> + <property name="top_attach">4</property> + <property name="bottom_attach">5</property> <property name="x_options">GTK_FILL</property> <property name="y_options"></property> </packing> </child> <child> - <widget class="GtkEntry" id="entry_nick"> + <widget class="GtkEntry" id="entry_fullname"> <property name="visible">True</property> <property name="can_focus">True</property> - <property name="invisible_char">*</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="top_attach">3</property> + <property name="bottom_attach">4</property> <property name="y_options"></property> </packing> </child> <child> - <widget class="GtkLabel" id="label_fullname"> + <widget class="GtkEntry" id="entry_password"> <property name="visible">True</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Real name:</property> + <property name="can_focus">True</property> + <property name="visibility">False</property> + <property name="invisible_char">*</property> </widget> <packing> - <property name="top_attach">3</property> - <property name="bottom_attach">4</property> - <property name="x_options">GTK_FILL</property> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">2</property> + <property name="bottom_attach">3</property> <property name="y_options"></property> </packing> </child> @@ -134,56 +80,128 @@ </packing> </child> <child> - <widget class="GtkEntry" id="entry_password"> + <widget class="GtkLabel" id="label_fullname"> <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="visibility">False</property> - <property name="invisible_char">*</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Real name:</property> </widget> <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">2</property> - <property name="bottom_attach">3</property> + <property name="top_attach">3</property> + <property name="bottom_attach">4</property> + <property name="x_options">GTK_FILL</property> <property name="y_options"></property> </packing> </child> <child> - <widget class="GtkEntry" id="entry_fullname"> + <widget class="GtkEntry" id="entry_nick"> <property name="visible">True</property> <property name="can_focus">True</property> + <property name="invisible_char">*</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> - <property name="top_attach">3</property> - <property name="bottom_attach">4</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_quit_message"> + <widget class="GtkLabel" id="label_nick"> <property name="visible">True</property> <property name="xalign">0</property> - <property name="label" translatable="yes">Quit message:</property> + <property name="label" translatable="yes">Nickname:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">entry_nick</property> </widget> <packing> - <property name="top_attach">4</property> - <property name="bottom_attach">5</property> + <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="GtkEntry" id="entry_quit_message"> + <widget class="GtkHBox" id="hbox174"> <property name="visible">True</property> - <property name="can_focus">True</property> + <property name="spacing">2</property> + <child> + <widget class="GtkComboBox" id="combobox_network"> + <property name="visible">True</property> + <property name="items" translatable="yes"></property> + </widget> + </child> + <child> + <widget class="GtkButton" id="button_add_network"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="response_id">0</property> + <child> + <widget class="GtkImage" id="image2"> + <property name="visible">True</property> + <property name="stock">gtk-add</property> + </widget> + </child> + </widget> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + <child> + <widget class="GtkButton" id="button_network"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="response_id">0</property> + <child> + <widget class="GtkImage" id="image834"> + <property name="visible">True</property> + <property name="stock">gtk-edit</property> + </widget> + </child> + </widget> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + </packing> + </child> + <child> + <widget class="GtkButton" id="button_remove"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="response_id">0</property> + <child> + <widget class="GtkImage" id="image835"> + <property name="visible">True</property> + <property name="stock">gtk-remove</property> + </widget> + </child> + </widget> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">3</property> + </packing> + </child> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> - <property name="top_attach">4</property> - <property name="bottom_attach">5</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options">GTK_FILL</property> + </packing> + </child> + <child> + <widget class="GtkLabel" id="label_network"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Network:</property> + <property name="use_underline">True</property> + </widget> + <packing> + <property name="x_options">GTK_FILL</property> <property name="y_options"></property> </packing> </child> @@ -221,17 +239,27 @@ <property name="column_spacing">12</property> <property name="row_spacing">6</property> <child> - <widget class="GtkComboBox" id="combobox_charset"> + <widget class="GtkLabel" id="label_network"> <property name="visible">True</property> - <property name="items" translatable="yes">UTF-8</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Network:</property> + </widget> + <packing> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <widget class="GtkLabel" id="label_charset"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Charset:</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="x_options">GTK_FILL</property> - <property name="y_options">GTK_FILL</property> + <property name="y_options"></property> </packing> </child> <child> @@ -246,27 +274,17 @@ </packing> </child> <child> - <widget class="GtkLabel" id="label_charset"> + <widget class="GtkComboBox" id="combobox_charset"> <property name="visible">True</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Charset:</property> + <property name="items" translatable="yes">UTF-8</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="x_options">GTK_FILL</property> - <property name="y_options"></property> - </packing> - </child> - <child> - <widget class="GtkLabel" id="label_network"> - <property name="visible">True</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Network:</property> - </widget> - <packing> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> + <property name="y_options">GTK_FILL</property> </packing> </child> </widget> @@ -306,6 +324,25 @@ <property name="column_spacing">6</property> <property name="row_spacing">6</property> <child> + <widget class="GtkScrolledWindow" id="scrolledwindow19"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="hscrollbar_policy">GTK_POLICY_NEVER</property> + <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> + <property name="shadow_type">GTK_SHADOW_IN</property> + <child> + <widget class="GtkTreeView" id="treeview_servers"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="enable_search">False</property> + </widget> + </child> + </widget> + <packing> + <property name="y_options">GTK_FILL</property> + </packing> + </child> + <child> <widget class="GtkVButtonBox" id="vbuttonbox1"> <property name="visible">True</property> <property name="spacing">6</property> @@ -366,25 +403,6 @@ <property name="x_options">GTK_FILL</property> </packing> </child> - <child> - <widget class="GtkScrolledWindow" id="scrolledwindow19"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hscrollbar_policy">GTK_POLICY_NEVER</property> - <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> - <property name="shadow_type">GTK_SHADOW_IN</property> - <child> - <widget class="GtkTreeView" id="treeview_servers"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="enable_search">False</property> - </widget> - </child> - </widget> - <packing> - <property name="y_options">GTK_FILL</property> - </packing> - </child> </widget> </child> </widget> |