[gnumeric] GUI: use gtk_widget_set_visible.



commit ca6081d54c06a938a85da406476c79cee70447e5
Author: Morten Welinder <terra gnome org>
Date:   Wed Jun 9 12:04:09 2010 -0400

    GUI: use gtk_widget_set_visible.

 ChangeLog     |    3 +++
 src/wbc-gtk.c |    5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a7dfa84..57d0e90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2010-06-09  Morten Welinder  <terra gnome org>
 
+	* src/wbc-gtk.c (wbcg_notebook_tabs_visibility): Use
+	gtk_widget_set_visible and simplify.
+
 	* src/dead-kittens.h: New file for kittens killed by gtk.
 
 2010-06-09 Andreas J. Guelzow <aguelzow pyrshep ca>
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index b1dd53d..c9a7a96 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -57,6 +57,7 @@
 #include "selection.h"
 #include "file-autoft.h"
 #include "ranges.h"
+#include "dead-kittens.h"
 #include "tools/analysis-auto-expression.h"
 
 #include <goffice/goffice.h>
@@ -1499,8 +1500,8 @@ wbcg_notebook_tabs_visibility (WorkbookView *wbv,
 			       G_GNUC_UNUSED GParamSpec *pspec,
 			       WBCGtk *wbcg)
 {
-	(wbv->show_notebook_tabs ? gtk_widget_show : gtk_widget_hide)
-		(GTK_WIDGET (wbcg->bnotebook));
+	gtk_widget_set_visible (GTK_WIDGET (wbcg->bnotebook),
+				wbv->show_notebook_tabs);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]