svnno****@sourc*****
svnno****@sourc*****
Fri Jan 23 11:34:41 JST 2009
Revision: 3540 http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3540 Author: ikezoe Date: 2009-01-23 11:34:41 +0900 (Fri, 23 Jan 2009) Log Message: ----------- 2009-01-23 Hiroyuki Ikezoe <poinc****@ikezo*****> * src/actions/kz-actions.c, src/actions/kz-actions-tab.c: Use gtk_action_set_sensitive instead of g_object_set. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/src/actions/kz-actions-tab.c kazehakase/trunk/src/actions/kz-actions.c Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2009-01-23 02:26:04 UTC (rev 3539) +++ kazehakase/trunk/ChangeLog 2009-01-23 02:34:41 UTC (rev 3540) @@ -1,3 +1,8 @@ +2009-01-23 Hiroyuki Ikezoe <poinc****@ikezo*****> + + * src/actions/kz-actions.c, src/actions/kz-actions-tab.c: Use + gtk_action_set_sensitive instead of g_object_set. + 2009-01-21 Hiroyuki Ikezoe <poinc****@ikezo*****> * src/kz-tab-label.c: Remove redundant gtk_icon_size_lookup. Modified: kazehakase/trunk/src/actions/kz-actions-tab.c =================================================================== --- kazehakase/trunk/src/actions/kz-actions-tab.c 2009-01-23 02:26:04 UTC (rev 3539) +++ kazehakase/trunk/src/actions/kz-actions-tab.c 2009-01-23 02:34:41 UTC (rev 3540) @@ -461,9 +461,7 @@ num = kz_notebook_get_n_pages(KZ_NOTEBOOK(kztab->kz->notebook)); action = gtk_action_group_get_action(kz->tabpop_actions, "TabStop"); - g_object_set(action, "sensitive", - kz_embed_is_loading(kztab->kzembed), - NULL); + gtk_action_set_sensitive(action, kz_embed_is_loading(kztab->kzembed)); action = gtk_action_group_get_action(kz->tabpop_actions, "TabAddFeedBookmark"); @@ -472,19 +470,19 @@ has_feed = TRUE; else has_feed = FALSE; - g_object_set(action, "sensitive", has_feed, NULL); + gtk_action_set_sensitive(action, has_feed); action = gtk_action_group_get_action(kz->tabpop_actions, "TabCloseAllBackward"); - g_object_set(action, "sensitive", !(pos == 0), NULL); + gtk_action_set_sensitive(action, !(pos == 0)); action = gtk_action_group_get_action(kz->tabpop_actions, "TabCloseAllForward"); - g_object_set(action, "sensitive", !(pos == num -1), NULL); + gtk_action_set_sensitive(action, !(pos == num -1)); action = gtk_action_group_get_action(kz->tabpop_actions, "TabCloseAllInactiveTabs"); - g_object_set(action, "sensitive", num > 1, NULL); + gtk_action_set_sensitive(action, num > 1); action = gtk_action_group_get_action(kz->tabpop_actions, "TabToggleLock"); @@ -508,7 +506,7 @@ action = gtk_action_group_get_action(kz->tabpop_actions, "TabClose"); - g_object_set(action, "sensitive", !lock, NULL); + gtk_action_set_sensitive(action, !lock); } Modified: kazehakase/trunk/src/actions/kz-actions.c =================================================================== --- kazehakase/trunk/src/actions/kz-actions.c 2009-01-23 02:26:04 UTC (rev 3539) +++ kazehakase/trunk/src/actions/kz-actions.c 2009-01-23 02:34:41 UTC (rev 3540) @@ -1963,33 +1963,32 @@ action = gtk_action_group_get_action(kz->actions, "OpenBookmarkInNewTab"); - g_object_set(action, "sensitive", has_link, NULL); + gtk_action_set_sensitive(action, has_link); action = gtk_action_group_get_action(kz->actions, "OpenAllBookmarks"); - g_object_set(action, "sensitive", is_folder && has_children, NULL); + gtk_action_set_sensitive(action, is_folder && has_children); action = gtk_action_group_get_action(kz->actions, "AddBookmark"); - g_object_set(action, "sensitive", ((is_file && children_is_editable) || - (!is_file && is_editable)), NULL); + gtk_action_set_sensitive(action, ((is_file && children_is_editable) || + (!is_file && is_editable))); action = gtk_action_group_get_action(kz->actions, "AddFeedBookmark"); - g_object_set(action, "sensitive", has_feed, NULL); + gtk_action_set_sensitive(action, has_feed); action = gtk_action_group_get_action(kz->actions, "RemoveBookmark"); - g_object_set(action, "sensitive", is_editable, NULL); + gtk_action_set_sensitive(action, is_editable); action = gtk_action_group_get_action(kz->actions, "EditBookmarks"); - g_object_set(action, "sensitive", (is_editable || children_is_editable) - , NULL); + gtk_action_set_sensitive(action, (is_editable || children_is_editable)); action = gtk_action_group_get_action(kz->actions, "UpdateBookmarkFolder"); - g_object_set(action, "sensitive", is_file, NULL); + gtk_action_set_sensitive(action, is_file); }