aboutsummaryrefslogtreecommitdiffstats
path: root/src/ppview-toolbar.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-04-19 18:31:36 +0800
committerChristian Persch <chpe@src.gnome.org>2005-04-19 18:31:36 +0800
commitaf383e7037101bcbe21e3da8f33159a66839a220 (patch)
tree174f85cf948874d10f4116ae303d8550c796f6e8 /src/ppview-toolbar.c
parent033f0ac34a64aebbfb42878d0243b08c631e8042 (diff)
downloadgsoc2013-epiphany-af383e7037101bcbe21e3da8f33159a66839a220.tar
gsoc2013-epiphany-af383e7037101bcbe21e3da8f33159a66839a220.tar.gz
gsoc2013-epiphany-af383e7037101bcbe21e3da8f33159a66839a220.tar.bz2
gsoc2013-epiphany-af383e7037101bcbe21e3da8f33159a66839a220.tar.lz
gsoc2013-epiphany-af383e7037101bcbe21e3da8f33159a66839a220.tar.xz
gsoc2013-epiphany-af383e7037101bcbe21e3da8f33159a66839a220.tar.zst
gsoc2013-epiphany-af383e7037101bcbe21e3da8f33159a66839a220.zip
Use gtk_action_set_[sensitive|visible] instead of g_object_set.
2005-04-19 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_update_menu): * src/ephy-encoding-menu.c: (update_encoding_menu_cb): * src/ephy-history-window.c: (ephy_history_window_update_menu): * src/ephy-toolbar.c: (ephy_toolbar_set_zoom): * src/ephy-window.c: (update_edit_actions_sensitivity), (enable_edit_actions_sensitivity), (sync_tab_load_status), (sync_tab_zoom), (show_embed_popup), (update_tabs_menu_sensitivity): * src/ppview-toolbar.c: (toolbar_update_sensitivity): Use gtk_action_set_[sensitive|visible] instead of g_object_set.
Diffstat (limited to 'src/ppview-toolbar.c')
-rwxr-xr-xsrc/ppview-toolbar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ppview-toolbar.c b/src/ppview-toolbar.c
index f2637252c..d2749094d 100755
--- a/src/ppview-toolbar.c
+++ b/src/ppview-toolbar.c
@@ -212,13 +212,13 @@ toolbar_update_sensitivity (PPViewToolbar *t)
c_page = t->priv->current_page;
action = gtk_action_group_get_action (action_group, "PPVGoBack");
- g_object_set (action, "sensitive", c_page > 1, NULL);
+ gtk_action_set_sensitive (action, c_page > 1);
action = gtk_action_group_get_action (action_group, "PPVGotoFirst");
- g_object_set (action, "sensitive", c_page > 1, NULL);
+ gtk_action_set_sensitive (action, c_page > 1);
action = gtk_action_group_get_action (action_group, "PPVGoForward");
- g_object_set (action, "sensitive", c_page < pages, NULL);
+ gtk_action_set_sensitive (action, c_page < pages);
action = gtk_action_group_get_action (action_group, "PPVGotoLast");
- g_object_set (action, "sensitive", c_page < pages, NULL);
+ gtk_action_set_sensitive (action, c_page < pages);
}
static void