diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-05-24 18:21:12 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-05-24 18:21:12 +0000 |
commit | b86d879e227fa293b427201e2c2bb8201d391ce7 (patch) | |
tree | 604a6a423e37e9bab2e6dec8024426ab35b6b32e /gtk/gtkprintunixdialog.c | |
parent | 15eef255e3a3ea9b06c6d2e4e67a396b4ad92f2b (diff) | |
download | gtk+-b86d879e227fa293b427201e2c2bb8201d391ce7.tar.gz |
Make the range entry insensitive if another range option is selected.
2006-05-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintunixdialog.c (create_main_page): Make
the range entry insensitive if another range option
is selected. (#342783, Caolan McNamara)
Diffstat (limited to 'gtk/gtkprintunixdialog.c')
-rw-r--r-- | gtk/gtkprintunixdialog.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index 641dfeb7aa..5c625195f2 100644 --- a/gtk/gtkprintunixdialog.c +++ b/gtk/gtkprintunixdialog.c @@ -1376,6 +1376,14 @@ gtk_print_unix_dialog_style_set (GtkWidget *widget, } static void +update_range_sensitivity (GtkWidget *button, + GtkWidget *range) +{ + gtk_widget_set_sensitive (range, + gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button))); +} + +static void create_main_page (GtkPrintUnixDialog *dialog) { GtkPrintUnixDialogPrivate *priv = dialog->priv; @@ -1496,6 +1504,8 @@ create_main_page (GtkPrintUnixDialog *dialog) gtk_table_attach (GTK_TABLE (table), entry, 1, 2, 2, 3, GTK_FILL, 0, 0, 0); + g_signal_connect (radio, "toggled", G_CALLBACK (update_range_sensitivity), entry); + update_range_sensitivity (radio, entry); table = gtk_table_new (3, 2, FALSE); gtk_table_set_row_spacings (GTK_TABLE (table), 6); |