Mercurial > pidgin
comparison src/gtkprefs.c @ 5560:b7319c094153
[gaim-migrate @ 5961]
It compiles now, but if you use it, you won't have any accounts.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 30 May 2003 03:25:39 +0000 |
parents | 7b36d02031a2 |
children | 9eb5b13fd412 |
comparison
equal
deleted
inserted
replaced
5559:f8f1586e8bc3 | 5560:b7319c094153 |
---|---|
57 #define PROXYPORT 1 | 57 #define PROXYPORT 1 |
58 #define PROXYTYPE 2 | 58 #define PROXYTYPE 2 |
59 #define PROXYUSER 3 | 59 #define PROXYUSER 3 |
60 #define PROXYPASS 4 | 60 #define PROXYPASS 4 |
61 | 61 |
62 /* XXX This needs to be made static after we solve the away.c mess. */ | |
63 GtkListStore *prefs_away_store = NULL; | |
64 GtkWidget *prefs_away_menu = NULL; | |
65 | |
62 static GtkWidget *tree_v = NULL; | 66 static GtkWidget *tree_v = NULL; |
63 static GtkWidget *prefs_away_menu = NULL; | 67 |
64 | |
65 static GtkListStore *prefs_away_store = NULL; | |
66 | 68 |
67 static int sound_row_sel = 0; | 69 static int sound_row_sel = 0; |
68 static char *last_sound_dir = NULL; | 70 static char *last_sound_dir = NULL; |
69 static GtkWidget *preflabel; | 71 static GtkWidget *preflabel; |
70 static GtkWidget *prefsnotebook; | 72 static GtkWidget *prefsnotebook; |
864 | 866 |
865 GtkWidget *list_page() { | 867 GtkWidget *list_page() { |
866 GtkWidget *ret; | 868 GtkWidget *ret; |
867 GtkWidget *vbox; | 869 GtkWidget *vbox; |
868 GtkWidget *button, *warn_checkbox, *idle_checkbox; | 870 GtkWidget *button, *warn_checkbox, *idle_checkbox; |
869 gboolean fnd = FALSE; | |
870 GList *l= NULL; | 871 GList *l= NULL; |
871 GSList *sl = gaim_gtk_blist_sort_methods; | 872 GSList *sl = gaim_gtk_blist_sort_methods; |
872 ret = gtk_vbox_new(FALSE, 18); | 873 ret = gtk_vbox_new(FALSE, 18); |
873 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); | 874 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); |
874 | 875 |
875 | 876 |
876 vbox = gaim_gtk_make_frame (ret, _("Buddy List Sorting")); | 877 vbox = gaim_gtk_make_frame (ret, _("Buddy List Sorting")); |
877 while (sl) { | 878 while (sl) { |
878 l = g_list_append(l, ((struct gaim_gtk_blist_sort_method*)sl->data)->name); | 879 char *name = ((struct gaim_gtk_blist_sort_method*)sl->data)->name; |
879 l = g_list_append(l, ((struct gaim_gtk_blist_sort_method*)sl->data)->name); | 880 |
880 if (!fnd && !gaim_utf8_strcasecmp(((struct gaim_gtk_blist_sort_method*)sl->data)->name, sort_method)) | 881 l = g_list_append(l, name); |
881 fnd = TRUE; | 882 l = g_list_append(l, name); |
882 sl = sl->next; | |
883 } | 883 } |
884 | 884 |
885 prefs_dropdown_from_list(vbox, _("Sorting:"), GAIM_PREF_STRING, | 885 prefs_dropdown_from_list(vbox, _("Sorting:"), GAIM_PREF_STRING, |
886 "/gaim/gtk/blist/sort_type", l); | 886 "/gaim/gtk/blist/sort_type", l); |
887 | 887 |
1196 "'%s' is not valid. Hyperlinks will " | 1196 "'%s' is not valid. Hyperlinks will " |
1197 "not work."), program); | 1197 "not work."), program); |
1198 gaim_notify_warning(NULL, NULL, error, NULL); | 1198 gaim_notify_warning(NULL, NULL, error, NULL); |
1199 } | 1199 } |
1200 | 1200 |
1201 g_strlcpy(web_command, program, sizeof(web_command)); | 1201 gaim_prefs_set_string("/gaim/gtk/browsers/command", program); |
1202 | 1202 |
1203 /* carry on normally */ | 1203 /* carry on normally */ |
1204 return FALSE; | 1204 return FALSE; |
1205 } | 1205 } |
1206 | 1206 |
1268 gtk_misc_set_alignment(GTK_MISC(label), 0, 0); | 1268 gtk_misc_set_alignment(GTK_MISC(label), 0, 0); |
1269 gtk_size_group_add_widget(sg, label); | 1269 gtk_size_group_add_widget(sg, label); |
1270 | 1270 |
1271 browser_entry = gtk_entry_new(); | 1271 browser_entry = gtk_entry_new(); |
1272 gtk_label_set_mnemonic_widget(GTK_LABEL(label), browser_entry); | 1272 gtk_label_set_mnemonic_widget(GTK_LABEL(label), browser_entry); |
1273 if (web_browser != BROWSER_MANUAL) | 1273 |
1274 if (strcmp(gaim_prefs_get_string("/gaim/gtk/browsers/browser"), "custom")) | |
1274 gtk_widget_set_sensitive(hbox, FALSE); | 1275 gtk_widget_set_sensitive(hbox, FALSE); |
1276 | |
1275 gtk_box_pack_start (GTK_BOX (hbox), browser_entry, FALSE, FALSE, 0); | 1277 gtk_box_pack_start (GTK_BOX (hbox), browser_entry, FALSE, FALSE, 0); |
1276 | 1278 |
1277 gtk_entry_set_text(GTK_ENTRY(browser_entry), web_command); | 1279 gtk_entry_set_text(GTK_ENTRY(browser_entry), |
1278 g_signal_connect(G_OBJECT(browser_entry), "focus-out-event", G_CALLBACK(manual_browser_set), NULL); | 1280 gaim_prefs_get_string("/gaim/gtk/browsers/command")); |
1281 g_signal_connect(G_OBJECT(browser_entry), "focus-out-event", | |
1282 G_CALLBACK(manual_browser_set), NULL); | |
1279 | 1283 |
1280 if (browsers != NULL) { | 1284 if (browsers != NULL) { |
1281 vbox = gaim_gtk_make_frame (ret, _("Browser Options")); | 1285 vbox = gaim_gtk_make_frame (ret, _("Browser Options")); |
1282 label = prefs_checkbox(_("Open new _window by default"), | 1286 label = prefs_checkbox(_("Open new _window by default"), |
1283 "/gaim/gtk/browsers/new_window", vbox); | 1287 "/gaim/gtk/browsers/new_window", vbox); |
2669 gaim_prefs_add_bool("/plugins/gtk/docklet/queue_messages", FALSE); | 2673 gaim_prefs_add_bool("/plugins/gtk/docklet/queue_messages", FALSE); |
2670 | 2674 |
2671 /* Browsers */ | 2675 /* Browsers */ |
2672 gaim_prefs_add_none("/gaim/gtk/browsers"); | 2676 gaim_prefs_add_none("/gaim/gtk/browsers"); |
2673 gaim_prefs_add_bool("/gaim/gtk/browsers/new_window", FALSE); | 2677 gaim_prefs_add_bool("/gaim/gtk/browsers/new_window", FALSE); |
2678 gaim_prefs_add_string("/gaim/gtk/browsers/command", ""); | |
2674 gaim_prefs_add_string("/gaim/gtk/browsers/browser", "mozilla"); | 2679 gaim_prefs_add_string("/gaim/gtk/browsers/browser", "mozilla"); |
2675 | 2680 |
2676 /* Buddy List */ | 2681 /* Buddy List */ |
2677 gaim_prefs_add_none("/gaim/gtk/blist"); | 2682 gaim_prefs_add_none("/gaim/gtk/blist"); |
2678 gaim_prefs_add_int("/gaim/gtk/blist/button_style", GAIM_BUTTON_TEXT_IMAGE); | 2683 gaim_prefs_add_int("/gaim/gtk/blist/button_style", GAIM_BUTTON_TEXT_IMAGE); |
2684 gaim_prefs_add_bool("/gaim/gtk/blist/show_group_count", TRUE); | 2689 gaim_prefs_add_bool("/gaim/gtk/blist/show_group_count", TRUE); |
2685 gaim_prefs_add_bool("/gaim/gtk/blist/show_idle_time", TRUE); | 2690 gaim_prefs_add_bool("/gaim/gtk/blist/show_idle_time", TRUE); |
2686 gaim_prefs_add_bool("/gaim/gtk/blist/show_offline_buddies", FALSE); | 2691 gaim_prefs_add_bool("/gaim/gtk/blist/show_offline_buddies", FALSE); |
2687 gaim_prefs_add_bool("/gaim/gtk/blist/show_warning_level", TRUE); | 2692 gaim_prefs_add_bool("/gaim/gtk/blist/show_warning_level", TRUE); |
2688 gaim_prefs_add_string("/gaim/gtk/blist/sort_type", ""); | 2693 gaim_prefs_add_string("/gaim/gtk/blist/sort_type", ""); |
2694 gaim_prefs_add_int("/gaim/gtk/blist/x", 0); | |
2695 gaim_prefs_add_int("/gaim/gtk/blist/y", 0); | |
2696 gaim_prefs_add_int("/gaim/gtk/blist/width", 0); | |
2697 gaim_prefs_add_int("/gaim/gtk/blist/height", 0); | |
2689 | 2698 |
2690 /* Conversations */ | 2699 /* Conversations */ |
2691 gaim_prefs_add_none("/gaim/gtk/conversations"); | 2700 gaim_prefs_add_none("/gaim/gtk/conversations"); |
2692 gaim_prefs_add_bool("/gaim/gtk/conversations/close_on_tabs", TRUE); | 2701 gaim_prefs_add_bool("/gaim/gtk/conversations/close_on_tabs", TRUE); |
2693 gaim_prefs_add_bool("/gaim/gtk/conversations/ctrl_enter_sends", FALSE); | 2702 gaim_prefs_add_bool("/gaim/gtk/conversations/ctrl_enter_sends", FALSE); |