aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-widget-irc.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-22 02:42:40 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-22 02:42:40 +0800
commit36bfa50660b97ad74678e3cde0f6195154135fef (patch)
tree0bcd90a9e5ce9a026c2dc47d8e7a19122302b9d5 /libempathy-gtk/empathy-account-widget-irc.c
parent80e9b255ca7f39d17034475f52479e5199ce5f93 (diff)
downloadgsoc2013-empathy-36bfa50660b97ad74678e3cde0f6195154135fef.tar
gsoc2013-empathy-36bfa50660b97ad74678e3cde0f6195154135fef.tar.gz
gsoc2013-empathy-36bfa50660b97ad74678e3cde0f6195154135fef.tar.bz2
gsoc2013-empathy-36bfa50660b97ad74678e3cde0f6195154135fef.tar.lz
gsoc2013-empathy-36bfa50660b97ad74678e3cde0f6195154135fef.tar.xz
gsoc2013-empathy-36bfa50660b97ad74678e3cde0f6195154135fef.tar.zst
gsoc2013-empathy-36bfa50660b97ad74678e3cde0f6195154135fef.zip
Add the Apply widget to the IRC account settings dialog
Diffstat (limited to 'libempathy-gtk/empathy-account-widget-irc.c')
-rw-r--r--libempathy-gtk/empathy-account-widget-irc.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-account-widget-irc.c b/libempathy-gtk/empathy-account-widget-irc.c
index ae41f1e39..4bca91073 100644
--- a/libempathy-gtk/empathy-account-widget-irc.c
+++ b/libempathy-gtk/empathy-account-widget-irc.c
@@ -423,12 +423,13 @@ empathy_account_widget_irc_new (EmpathyAccountSettings *account_settings)
EmpathyAccountWidgetIrc *settings;
gchar *dir, *user_file_with_path, *global_file_with_path;
GtkBuilder *gui;
+ GtkWidget *widget;
GtkListStore *store;
GtkCellRenderer *renderer;
gchar *filename;
settings = g_slice_new0 (EmpathyAccountWidgetIrc);
- settings->settings = g_object_ref (settings);
+ settings->settings = g_object_ref (account_settings);
dir = g_build_filename (g_get_home_dir (), ".gnome2", PACKAGE_NAME, NULL);
g_mkdir_with_parents (dir, S_IRUSR | S_IWUSR | S_IXUSR);
@@ -454,7 +455,8 @@ empathy_account_widget_irc_new (EmpathyAccountSettings *account_settings)
filename = empathy_file_lookup ("empathy-account-widget-irc.ui",
"libempathy-gtk");
gui = empathy_builder_get_file (filename,
- "vbox_irc_settings", &settings->vbox_settings,
+ "vbox_irc", &widget,
+ "table_irc_settings", &settings->vbox_settings,
"combobox_network", &settings->combobox_network,
NULL);
g_free (filename);
@@ -489,7 +491,7 @@ empathy_account_widget_irc_new (EmpathyAccountSettings *account_settings)
NULL);
empathy_builder_connect (gui, settings,
- "vbox_irc_settings", "destroy", account_widget_irc_destroy_cb,
+ "table_irc_settings", "destroy", account_widget_irc_destroy_cb,
"button_network", "clicked",
account_widget_irc_button_edit_network_clicked_cb,
"button_add_network", "clicked",
@@ -501,8 +503,7 @@ empathy_account_widget_irc_new (EmpathyAccountSettings *account_settings)
NULL);
empathy_account_widget_set_default_focus (gui, "entry_nick");
- empathy_account_widget_add_apply_button (account_settings,
- settings->vbox_settings);
+ empathy_account_widget_add_apply_button (account_settings, widget);
- return empathy_builder_unref_and_keep_widget (gui, settings->vbox_settings);
+ return empathy_builder_unref_and_keep_widget (gui, widget);
}