comparison src/gtkprefs.c @ 10850:fa06fda62868

[gaim-migrate @ 12522] GET OUTTA MY HOUSE!!! Thanks to Gary for showing me a list of non-namespaced stuff. I'm sure I missed some. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 19 Apr 2005 04:43:13 +0000
parents 56915e1b3ba3
children 310c5e6120fb
comparison
equal deleted inserted replaced
10849:c203cd637f95 10850:fa06fda62868
658 g_free(name2); 658 g_free(name2);
659 659
660 return ret; 660 return ret;
661 } 661 }
662 662
663 GtkWidget *theme_page() { 663 static GtkWidget *
664 theme_page()
665 {
664 GtkWidget *ret; 666 GtkWidget *ret;
665 GtkWidget *sw; 667 GtkWidget *sw;
666 GtkWidget *view; 668 GtkWidget *view;
667 GtkCellRenderer *rend; 669 GtkCellRenderer *rend;
668 GtkTreeViewColumn *col; 670 GtkTreeViewColumn *col;
802 gaim_prefs_set_string("/gaim/gtk/conversations/bgcolor", color); 804 gaim_prefs_set_string("/gaim/gtk/conversations/bgcolor", color);
803 g_free(color); 805 g_free(color);
804 } 806 }
805 } 807 }
806 808
807 GtkWidget *messages_page() { 809 static GtkWidget *
810 messages_page()
811 {
808 GtkWidget *ret; 812 GtkWidget *ret;
809 GtkWidget *vbox, *fontvbox; 813 GtkWidget *vbox, *fontvbox;
810 GtkWidget *imhtml; 814 GtkWidget *imhtml;
811 GtkWidget *toolbar; 815 GtkWidget *toolbar;
812 GtkWidget *frame; 816 GtkWidget *frame;
869 873
870 gtk_widget_show_all(ret); 874 gtk_widget_show_all(ret);
871 return ret; 875 return ret;
872 } 876 }
873 877
874 GtkWidget *list_page() { 878 static GtkWidget *
879 list_page()
880 {
875 GtkWidget *ret; 881 GtkWidget *ret;
876 GtkWidget *vbox; 882 GtkWidget *vbox;
877 GList *l= NULL; 883 GList *l= NULL;
878 GSList *sl; 884 GSList *sl;
879 ret = gtk_vbox_new(FALSE, 18); 885 ret = gtk_vbox_new(FALSE, 18);
913 gtk_widget_set_sensitive(GTK_WIDGET(data), TRUE); 919 gtk_widget_set_sensitive(GTK_WIDGET(data), TRUE);
914 else 920 else
915 gtk_widget_set_sensitive(GTK_WIDGET(data), FALSE); 921 gtk_widget_set_sensitive(GTK_WIDGET(data), FALSE);
916 } 922 }
917 923
918 GtkWidget *conv_page() { 924 static GtkWidget *
925 conv_page()
926 {
919 GtkWidget *ret; 927 GtkWidget *ret;
920 GtkWidget *vbox, *vbox2; 928 GtkWidget *vbox, *vbox2;
921 GtkWidget *label; 929 GtkWidget *label;
922 GtkSizeGroup *sg; 930 GtkSizeGroup *sg;
923 GList *names = NULL; 931 GList *names = NULL;
1008 gaim_prefs_set_string("/core/proxy/username", gtk_entry_get_text(entry)); 1016 gaim_prefs_set_string("/core/proxy/username", gtk_entry_get_text(entry));
1009 else if (entrynum == PROXYPASS) 1017 else if (entrynum == PROXYPASS)
1010 gaim_prefs_set_string("/core/proxy/password", gtk_entry_get_text(entry)); 1018 gaim_prefs_set_string("/core/proxy/password", gtk_entry_get_text(entry));
1011 } 1019 }
1012 1020
1013 GtkWidget *network_page() { 1021 static GtkWidget *
1022 network_page()
1023 {
1014 GtkWidget *ret; 1024 GtkWidget *ret;
1015 GtkWidget *vbox, *hbox, *entry; 1025 GtkWidget *vbox, *hbox, *entry;
1016 GtkWidget *table, *label, *auto_ip_checkbox, *ports_checkbox, *spin_button; 1026 GtkWidget *table, *label, *auto_ip_checkbox, *ports_checkbox, *spin_button;
1017 GtkSizeGroup *sg; 1027 GtkSizeGroup *sg;
1018 GaimProxyInfo *proxy_info; 1028 GaimProxyInfo *proxy_info;
1250 const char *browser = value; 1260 const char *browser = value;
1251 1261
1252 gtk_widget_set_sensitive(hbox, !strcmp(browser, "custom")); 1262 gtk_widget_set_sensitive(hbox, !strcmp(browser, "custom"));
1253 } 1263 }
1254 1264
1255 GtkWidget *browser_page() { 1265 static GtkWidget *
1266 browser_page()
1267 {
1256 GtkWidget *ret; 1268 GtkWidget *ret;
1257 GtkWidget *vbox; 1269 GtkWidget *vbox;
1258 GtkWidget *hbox; 1270 GtkWidget *hbox;
1259 GtkWidget *label; 1271 GtkWidget *label;
1260 GtkWidget *entry; 1272 GtkWidget *entry;
1319 gtk_widget_show_all(ret); 1331 gtk_widget_show_all(ret);
1320 return ret; 1332 return ret;
1321 } 1333 }
1322 #endif /*_WIN32*/ 1334 #endif /*_WIN32*/
1323 1335
1324 GtkWidget *logging_page() { 1336 static GtkWidget *
1337 logging_page()
1338 {
1325 GtkWidget *ret; 1339 GtkWidget *ret;
1326 GtkWidget *vbox; 1340 GtkWidget *vbox;
1327 GList *names; 1341 GList *names;
1328 GtkWidget *sys_box; 1342 GtkWidget *sys_box;
1329 GtkWidget *box; 1343 GtkWidget *box;
1524 if (sound_entry) 1538 if (sound_entry)
1525 gtk_entry_set_text(GTK_ENTRY(sound_entry), (file && *file != '\0') ? file : "(default)"); 1539 gtk_entry_set_text(GTK_ENTRY(sound_entry), (file && *file != '\0') ? file : "(default)");
1526 g_value_unset (&val); 1540 g_value_unset (&val);
1527 } 1541 }
1528 1542
1529 GtkWidget *sound_page() { 1543 static GtkWidget *
1544 sound_page()
1545 {
1530 GtkWidget *ret; 1546 GtkWidget *ret;
1531 GtkWidget *vbox, *sw, *button; 1547 GtkWidget *vbox, *sw, *button;
1532 GtkSizeGroup *sg; 1548 GtkSizeGroup *sg;
1533 GtkTreeIter iter; 1549 GtkTreeIter iter;
1534 GtkWidget *event_view; 1550 GtkWidget *event_view;
1736 else 1752 else
1737 gaim_prefs_set_string("/core/away/default_message", ""); 1753 gaim_prefs_set_string("/core/away/default_message", "");
1738 } 1754 }
1739 #endif 1755 #endif
1740 1756
1741 GtkWidget *away_page() { 1757 static GtkWidget *
1758 away_page()
1759 {
1742 GtkWidget *ret; 1760 GtkWidget *ret;
1743 GtkWidget *vbox; 1761 GtkWidget *vbox;
1744 GtkWidget *hbox; 1762 GtkWidget *hbox;
1745 GtkWidget *label; 1763 GtkWidget *label;
1746 GtkWidget *button; 1764 GtkWidget *button;