| 22139:f0f4a10114ea | 22140:40e08549fb24 |
|---|---|
| 351 gtk_tree_row_reference_free(previous_smiley_row); | 351 gtk_tree_row_reference_free(previous_smiley_row); |
| 352 previous_smiley_row = gtk_tree_row_reference_new(model, path); | 352 previous_smiley_row = gtk_tree_row_reference_new(model, path); |
| 353 gtk_tree_path_free(path); | 353 gtk_tree_path_free(path); |
| 354 } | 354 } |
| 355 | 355 |
| 356 static GtkTreeRowReference *theme_refresh_theme_list() | 356 static GtkTreeRowReference *theme_refresh_theme_list(void) |
| 357 { | 357 { |
| 358 GdkPixbuf *pixbuf; | 358 GdkPixbuf *pixbuf; |
| 359 GSList *themes; | 359 GSList *themes; |
| 360 GtkTreeIter iter; | 360 GtkTreeIter iter; |
| 361 GtkTreeRowReference *row_ref = NULL; | 361 GtkTreeRowReference *row_ref = NULL; |
| 615 g_free(theme_file); | 615 g_free(theme_file); |
| 616 g_free(theme_name); | 616 g_free(theme_name); |
| 617 } | 617 } |
| 618 | 618 |
| 619 static GtkWidget * | 619 static GtkWidget * |
| 620 theme_page() | 620 theme_page(void) |
| 621 { | 621 { |
| 622 GtkWidget *add_button, *remove_button; | 622 GtkWidget *add_button, *remove_button; |
| 623 GtkWidget *hbox_buttons; | 623 GtkWidget *hbox_buttons; |
| 624 GtkWidget *alignment; | 624 GtkWidget *alignment; |
| 625 GtkWidget *ret; | 625 GtkWidget *ret; |
| 816 else | 816 else |
| 817 gtk_widget_set_sensitive(GTK_WIDGET(data), FALSE); | 817 gtk_widget_set_sensitive(GTK_WIDGET(data), FALSE); |
| 818 } | 818 } |
| 819 | 819 |
| 820 static GtkWidget * | 820 static GtkWidget * |
| 821 interface_page() | 821 interface_page(void) |
| 822 { | 822 { |
| 823 GtkWidget *ret; | 823 GtkWidget *ret; |
| 824 GtkWidget *vbox; | 824 GtkWidget *vbox; |
| 825 GtkWidget *vbox2; | 825 GtkWidget *vbox2; |
| 826 GtkWidget *label; | 826 GtkWidget *label; |
| 909 gtk_font_button_get_font_name(font_button)); | 909 gtk_font_button_get_font_name(font_button)); |
| 910 } | 910 } |
| 911 #endif | 911 #endif |
| 912 | 912 |
| 913 static GtkWidget * | 913 static GtkWidget * |
| 914 conv_page() | 914 conv_page(void) |
| 915 { | 915 { |
| 916 GtkWidget *ret; | 916 GtkWidget *ret; |
| 917 GtkWidget *vbox; | 917 GtkWidget *vbox; |
| 918 GtkWidget *toolbar; | 918 GtkWidget *toolbar; |
| 919 GtkWidget *iconpref1; | 919 GtkWidget *iconpref1; |
| 1071 purple_notify_error(NULL, NULL, _("Cannot start browser configuration program."), err->message); | 1071 purple_notify_error(NULL, NULL, _("Cannot start browser configuration program."), err->message); |
| 1072 g_error_free(err); | 1072 g_error_free(err); |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 static GtkWidget * | 1075 static GtkWidget * |
| 1076 network_page() | 1076 network_page(void) |
| 1077 { | 1077 { |
| 1078 GtkWidget *ret; | 1078 GtkWidget *ret; |
| 1079 GtkWidget *vbox, *hbox, *entry; | 1079 GtkWidget *vbox, *hbox, *entry; |
| 1080 GtkWidget *table, *label, *auto_ip_checkbox, *ports_checkbox, *spin_button; | 1080 GtkWidget *table, *label, *auto_ip_checkbox, *ports_checkbox, *spin_button; |
| 1081 GtkWidget *proxy_warning = NULL, *browser_warning = NULL; | 1081 GtkWidget *proxy_warning = NULL, *browser_warning = NULL; |
| 1345 | 1345 |
| 1346 /* carry on normally */ | 1346 /* carry on normally */ |
| 1347 return FALSE; | 1347 return FALSE; |
| 1348 } | 1348 } |
| 1349 | 1349 |
| 1350 static GList *get_available_browsers() | 1350 static GList *get_available_browsers(void) |
| 1351 { | 1351 { |
| 1352 struct browser { | 1352 struct browser { |
| 1353 char *name; | 1353 char *name; |
| 1354 char *command; | 1354 char *command; |
| 1355 }; | 1355 }; |
| 1411 | 1411 |
| 1412 gtk_widget_set_sensitive(hbox, !strcmp(browser, "custom")); | 1412 gtk_widget_set_sensitive(hbox, !strcmp(browser, "custom")); |
| 1413 } | 1413 } |
| 1414 | 1414 |
| 1415 static GtkWidget * | 1415 static GtkWidget * |
| 1416 browser_page() | 1416 browser_page(void) |
| 1417 { | 1417 { |
| 1418 GtkWidget *ret; | 1418 GtkWidget *ret; |
| 1419 GtkWidget *vbox; | 1419 GtkWidget *vbox; |
| 1420 GtkWidget *hbox; | 1420 GtkWidget *hbox; |
| 1421 GtkWidget *label; | 1421 GtkWidget *label; |
| 1472 return ret; | 1472 return ret; |
| 1473 } | 1473 } |
| 1474 #endif /*_WIN32*/ | 1474 #endif /*_WIN32*/ |
| 1475 | 1475 |
| 1476 static GtkWidget * | 1476 static GtkWidget * |
| 1477 logging_page() | 1477 logging_page(void) |
| 1478 { | 1478 { |
| 1479 GtkWidget *ret; | 1479 GtkWidget *ret; |
| 1480 GtkWidget *vbox; | 1480 GtkWidget *vbox; |
| 1481 GList *names; | 1481 GList *names; |
| 1482 | 1482 |
| 1700 gtk_entry_set_text(GTK_ENTRY(sound_entry), (file && *file != '\0') ? file : _("(default)")); | 1700 gtk_entry_set_text(GTK_ENTRY(sound_entry), (file && *file != '\0') ? file : _("(default)")); |
| 1701 g_value_unset (&val); | 1701 g_value_unset (&val); |
| 1702 } | 1702 } |
| 1703 | 1703 |
| 1704 static GtkWidget * | 1704 static GtkWidget * |
| 1705 sound_page() | 1705 sound_page(void) |
| 1706 { | 1706 { |
| 1707 GtkWidget *ret; | 1707 GtkWidget *ret; |
| 1708 GtkWidget *vbox, *sw, *button; | 1708 GtkWidget *vbox, *sw, *button; |
| 1709 GtkSizeGroup *sg; | 1709 GtkSizeGroup *sg; |
| 1710 GtkTreeIter iter; | 1710 GtkTreeIter iter; |
| 1907 { | 1907 { |
| 1908 purple_prefs_set_int("/purple/savedstatus/startup", purple_savedstatus_get_creation_time(status)); | 1908 purple_prefs_set_int("/purple/savedstatus/startup", purple_savedstatus_get_creation_time(status)); |
| 1909 } | 1909 } |
| 1910 | 1910 |
| 1911 static GtkWidget * | 1911 static GtkWidget * |
| 1912 away_page() | 1912 away_page(void) |
| 1913 { | 1913 { |
| 1914 GtkWidget *ret; | 1914 GtkWidget *ret; |
| 1915 GtkWidget *vbox; | 1915 GtkWidget *vbox; |
| 1916 GtkWidget *dd; | 1916 GtkWidget *dd; |
| 1917 GtkWidget *label; | 1917 GtkWidget *label; |
| 2013 gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text)); | 2013 gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text)); |
| 2014 return gtk_notebook_page_num(GTK_NOTEBOOK(prefsnotebook), page); | 2014 return gtk_notebook_page_num(GTK_NOTEBOOK(prefsnotebook), page); |
| 2015 #endif | 2015 #endif |
| 2016 } | 2016 } |
| 2017 | 2017 |
| 2018 static void prefs_notebook_init() { | 2018 static void prefs_notebook_init(void) { |
| 2019 prefs_notebook_add_page(_("Interface"), interface_page(), notebook_page++); | 2019 prefs_notebook_add_page(_("Interface"), interface_page(), notebook_page++); |
| 2020 prefs_notebook_add_page(_("Conversations"), conv_page(), notebook_page++); | 2020 prefs_notebook_add_page(_("Conversations"), conv_page(), notebook_page++); |
| 2021 prefs_notebook_add_page(_("Smiley Themes"), theme_page(), notebook_page++); | 2021 prefs_notebook_add_page(_("Smiley Themes"), theme_page(), notebook_page++); |
| 2022 prefs_notebook_add_page(_("Sounds"), sound_page(), notebook_page++); | 2022 prefs_notebook_add_page(_("Sounds"), sound_page(), notebook_page++); |
| 2023 prefs_notebook_add_page(_("Network"), network_page(), notebook_page++); | 2023 prefs_notebook_add_page(_("Network"), network_page(), notebook_page++); |