forked from AuroraMiddleware/gtk
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:
parent
5f53045707
commit
f1995f80e7
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user