[kazehakase-svn] [3541] * src/kz-windows.h: Use gtk_action_set_sensitive and

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Fri Jan 23 11:47:26 JST 2009


Revision: 3541
          http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3541
Author:   ikezoe
Date:     2009-01-23 11:47:26 +0900 (Fri, 23 Jan 2009)

Log Message:
-----------
	* src/kz-windows.h: Use gtk_action_set_sensitive and
	gtk_action_set_visible.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/src/kz-window.h

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2009-01-23 02:34:41 UTC (rev 3540)
+++ kazehakase/trunk/ChangeLog	2009-01-23 02:47:26 UTC (rev 3541)
@@ -2,6 +2,8 @@
 
 	* src/actions/kz-actions.c, src/actions/kz-actions-tab.c: Use
 	gtk_action_set_sensitive instead of g_object_set.
+	* src/kz-windows.h: Use gtk_action_set_sensitive and
+	gtk_action_set_visible.
 
 2009-01-21  Hiroyuki Ikezoe  <poinc****@ikezo*****>
 

Modified: kazehakase/trunk/src/kz-window.h
===================================================================
--- kazehakase/trunk/src/kz-window.h	2009-01-23 02:34:41 UTC (rev 3540)
+++ kazehakase/trunk/src/kz-window.h	2009-01-23 02:47:26 UTC (rev 3541)
@@ -153,7 +153,7 @@
 		GtkAction *action;					       \
 		action = gtk_action_group_get_action(kz->actions,	       \
 						     action_name);	       \
-		if (action) g_object_set(action, "sensitive", sensitive, NULL);\
+		if (action) gtk_action_set_sensitive(action, sensitive);       \
 	}								       \
 }
 
@@ -163,7 +163,7 @@
 		GtkAction *action;					       \
 		action = gtk_action_group_get_action(kz->actions, 	       \
 						     action_name);	       \
-		if (action) g_object_set(action, "visible", visible, NULL);    \
+		if (action) gtk_action_set_visible(action, visible);           \
 	}								       \
 }
 



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