From f1995f80e7494f9319dc8e0895fefc92bb1d1a7a Mon Sep 17 00:00:00 2001 From: Marek Kasik Date: Thu, 5 Jan 2012 13:17:46 +0100 Subject: GtkPrintUnixDialog: Hide unused tabs Don't show tabs which are empty. This is related to the recent GtkTable -> GtkGrid conversion. (#663479) --- gtk/gtkprintunixdialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtkprintunixdialog.c') 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 { -- cgit v1.2.1