X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=inline;f=shell%2Fev-navigation-action.c;h=6a5e3a522ddce0623b10baaf7123ad21539566d9;hb=1ae3aefb3948c59e79989a28797678dd985cd36a;hp=3aa1bea921840a63377b805c09e3ea07f5d2c1d4;hpb=122c227b07387a942e4379eef8132fe6b6e92e80;p=evince.git diff --git a/shell/ev-navigation-action.c b/shell/ev-navigation-action.c index 3aa1bea9..6a5e3a52 100644 --- a/shell/ev-navigation-action.c +++ b/shell/ev-navigation-action.c @@ -60,9 +60,8 @@ ev_navigation_action_history_changed (EvHistory *history, { EvNavigationAction *action = EV_NAVIGATION_ACTION (data); - gtk_action_set_sensitive (action, ev_history_get_n_links (history) > 0); - - return; + gtk_action_set_sensitive (GTK_ACTION (action), + ev_history_get_n_links (history) > 0); } void @@ -75,7 +74,7 @@ ev_navigation_action_set_history (EvNavigationAction *action, (gpointer) &action->priv->history); g_signal_connect_object (history, "changed", - ev_navigation_action_history_changed, + G_CALLBACK (ev_navigation_action_history_changed), action, 0); }