Mercurial > pidgin.yaz
comparison pidgin/gtkprefs.c @ 27963:85fa979b08c2
propagate from branch 'im.pidgin.pidgin' (head 921a6693312cc38dd6dbc93e91d6bf5c60938634)
to branch 'im.pidgin.pidgin.yaz' (head 1f0dc57711925c17aef0a129bec2d272c21236ba)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 07 Jul 2009 06:09:35 +0000 |
parents | f058edca3d66 5b07c7253ba4 |
children | 5ac0a83f0b21 |
comparison
equal
deleted
inserted
replaced
27962:3663c7e208ef | 27963:85fa979b08c2 |
---|---|
1455 _("Never"), "never", | 1455 _("Never"), "never", |
1456 NULL); | 1456 NULL); |
1457 gtk_size_group_add_widget(sg, label); | 1457 gtk_size_group_add_widget(sg, label); |
1458 gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); | 1458 gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); |
1459 | 1459 |
1460 vbox = pidgin_make_frame(ret, _("Conversation Window Hiding")); | 1460 vbox = pidgin_make_frame(ret, _("Conversation Window")); |
1461 label = pidgin_prefs_dropdown(vbox, _("_Hide new IM conversations:"), | 1461 label = pidgin_prefs_dropdown(vbox, _("_Hide new IM conversations:"), |
1462 PURPLE_PREF_STRING, PIDGIN_PREFS_ROOT "/conversations/im/hide_new", | 1462 PURPLE_PREF_STRING, PIDGIN_PREFS_ROOT "/conversations/im/hide_new", |
1463 _("Never"), "never", | 1463 _("Never"), "never", |
1464 _("When away"), "away", | 1464 _("When away"), "away", |
1465 _("Always"), "always", | 1465 _("Always"), "always", |
1466 NULL); | 1466 NULL); |
1467 gtk_size_group_add_widget(sg, label); | 1467 gtk_size_group_add_widget(sg, label); |
1468 gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); | 1468 gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); |
1469 | 1469 |
1470 #ifdef _WIN32 | |
1471 pidgin_prefs_checkbox(_("Minimi_ze new conversation windows"), PIDGIN_PREFS_ROOT "/win32/minimize_new_convs", vbox); | |
1472 #endif | |
1470 | 1473 |
1471 /* All the tab options! */ | 1474 /* All the tab options! */ |
1472 vbox = pidgin_make_frame(ret, _("Tabs")); | 1475 vbox = pidgin_make_frame(ret, _("Tabs")); |
1473 | 1476 |
1474 pidgin_prefs_checkbox(_("Show IMs and chats in _tabbed windows"), | 1477 pidgin_prefs_checkbox(_("Show IMs and chats in _tabbed windows"), |
1576 | 1579 |
1577 pidgin_prefs_checkbox(_("Use smooth-scrolling"), PIDGIN_PREFS_ROOT "/conversations/use_smooth_scrolling", vbox); | 1580 pidgin_prefs_checkbox(_("Use smooth-scrolling"), PIDGIN_PREFS_ROOT "/conversations/use_smooth_scrolling", vbox); |
1578 pidgin_prefs_checkbox(_("Use msn messenger style"), "/purple/conversations/msnstyle", vbox);//yaz | 1581 pidgin_prefs_checkbox(_("Use msn messenger style"), "/purple/conversations/msnstyle", vbox);//yaz |
1579 #ifdef _WIN32 | 1582 #ifdef _WIN32 |
1580 pidgin_prefs_checkbox(_("F_lash window when IMs are received"), PIDGIN_PREFS_ROOT "/win32/blink_im", vbox); | 1583 pidgin_prefs_checkbox(_("F_lash window when IMs are received"), PIDGIN_PREFS_ROOT "/win32/blink_im", vbox); |
1581 | |
1582 pidgin_prefs_checkbox(_("Minimi_ze new conversation windows"), PIDGIN_PREFS_ROOT "/win32/minimize_new_convs", vbox); | |
1583 #endif | 1584 #endif |
1584 | 1585 |
1585 pidgin_prefs_labeled_spin_button(vbox, | 1586 pidgin_prefs_labeled_spin_button(vbox, |
1586 _("Minimum input area height in lines:"), | 1587 _("Minimum input area height in lines:"), |
1587 PIDGIN_PREFS_ROOT "/conversations/minimum_entry_lines", | 1588 PIDGIN_PREFS_ROOT "/conversations/minimum_entry_lines", |
1588 1, 8, NULL); | 1589 1, 8, NULL); |
1589 | |
1590 | 1590 |
1591 #if GTK_CHECK_VERSION(2,4,0) | 1591 #if GTK_CHECK_VERSION(2,4,0) |
1592 vbox = pidgin_make_frame(ret, _("Font")); | 1592 vbox = pidgin_make_frame(ret, _("Font")); |
1593 if (purple_running_gnome()) | 1593 if (purple_running_gnome()) |
1594 fontpref = pidgin_prefs_checkbox(_("Use document font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox); | 1594 fontpref = pidgin_prefs_checkbox(_("Use document font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox); |
1595 else | 1595 else |
1596 fontpref = pidgin_prefs_checkbox(_("Use font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox); | 1596 fontpref = pidgin_prefs_checkbox(_("Use font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox); |
1597 | 1597 |
1598 font_name = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/custom_font"); | 1598 font_name = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/custom_font"); |
1599 font_button = gtk_font_button_new_with_font(font_name ? font_name : NULL); | 1599 if ((font_name == NULL) || (*font_name == '\0')) { |
1600 font_button = gtk_font_button_new(); | |
1601 } else { | |
1602 font_button = gtk_font_button_new_with_font(font_name); | |
1603 } | |
1600 | 1604 |
1601 gtk_font_button_set_show_style(GTK_FONT_BUTTON(font_button), TRUE); | 1605 gtk_font_button_set_show_style(GTK_FONT_BUTTON(font_button), TRUE); |
1602 hbox = pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("Conversation _font:"), NULL, font_button, FALSE, NULL); | 1606 hbox = pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("Conversation _font:"), NULL, font_button, FALSE, NULL); |
1603 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/use_theme_font")) | 1607 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/use_theme_font")) |
1604 gtk_widget_set_sensitive(hbox, FALSE); | 1608 gtk_widget_set_sensitive(hbox, FALSE); |
2778 | 2782 |
2779 return ret; | 2783 return ret; |
2780 } | 2784 } |
2781 | 2785 |
2782 static int | 2786 static int |
2783 prefs_notebook_add_page(const char *text, | 2787 prefs_notebook_add_page(const char *text, GtkWidget *page, int ind) |
2784 GtkWidget *page, | |
2785 int ind) | |
2786 { | 2788 { |
2787 #if GTK_CHECK_VERSION(2,4,0) | 2789 #if GTK_CHECK_VERSION(2,4,0) |
2788 return gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text)); | 2790 return gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text)); |
2789 #else | 2791 #else |
2790 gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text)); | 2792 gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text)); |