GtkWidget * empathy_account_widget_yahoo_new (McAccount *account) { GtkBuilder *gui; GtkWidget *widget; gchar *filename; filename = empathy_file_lookup ("empathy-account-widget-yahoo.ui", "libempathy-gtk"); gui = empathy_builder_get_file (filename, "vbox_yahoo_settings", &widget, NULL); g_free (filename); empathy_account_widget_handle_params (account, gui, "entry_id", "account", "entry_password", "password", "entry_server", "server", "entry_locale", "room-list-locale", "entry_charset", "charset", "spinbutton_port", "port", "checkbutton_yahoojp", "yahoojp", "checkbutton_ignore_invites", "ignore-invites", NULL); empathy_account_widget_add_forget_button (account, gui, "button_forget", "entry_password"); empathy_account_widget_set_default_focus (gui, "entry_id"); return empathy_builder_unref_and_keep_widget (gui, widget); }
GtkWidget * empathy_account_widget_salut_new (McAccount *account) { GtkBuilder *gui; GtkWidget *widget; gchar *filename; filename = empathy_file_lookup ("empathy-account-widget-salut.ui", "libempathy-gtk"); gui = empathy_builder_get_file (filename, "vbox_salut_settings", &widget, NULL); g_free (filename); empathy_account_widget_handle_params (account, gui, "entry_published", "published-name", "entry_nickname", "nickname", "entry_first_name", "first-name", "entry_last_name", "last-name", "entry_email", "email", "entry_jid", "jid", NULL); empathy_account_widget_set_default_focus (gui, "entry_nickname"); return empathy_builder_unref_and_keep_widget (gui, 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; }
GtkWidget * empathy_account_widget_salut_new (McAccount *account) { GladeXML *glade; GtkWidget *widget; gchar *filename; filename = empathy_file_lookup ("empathy-account-widget-salut.glade", "libempathy-gtk"); glade = empathy_glade_get_file (filename, "vbox_salut_settings", NULL, "vbox_salut_settings", &widget, NULL); g_free (filename); empathy_account_widget_handle_params (account, glade, "entry_published", "published-name", "entry_nickname", "nickname", "entry_first_name", "first-name", "entry_last_name", "last-name", "entry_email", "email", "entry_jid", "jid", NULL); g_object_unref (glade); gtk_widget_show (widget); return widget; }
GtkWidget * empathy_account_widget_groupwise_new (McAccount *account) { GtkBuilder *gui; GtkWidget *widget; gchar *filename; filename = empathy_file_lookup ("empathy-account-widget-groupwise.ui", "libempathy-gtk"); gui = empathy_builder_get_file (filename, "vbox_groupwise_settings", &widget, NULL); g_free (filename); empathy_account_widget_handle_params (account, gui, "entry_id", "account", "entry_password", "password", "entry_server", "server", "spinbutton_port", "port", NULL); empathy_account_widget_add_forget_button (account, gui, "button_forget", "entry_password"); empathy_account_widget_set_default_focus (gui, "entry_id"); return empathy_builder_unref_and_keep_widget (gui, widget); }
static void account_widget_build_yahoo (EmpathyAccountWidget *self, const char *filename) { EmpathyAccountWidgetPriv *priv = GET_PRIV (self); if (priv->simple) { self->ui_details->gui = empathy_builder_get_file (filename, "vbox_yahoo_simple", &self->ui_details->widget, NULL); empathy_account_widget_handle_params (self, "entry_id_simple", "account", "entry_password_simple", "password", NULL); self->ui_details->default_focus = g_strdup ("entry_id_simple"); } else { self->ui_details->gui = empathy_builder_get_file (filename, "table_common_settings", &priv->table_common_settings, "vbox_yahoo_settings", &self->ui_details->widget, NULL); empathy_account_widget_handle_params (self, "entry_id", "account", "entry_password", "password", "entry_server", "server", "entry_locale", "room-list-locale", "entry_charset", "charset", "spinbutton_port", "port", "checkbutton_yahoojp", "yahoojp", "checkbutton_ignore_invites", "ignore-invites", NULL); self->ui_details->default_focus = g_strdup ("entry_id"); self->ui_details->add_forget = TRUE; } }
static void account_widget_build_icq (EmpathyAccountWidget *self, const char *filename) { EmpathyAccountWidgetPriv *priv = GET_PRIV (self); GtkWidget *spinbutton_port; if (priv->simple) { self->ui_details->gui = empathy_builder_get_file (filename, "vbox_icq_simple", &self->ui_details->widget, NULL); empathy_account_widget_handle_params (self, "entry_uin_simple", "account", "entry_password_simple", "password", NULL); self->ui_details->default_focus = g_strdup ("entry_uin_simple"); } else { self->ui_details->gui = empathy_builder_get_file (filename, "table_common_settings", &priv->table_common_settings, "vbox_icq_settings", &self->ui_details->widget, "spinbutton_port", &spinbutton_port, NULL); empathy_account_widget_handle_params (self, "entry_uin", "account", "entry_password", "password", "entry_server", "server", "spinbutton_port", "port", "entry_charset", "charset", NULL); self->ui_details->default_focus = g_strdup ("entry_uin"); self->ui_details->add_forget = TRUE; } }
GtkWidget * empathy_account_widget_jabber_new (McAccount *account) { GladeXML *glade; GtkWidget *widget; GtkWidget *spinbutton_port; GtkWidget *checkbutton_ssl; gchar *filename; filename = empathy_file_lookup ("empathy-account-widget-jabber.glade", "libempathy-gtk"); glade = empathy_glade_get_file (filename, "vbox_jabber_settings", NULL, "vbox_jabber_settings", &widget, "spinbutton_port", &spinbutton_port, "checkbutton_ssl", &checkbutton_ssl, NULL); g_free (filename); empathy_account_widget_handle_params (account, glade, "entry_id", "account", "entry_password", "password", "entry_resource", "resource", "entry_server", "server", "spinbutton_port", "port", "spinbutton_priority", "priority", "checkbutton_ssl", "old-ssl", "checkbutton_ignore_ssl_errors", "ignore-ssl-errors", "checkbutton_encryption", "require-encryption", NULL); empathy_account_widget_add_forget_button (account, glade, "button_forget", "entry_password"); g_signal_connect (checkbutton_ssl, "toggled", G_CALLBACK (account_widget_jabber_ssl_toggled_cb), spinbutton_port); g_object_unref (glade); gtk_widget_show (widget); return widget; }
/** * empathy_account_widget_sip_new: * @account: the #McAccount to configure * * Creates a new SIP account widget to configure a given #McAccount * * Returns: The toplevel container of the configuration widget */ GtkWidget * empathy_account_widget_sip_new (McAccount *account) { EmpathyAccountWidgetSip *settings; GladeXML *glade; gchar *filename; settings = g_slice_new0 (EmpathyAccountWidgetSip); settings->account = g_object_ref (account); filename = empathy_file_lookup ("empathy-account-widget-sip.glade", "libempathy-gtk"); glade = empathy_glade_get_file (filename, "vbox_sip_settings", NULL, "vbox_sip_settings", &settings->vbox_settings, "entry_stun-server", &settings->entry_stun_server, "spinbutton_stun-port", &settings->spinbutton_stun_part, "checkbutton_discover-stun", &settings->checkbutton_discover_stun, NULL); g_free (filename); empathy_account_widget_handle_params (account, glade, "entry_userid", "account", "entry_password", "password", "checkbutton_discover-stun", "discover-stun", "entry_stun-server", "stun-server", "spinbutton_stun-port", "stun-port", NULL); empathy_account_widget_add_forget_button (account, glade, "button_forget", "entry_password"); account_widget_sip_discover_stun_toggled_cb (settings->checkbutton_discover_stun, settings); empathy_glade_connect (glade, settings, "vbox_sip_settings", "destroy", account_widget_sip_destroy_cb, "checkbutton_discover-stun", "toggled", account_widget_sip_discover_stun_toggled_cb, NULL); g_object_unref (glade); return settings->vbox_settings; }
GtkWidget * empathy_account_widget_jabber_new (McAccount *account) { GtkBuilder *gui; GtkWidget *widget; GtkWidget *spinbutton_port; GtkWidget *checkbutton_ssl; gchar *filename; filename = empathy_file_lookup ("empathy-account-widget-jabber.ui", "libempathy-gtk"); gui = empathy_builder_get_file (filename, "vbox_jabber_settings", &widget, "spinbutton_port", &spinbutton_port, "checkbutton_ssl", &checkbutton_ssl, NULL); g_free (filename); empathy_account_widget_handle_params (account, gui, "entry_id", "account", "entry_password", "password", "entry_resource", "resource", "entry_server", "server", "spinbutton_port", "port", "spinbutton_priority", "priority", "checkbutton_ssl", "old-ssl", "checkbutton_ignore_ssl_errors", "ignore-ssl-errors", "checkbutton_encryption", "require-encryption", NULL); empathy_account_widget_add_forget_button (account, gui, "button_forget", "entry_password"); empathy_account_widget_set_default_focus (gui, "entry_id"); g_signal_connect (checkbutton_ssl, "toggled", G_CALLBACK (account_widget_jabber_ssl_toggled_cb), spinbutton_port); return empathy_builder_unref_and_keep_widget (gui, widget); }
EmpathyIrcNetworkChooser * empathy_account_widget_irc_build_simple (EmpathyAccountWidget *self, const char *filename) { EmpathyAccountWidgetIrc *settings; EmpathyAccountSettings *ac_settings; GtkAlignment *alignment; settings = g_slice_new0 (EmpathyAccountWidgetIrc); settings->self = self; self->ui_details->gui = empathy_builder_get_file (filename, "vbox_irc_simple", &self->ui_details->widget, "alignment_network_simple", &alignment, NULL); /* Add network chooser button */ g_object_get (settings->self, "settings", &ac_settings, NULL); settings->network_chooser = empathy_irc_network_chooser_new (ac_settings); g_signal_connect (settings->network_chooser, "changed", G_CALLBACK (network_changed_cb), settings); gtk_container_add (GTK_CONTAINER (alignment), settings->network_chooser); gtk_widget_show (settings->network_chooser); empathy_account_widget_handle_params (self, "entry_nick_simple", "account", NULL); empathy_builder_connect (self->ui_details->gui, settings, "vbox_irc_simple", "destroy", account_widget_irc_destroy_cb, NULL); self->ui_details->default_focus = g_strdup ("entry_nick_simple"); g_object_unref (ac_settings); return EMPATHY_IRC_NETWORK_CHOOSER (settings->network_chooser); }
static void account_widget_build_salut (EmpathyAccountWidget *self, const char *filename) { EmpathyAccountWidgetPriv *priv = GET_PRIV (self); self->ui_details->gui = empathy_builder_get_file (filename, "table_common_settings", &priv->table_common_settings, "vbox_salut_settings", &self->ui_details->widget, NULL); empathy_account_widget_handle_params (self, "entry_published", "published-name", "entry_nickname", "nickname", "entry_first_name", "first-name", "entry_last_name", "last-name", "entry_email", "email", "entry_jid", "jid", NULL); self->ui_details->default_focus = g_strdup ("entry_nickname"); }
GtkWidget * empathy_account_widget_yahoo_new (McAccount *account) { GladeXML *glade; GtkWidget *widget; gchar *filename; filename = empathy_file_lookup ("empathy-account-widget-yahoo.glade", "libempathy-gtk"); glade = empathy_glade_get_file (filename, "vbox_yahoo_settings", NULL, "vbox_yahoo_settings", &widget, NULL); g_free (filename); empathy_account_widget_handle_params (account, glade, "entry_id", "account", "entry_password", "password", "entry_server", "server", "entry_locale", "room-list-locale", "entry_charset", "charset", "spinbutton_port", "port", "checkbutton_yahoojp", "yahoojp", "checkbutton_ignore_invites", "ignore-invites", NULL); empathy_account_widget_add_forget_button (account, glade, "button_forget", "entry_password"); g_object_unref (glade); gtk_widget_show (widget); return widget; }
void empathy_account_widget_irc_build (EmpathyAccountWidget *self, const char *filename, GtkWidget **table_common_settings) { EmpathyAccountWidgetIrc *settings; gchar *dir, *user_file_with_path, *global_file_with_path; GtkListStore *store; GtkCellRenderer *renderer; settings = g_slice_new0 (EmpathyAccountWidgetIrc); settings->self = self; dir = g_build_filename (g_get_user_config_dir (), PACKAGE_NAME, NULL); g_mkdir_with_parents (dir, S_IRUSR | S_IWUSR | S_IXUSR); user_file_with_path = g_build_filename (dir, IRC_NETWORKS_FILENAME, NULL); g_free (dir); global_file_with_path = g_build_filename (g_getenv ("EMPATHY_SRCDIR"), "libempathy-gtk", IRC_NETWORKS_FILENAME, NULL); if (!g_file_test (global_file_with_path, G_FILE_TEST_EXISTS)) { g_free (global_file_with_path); global_file_with_path = g_build_filename (DATADIR, "empathy", IRC_NETWORKS_FILENAME, NULL); } settings->network_manager = empathy_irc_network_manager_new ( global_file_with_path, user_file_with_path); g_free (global_file_with_path); g_free (user_file_with_path); self->ui_details->gui = empathy_builder_get_file (filename, "table_irc_settings", table_common_settings, "vbox_irc", &self->ui_details->widget, "table_irc_settings", &settings->vbox_settings, "combobox_network", &settings->combobox_network, NULL); /* Fill the networks combobox */ store = gtk_list_store_new (2, G_TYPE_OBJECT, G_TYPE_STRING); gtk_cell_layout_clear (GTK_CELL_LAYOUT (settings->combobox_network)); renderer = gtk_cell_renderer_text_new (); gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (settings->combobox_network), renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (settings->combobox_network), renderer, "text", COL_NETWORK_NAME, NULL); gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (store), COL_NETWORK_NAME, GTK_SORT_ASCENDING); gtk_combo_box_set_model (GTK_COMBO_BOX (settings->combobox_network), GTK_TREE_MODEL (store)); g_object_unref (store); account_widget_irc_setup (settings); empathy_account_widget_handle_params (self, "entry_nick", "account", "entry_fullname", "fullname", "entry_password", "password", "entry_quit_message", "quit-message", NULL); empathy_builder_connect (self->ui_details->gui, settings, "table_irc_settings", "destroy", account_widget_irc_destroy_cb, "button_network", "clicked", account_widget_irc_button_edit_network_clicked_cb, "button_add_network", "clicked", account_widget_irc_button_add_network_clicked_cb, "button_remove_network", "clicked", account_widget_irc_button_remove_clicked_cb, "combobox_network", "changed", account_widget_irc_combobox_network_changed_cb, NULL); self->ui_details->default_focus = g_strdup ("entry_nick"); }
static void account_widget_build_jabber (EmpathyAccountWidget *self, const char *filename) { EmpathyAccountWidgetPriv *priv = GET_PRIV (self); GtkWidget *spinbutton_port; GtkWidget *checkbutton_ssl; GtkWidget *label_id, *label_password; GtkWidget *label_id_create, *label_password_create; GtkWidget *label_example_gtalk, *label_example_jabber; gboolean is_gtalk; is_gtalk = !tp_strdiff ( empathy_account_settings_get_icon_name (priv->settings), "im-google-talk"); if (priv->simple && !is_gtalk) { self->ui_details->gui = empathy_builder_get_file (filename, "vbox_jabber_simple", &self->ui_details->widget, "label_id_simple", &label_id, "label_id_create", &label_id_create, "label_password_simple", &label_password, "label_password_create", &label_password_create, NULL); if (empathy_account_settings_get_boolean (priv->settings, "register")) { gtk_widget_hide (label_id); gtk_widget_hide (label_password); gtk_widget_show (label_id_create); gtk_widget_show (label_password_create); } empathy_account_widget_handle_params (self, "entry_id_simple", "account", "entry_password_simple", "password", NULL); self->ui_details->default_focus = g_strdup ("entry_id_simple"); } else if (priv->simple && is_gtalk) { self->ui_details->gui = empathy_builder_get_file (filename, "vbox_gtalk_simple", &self->ui_details->widget, NULL); empathy_account_widget_handle_params (self, "entry_id_g_simple", "account", "entry_password_g_simple", "password", NULL); self->ui_details->default_focus = g_strdup ("entry_id_g_simple"); } else { self->ui_details->gui = empathy_builder_get_file (filename, "table_common_settings", &priv->table_common_settings, "vbox_jabber_settings", &self->ui_details->widget, "spinbutton_port", &spinbutton_port, "checkbutton_ssl", &checkbutton_ssl, "label_username_example", &label_example_jabber, "label_username_g_example", &label_example_gtalk, NULL); empathy_account_widget_handle_params (self, "entry_id", "account", "entry_password", "password", "entry_resource", "resource", "entry_server", "server", "spinbutton_port", "port", "spinbutton_priority", "priority", "checkbutton_ssl", "old-ssl", "checkbutton_ignore_ssl_errors", "ignore-ssl-errors", "checkbutton_encryption", "require-encryption", NULL); self->ui_details->default_focus = g_strdup ("entry_id"); self->ui_details->add_forget = TRUE; priv->spinbutton_port = spinbutton_port; g_signal_connect (checkbutton_ssl, "toggled", G_CALLBACK (account_widget_jabber_ssl_toggled_cb), self); if (is_gtalk) { gtk_widget_hide (label_example_jabber); gtk_widget_show (label_example_gtalk); } } }
void empathy_account_widget_sip_build (EmpathyAccountWidget *self, const char *filename, GtkWidget **table_common_settings) { EmpathyAccountWidgetSip *settings; GtkWidget *vbox_settings; gboolean is_simple; GtkWidget *table_advanced; g_object_get (self, "simple", &is_simple, NULL); if (is_simple) { self->ui_details->gui = empathy_builder_get_file (filename, "vbox_sip_simple", &vbox_settings, NULL); empathy_account_widget_handle_params (self, "entry_userid_simple", "account", "entry_password_simple", "password", NULL); self->ui_details->default_focus = g_strdup ("entry_userid_simple"); } else { GtkListStore *store; GtkTreeIter iter; GtkCellRenderer *renderer; GtkToggleButton *checkbutton_tel; settings = g_slice_new0 (EmpathyAccountWidgetSip); settings->self = self; self->ui_details->gui = empathy_builder_get_file (filename, "table_common_settings", table_common_settings, "table_advanced_sip_settings", &table_advanced, "vbox_sip_settings", &vbox_settings, "label_stun-server", &settings->label_stun_server, "entry_stun-server", &settings->entry_stun_server, "label_stun-port", &settings->label_stun_port, "spinbutton_stun-port", &settings->spinbutton_stun_port, "checkbutton_discover-stun", &settings->checkbutton_discover_stun, "spinbutton_keepalive-interval", &settings->spinbutton_keepalive_interval, "checkbutton_tel", &checkbutton_tel, NULL); settings->vbox_settings = vbox_settings; gtk_toggle_button_set_active (checkbutton_tel, empathy_account_settings_has_uri_scheme_tel ( empathy_account_widget_get_settings (self))); empathy_account_widget_handle_params (self, "entry_userid", "account", "entry_password", "password", "checkbutton_discover-stun", "discover-stun", "entry_stun-server", "stun-server", "spinbutton_stun-port", "stun-port", "entry_auth-user", "auth-user", "entry_proxy-host", "proxy-host", "spinbutton_port", "port", "checkbutton_loose-routing", "loose-routing", "checkbutton_discover-binding", "discover-binding", "spinbutton_keepalive-interval", "keepalive-interval", "checkbutton_ignore-tls-errors", "ignore-tls-errors", NULL); account_widget_sip_discover_stun_toggled_cb ( settings->checkbutton_discover_stun, settings); empathy_builder_connect (self->ui_details->gui, settings, "vbox_sip_settings", "destroy", account_widget_sip_destroy_cb, "checkbutton_discover-stun", "toggled", account_widget_sip_discover_stun_toggled_cb, "checkbutton_tel", "toggled", checkbutton_tel_toggled, NULL); self->ui_details->default_focus = g_strdup ("entry_userid"); /* Create the 'transport' combo box. The first column has to contain the * value of the param. */ store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING); settings->combobox_transport = gtk_combo_box_new_with_model ( GTK_TREE_MODEL (store)); renderer = gtk_cell_renderer_text_new (); gtk_cell_layout_pack_start ( GTK_CELL_LAYOUT (settings->combobox_transport), renderer, TRUE); gtk_cell_layout_add_attribute ( GTK_CELL_LAYOUT (settings->combobox_transport), renderer, "text", 1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, 0, "auto", 1, _("Auto"), -1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, 0, "udp", 1, _("UDP"), -1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, 0, "tcp", 1, _("TCP"), -1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, 0, "tls", 1, _("TLS"), -1); empathy_account_widget_setup_widget (self, settings->combobox_transport, "transport"); gtk_table_attach_defaults (GTK_TABLE (table_advanced), settings->combobox_transport, 1, 4, 11, 12); gtk_widget_show (settings->combobox_transport); /* Create the 'keep-alive mechanism' combo box */ store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING); settings->combobox_keep_alive_mechanism = gtk_combo_box_new_with_model ( GTK_TREE_MODEL (store)); renderer = gtk_cell_renderer_text_new (); gtk_cell_layout_pack_start ( GTK_CELL_LAYOUT (settings->combobox_keep_alive_mechanism), renderer, TRUE); gtk_cell_layout_add_attribute ( GTK_CELL_LAYOUT (settings->combobox_keep_alive_mechanism), renderer, "text", 1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, 0, "auto", 1, _("Auto"), -1); gtk_list_store_append (store, &iter); /* translators: this string is very specific to SIP's internal; maybe * best to keep the English version. */ gtk_list_store_set (store, &iter, 0, "register", 1, _("Register"), -1); gtk_list_store_append (store, &iter); /* translators: this string is very specific to SIP's internal; maybe * best to keep the English version. */ gtk_list_store_set (store, &iter, 0, "options", 1, _("Options"), -1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, 0, "none", 1, _("None"), -1); g_signal_connect (settings->combobox_keep_alive_mechanism, "changed", G_CALLBACK (keep_alive_mechanism_combobox_change_cb), settings); empathy_account_widget_setup_widget (self, settings->combobox_keep_alive_mechanism, "keepalive-mechanism"); gtk_table_attach_defaults (GTK_TABLE (table_advanced), settings->combobox_keep_alive_mechanism, 1, 4, 7, 8); gtk_widget_show (settings->combobox_keep_alive_mechanism); } self->ui_details->widget = vbox_settings; }
EmpathyIrcNetworkChooser * empathy_account_widget_irc_build (EmpathyAccountWidget *self, const char *filename, GtkWidget **table_common_settings) { EmpathyAccountWidgetIrc *settings; EmpathyAccountSettings *ac_settings; GtkWidget *entry_password; const gchar *password; settings = g_slice_new0 (EmpathyAccountWidgetIrc); settings->self = self; self->ui_details->gui = empathy_builder_get_file (filename, "table_irc_settings", table_common_settings, "vbox_irc", &self->ui_details->widget, "table_irc_settings", &settings->vbox_settings, "entry_password", &entry_password, NULL); /* Add network chooser button */ g_object_get (settings->self, "settings", &ac_settings, NULL); settings->network_chooser = empathy_irc_network_chooser_new (ac_settings); g_signal_connect (settings->network_chooser, "changed", G_CALLBACK (network_changed_cb), settings); gtk_table_attach (GTK_TABLE (*table_common_settings), settings->network_chooser, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 0, 0); gtk_widget_show (settings->network_chooser); account_widget_irc_setup (settings); empathy_account_widget_handle_params (self, "entry_nick", "account", "entry_fullname", "fullname", "entry_password", "password", "entry_quit_message", "quit-message", NULL); empathy_builder_connect (self->ui_details->gui, settings, "table_irc_settings", "destroy", account_widget_irc_destroy_cb, NULL); self->ui_details->default_focus = g_strdup ("entry_nick"); g_object_unref (ac_settings); /* Automatically set password-prompt when needed */ password = empathy_account_settings_get_string (ac_settings, "password"); if (set_password_prompt_if_needed (ac_settings, password)) { /* Apply right now to save password-prompt */ empathy_account_settings_apply_async (ac_settings, NULL, NULL); } g_signal_connect (entry_password, "changed", G_CALLBACK (entry_password_changed_cb), settings); return EMPATHY_IRC_NETWORK_CHOOSER (settings->network_chooser); }