[gtk+] GtkPrintUnixDialog: Hide unused tabs
- From: Marek KaÅÃk <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkPrintUnixDialog: Hide unused tabs
- Date: Thu, 5 Jan 2012 12:18:17 +0000 (UTC)
commit f1995f80e7494f9319dc8e0895fefc92bb1d1a7a
Author: Marek Kasik <mkasik redhat com>
Date: Thu Jan 5 13:17:46 2012 +0100
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 15fdaaf..44b0fdc 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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]