diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2006-12-24 11:30:22 +0000 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2006-12-24 11:30:22 +0000 |
commit | 842b3183067e9356c01d88ce5c5f9ac0f887de20 (patch) | |
tree | 71befae980683551a495c84e65d14a33189f0905 /gtk/gtkpagesetupunixdialog.c | |
parent | ff3bfe96eadb95a421e4acecc87ecee27a3ca24f (diff) | |
download | gtk+-842b3183067e9356c01d88ce5c5f9ac0f887de20.tar.gz |
Don't ignore reverse portrait option when is selected in page setup
2006-12-24 Carlos Garcia Campos <carlosgc@gnome.org>
* gtk/gtkpagesetupunixdialog.c: Don't ignore reverse portrait option
when is selected in page setup dialog. Fixes bug #365047.
Diffstat (limited to 'gtk/gtkpagesetupunixdialog.c')
-rw-r--r-- | gtk/gtkpagesetupunixdialog.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkpagesetupunixdialog.c b/gtk/gtkpagesetupunixdialog.c index 4f45e711a8..81c9af152c 100644 --- a/gtk/gtkpagesetupunixdialog.c +++ b/gtk/gtkpagesetupunixdialog.c @@ -78,6 +78,7 @@ struct GtkPageSetupUnixDialogPrivate GtkTooltips *tooltips; GtkWidget *portrait_radio; + GtkWidget *reverse_portrait_radio; GtkWidget *landscape_radio; GtkWidget *reverse_landscape_radio; @@ -1095,7 +1096,7 @@ populate_dialog (GtkPageSetupUnixDialog *ps_dialog) radio_button = create_radio_button (gtk_radio_button_get_group (GTK_RADIO_BUTTON (radio_button)), GTK_STOCK_ORIENTATION_REVERSE_PORTRAIT); - priv->reverse_landscape_radio = radio_button; + priv->reverse_portrait_radio = radio_button; gtk_table_attach (GTK_TABLE (table), radio_button, 2, 3, 3, 4, GTK_EXPAND|GTK_FILL, 0, 0, 0); @@ -1168,7 +1169,7 @@ get_orientation (GtkPageSetupUnixDialog *dialog) return GTK_PAGE_ORIENTATION_LANDSCAPE; if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->reverse_landscape_radio))) return GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE; - return GTK_PAGE_ORIENTATION_PORTRAIT; + return GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT; } static void @@ -1180,6 +1181,8 @@ set_orientation (GtkPageSetupUnixDialog *dialog, switch (orientation) { case GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT: + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->reverse_portrait_radio), TRUE); + break; case GTK_PAGE_ORIENTATION_PORTRAIT: gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->portrait_radio), TRUE); break; |