Mercurial > pidgin.yaz
comparison src/gtkprefs.c @ 6006:0aeb4fd0fc65
[gaim-migrate @ 6454]
A bit more pref clean up. Christian or Nathan: Could one of you take a
look at blist_pref_cb in blist.c and let me know the correct way to do
that? Or if you wanna fix that feel free :-)
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 03 Jul 2003 22:25:14 +0000 |
parents | 81869466b6a7 |
children | 3750fc0325ac |
comparison
equal
deleted
inserted
replaced
6005:81869466b6a7 | 6006:0aeb4fd0fc65 |
---|---|
183 return; | 183 return; |
184 | 184 |
185 gaim_prefs_set_bool(key, FALSE); | 185 gaim_prefs_set_bool(key, FALSE); |
186 gaim_prefs_set_bool(bool_key, TRUE); | 186 gaim_prefs_set_bool(bool_key, TRUE); |
187 } | 187 } |
188 | |
189 #if 0 | |
190 } else if (option == (int*)&blist_options) { | |
191 gaim_gtk_blist_update_toolbar(); | |
192 } else if (option == (int*)&im_options) { | |
193 if (clear == (OPT_IM_SIDE_TAB | OPT_IM_BR_TAB)) | |
194 gaim_gtkconv_update_tabs(); | |
195 else if (clear == (OPT_IM_BUTTON_TEXT | OPT_IM_BUTTON_XPM)) | |
196 gaim_gtkconv_update_im_button_style(); | |
197 } else if (option == (int*)&chat_options) { | |
198 if (clear == (OPT_CHAT_SIDE_TAB | OPT_CHAT_BR_TAB)) | |
199 gaim_gtkconv_update_tabs(); | |
200 else if (clear == (OPT_CHAT_BUTTON_TEXT | OPT_CHAT_BUTTON_XPM)) | |
201 gaim_gtkconv_update_chat_button_style(); | |
202 // } else if (option == (int*)&blist_options) { | |
203 // set_blist_tab(); | |
204 } else if (option == (int *)&conv_placement_option) { | |
205 gaim_conv_placement_set_active(conv_placement_option); | |
206 } | |
207 #endif | |
208 } | 188 } |
209 | 189 |
210 static GtkWidget * | 190 static GtkWidget * |
211 prefs_dropdown_from_list(GtkWidget *box, const gchar *title, GaimPrefType type, | 191 prefs_dropdown_from_list(GtkWidget *box, const gchar *title, GaimPrefType type, |
212 const char *key, GList *menuitems) | 192 const char *key, GList *menuitems) |
369 ui_info->iter = NULL; | 349 ui_info->iter = NULL; |
370 } | 350 } |
371 } | 351 } |
372 } | 352 } |
373 } | 353 } |
374 | |
375 static void proxy_print_option(GtkEntry *entry, int entrynum) | |
376 { | |
377 if (entrynum == PROXYHOST) | |
378 gaim_prefs_set_string("/core/proxy/host", gtk_entry_get_text(entry)); | |
379 else if (entrynum == PROXYPORT) | |
380 gaim_prefs_set_int("/core/proxy/port", atoi(gtk_entry_get_text(entry))); | |
381 else if (entrynum == PROXYUSER) | |
382 gaim_prefs_set_string("/core/proxy/username", gtk_entry_get_text(entry)); | |
383 else if (entrynum == PROXYPASS) | |
384 gaim_prefs_set_string("/core/proxy/password", gtk_entry_get_text(entry)); | |
385 | |
386 /* If the user specifies it, we want to save it. */ | |
387 gaim_global_proxy_set_from_prefs(TRUE); | |
388 } | |
389 | |
390 /* OK, Apply and Cancel */ | |
391 | 354 |
392 static void pref_nb_select(GtkTreeSelection *sel, GtkNotebook *nb) { | 355 static void pref_nb_select(GtkTreeSelection *sel, GtkNotebook *nb) { |
393 GtkTreeIter iter; | 356 GtkTreeIter iter; |
394 char text[128]; | 357 char text[128]; |
395 GValue val = { 0, }; | 358 GValue val = { 0, }; |
1105 const char *proxy = value; | 1068 const char *proxy = value; |
1106 | 1069 |
1107 gtk_widget_set_sensitive(frame, strcmp(proxy, "none")); | 1070 gtk_widget_set_sensitive(frame, strcmp(proxy, "none")); |
1108 } | 1071 } |
1109 | 1072 |
1073 static void proxy_print_option(GtkEntry *entry, int entrynum) | |
1074 { | |
1075 if (entrynum == PROXYHOST) | |
1076 gaim_prefs_set_string("/core/proxy/host", gtk_entry_get_text(entry)); | |
1077 else if (entrynum == PROXYPORT) | |
1078 gaim_prefs_set_int("/core/proxy/port", atoi(gtk_entry_get_text(entry))); | |
1079 else if (entrynum == PROXYUSER) | |
1080 gaim_prefs_set_string("/core/proxy/username", gtk_entry_get_text(entry)); | |
1081 else if (entrynum == PROXYPASS) | |
1082 gaim_prefs_set_string("/core/proxy/password", gtk_entry_get_text(entry)); | |
1083 | |
1084 /* If the user specifies it, we want to save it. */ | |
1085 gaim_global_proxy_set_from_prefs(TRUE); | |
1086 } | |
1087 | |
1110 GtkWidget *proxy_page() { | 1088 GtkWidget *proxy_page() { |
1111 GtkWidget *ret; | 1089 GtkWidget *ret; |
1112 GtkWidget *vbox; | 1090 GtkWidget *vbox; |
1113 GtkWidget *entry; | 1091 GtkWidget *entry; |
1114 GtkWidget *label; | 1092 GtkWidget *label; |