diff options
author | Marek Kasik <mkasik@redhat.com> | 2012-01-05 13:17:46 +0100 |
---|---|---|
committer | Marek Kasik <mkasik@redhat.com> | 2012-01-05 13:17:46 +0100 |
commit | f1995f80e7494f9319dc8e0895fefc92bb1d1a7a (patch) | |
tree | bc277ad61ee7cf651f999a71d3c3a2feec569a06 /gtk/gtkprintunixdialog.c | |
parent | 5f530457076d01a8f8535884ba2167286ad92411 (diff) | |
download | gtk+-f1995f80e7494f9319dc8e0895fefc92bb1d1a7a.tar.gz |
GtkPrintUnixDialog: Hide unused tabs
Don't show tabs which are empty. This is related to
the recent GtkTable -> GtkGrid conversion. (#663479)
Diffstat (limited to 'gtk/gtkprintunixdialog.c')
-rw-r--r-- | gtk/gtkprintunixdialog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index 15fdaafc2a..44b0fdcb39 100644 --- a/gtk/gtkprintunixdialog.c +++ b/gtk/gtkprintunixdialog.c @@ -1347,7 +1347,7 @@ setup_page_table (GtkPrinterOptionSet *options, table); nrows = grid_rows (GTK_GRID (table)); - if (nrows == 1) + if (nrows == 0) gtk_widget_hide (page); else gtk_widget_show (page); @@ -1521,7 +1521,7 @@ update_dialog_from_settings (GtkPrintUnixDialog *dialog) table); nrows = grid_rows (GTK_GRID (table)); - if (nrows == 1) + if (nrows == 0) gtk_widget_destroy (table); else { |