Desensitize font button when Use custom font is not checked

master
Yevgen Muntyan 2006-11-09 22:58:40 -06:00
parent f169c283bf
commit 427d553167
1 changed files with 5 additions and 1 deletions

View File

@ -1486,12 +1486,16 @@ _moo_edit_print_options_dialog (GtkWidget *parent)
static GtkWidget * static GtkWidget *
moo_print_operation_create_custom_widget (G_GNUC_UNUSED GtkPrintOperation *operation) moo_print_operation_create_custom_widget (G_GNUC_UNUSED GtkPrintOperation *operation)
{ {
GtkWidget *page; GtkWidget *page, *font_button;
MooGladeXML *xml; MooGladeXML *xml;
xml = moo_glade_xml_new_from_buf (MOO_PRINT_GLADE_XML, -1, "page", GETTEXT_PACKAGE, NULL); xml = moo_glade_xml_new_from_buf (MOO_PRINT_GLADE_XML, -1, "page", GETTEXT_PACKAGE, NULL);
g_return_val_if_fail (xml != NULL, NULL); g_return_val_if_fail (xml != NULL, NULL);
font_button = moo_glade_xml_get_widget (xml, "font");
moo_bind_sensitive (moo_glade_xml_get_widget (xml, "use_custom_font"),
&font_button, 1, FALSE);
page = moo_glade_xml_get_widget (xml, "page"); page = moo_glade_xml_get_widget (xml, "page");
g_return_val_if_fail (page != NULL, NULL); g_return_val_if_fail (page != NULL, NULL);