Mercurial > pidgin.yaz
comparison pidgin/gtkaccount.c @ 17262:3e611b1b379c
Use talk.google.com as the default server for Google Talk accounts
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 24 May 2007 19:05:56 +0000 |
parents | 9ca9f87b4b47 |
children | f9e93d404efc 8bc2b7ec45c1 3c4811489e30 |
comparison
equal
deleted
inserted
replaced
17261:9ca9f87b4b47 | 17262:3e611b1b379c |
---|---|
687 static void | 687 static void |
688 add_protocol_options(AccountPrefsDialog *dialog, GtkWidget *parent) | 688 add_protocol_options(AccountPrefsDialog *dialog, GtkWidget *parent) |
689 { | 689 { |
690 PurpleAccountOption *option; | 690 PurpleAccountOption *option; |
691 PurpleAccount *account; | 691 PurpleAccount *account; |
692 GtkWidget *frame, *vbox, *check, *entry, *combo; | 692 GtkWidget *frame, *vbox, *check, *entry, *combo, *menu, *item; |
693 const GList *list, *node; | 693 const GList *list, *node; |
694 gint i, idx, int_value; | 694 gint i, idx, int_value; |
695 GtkListStore *model; | 695 GtkListStore *model; |
696 GtkTreeIter iter; | 696 GtkTreeIter iter; |
697 GtkCellRenderer *renderer; | 697 GtkCellRenderer *renderer; |
698 PurpleKeyValuePair *kvp; | 698 PurpleKeyValuePair *kvp; |
699 GList *l; | 699 GList *l; |
700 char buf[1024]; | 700 char buf[1024]; |
701 char *title; | 701 char *title; |
702 const char *str_value; | 702 const char *str_value, *protocol; |
703 gboolean bool_value; | 703 gboolean bool_value; |
704 | 704 |
705 if (dialog->protocol_frame != NULL) { | 705 if (dialog->protocol_frame != NULL) { |
706 gtk_widget_destroy(dialog->protocol_frame); | 706 gtk_widget_destroy(dialog->protocol_frame); |
707 dialog->protocol_frame = NULL; | 707 dialog->protocol_frame = NULL; |
820 gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); | 820 gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); |
821 if (gtk_entry_get_invisible_char(GTK_ENTRY(entry)) == '*') | 821 if (gtk_entry_get_invisible_char(GTK_ENTRY(entry)) == '*') |
822 gtk_entry_set_invisible_char(GTK_ENTRY(entry), PIDGIN_INVISIBLE_CHAR); | 822 gtk_entry_set_invisible_char(GTK_ENTRY(entry), PIDGIN_INVISIBLE_CHAR); |
823 } | 823 } |
824 | 824 |
825 /* Google Talk default domain hackery! */ | |
826 menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(dialog->protocol_menu)); | |
827 item = gtk_menu_get_active(GTK_MENU(menu)); | |
828 protocol = g_object_get_data(G_OBJECT(item), "protocol"); | |
829 if (str_value == NULL && !strcmp(protocol, "prpl-fake") && | |
830 !strcmp(_("Connect server"), purple_account_option_get_text(option))) | |
831 str_value = "talk.google.com"; | |
832 | |
825 if (str_value != NULL) | 833 if (str_value != NULL) |
826 gtk_entry_set_text(GTK_ENTRY(entry), str_value); | 834 gtk_entry_set_text(GTK_ENTRY(entry), str_value); |
827 | 835 |
828 title = g_strdup_printf("%s:", | 836 title = g_strdup_printf("%s:", |
829 purple_account_option_get_text(option)); | 837 purple_account_option_get_text(option)); |