GtkPrintUnixDialog: Hide unused tabs

Don't show tabs which are empty. This is related to
the recent GtkTable -> GtkGrid conversion. (#663479)
This commit is contained in:
Marek Kasik 2012-01-05 13:17:46 +01:00
parent 5f53045707
commit f1995f80e7

View File

@ -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
{