[Kazehakase-cvs] CVS update: kazehakase/src/bookmarks

Back to archive index

Hiroyuki Ikezoe ikezo****@users*****
Mon Jan 15 11:28:45 JST 2007


Index: kazehakase/src/bookmarks/kz-actions-bookmark.c
diff -u kazehakase/src/bookmarks/kz-actions-bookmark.c:1.34 kazehakase/src/bookmarks/kz-actions-bookmark.c:1.35
--- kazehakase/src/bookmarks/kz-actions-bookmark.c:1.34	Sat Feb 19 03:02:09 2005
+++ kazehakase/src/bookmarks/kz-actions-bookmark.c	Mon Jan 15 11:28:45 2007
@@ -17,7 +17,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- *  $Id: kz-actions-bookmark.c,v 1.34 2005/02/18 18:02:09 tyuyu Exp $
+ *  $Id: kz-actions-bookmark.c,v 1.35 2007/01/15 02:28:45 ikezoe Exp $
  */
 
 #include "kz-actions-bookmark.h"
@@ -352,10 +352,9 @@
 	g_return_if_fail(KZ_IS_BOOKMARK_EDITOR(editor));
 	g_return_if_fail(GTK_IS_WIDGET(editor->scrolledwin[0]));
 
-	if (gtk_toggle_action_get_active (action))
-		gtk_widget_show(editor->scrolledwin[0]);
-	else
-		gtk_widget_hide(editor->scrolledwin[0]);
+	g_object_set(editor->scrolledwin[0],
+		     "visible", gtk_toggle_action_get_active(action),
+		     NULL);
 }
 
 
@@ -366,10 +365,9 @@
 	g_return_if_fail(KZ_IS_BOOKMARK_EDITOR(editor));
 	g_return_if_fail(GTK_IS_WIDGET(editor->content_view));
 
-	if (gtk_toggle_action_get_active (action))
-		gtk_widget_show(editor->content_view);
-	else
-		gtk_widget_hide(editor->content_view);
+	g_object_set(editor->content_view,
+		     "visible", gtk_toggle_action_get_active(action),
+		     NULL);
 }
 
 


More information about the Kazehakase-cvs mailing list
Back to archive index