]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-navigation-action.c
Fix build with poppler 0.5.9.
[evince.git] / shell / ev-navigation-action.c
index c4f6191773e10d59ba2ac46cf3a335a1afbabc82..dd4e38e83bf1e0d3c23749d71c85e0006b1eee58 100644 (file)
@@ -61,7 +61,7 @@ ev_navigation_action_set_history (EvNavigationAction *action,
        action->priv->history = history;
 
        g_object_add_weak_pointer (G_OBJECT (action->priv->history),
-                                  (gpointer *) &action->priv->history);
+                                  (gpointer) &action->priv->history);
 }
 
 static void
@@ -166,7 +166,7 @@ connect_proxy (GtkAction *action, GtkWidget *proxy)
 {
        GtkWidget *menu;
 
-       if (EV_IS_NAVIGATION_ACTION (proxy)) {
+       if (GTK_IS_TOOL_ITEM (proxy)) {
                /* set dummy menu so the arrow gets sensitive */
                menu = gtk_menu_new ();
                ev_navigation_action_widget_set_menu (EV_NAVIGATION_ACTION_WIDGET (proxy), menu);
@@ -219,7 +219,7 @@ ev_navigation_action_finalize (GObject *object)
 
        if (action->priv->history) {
                g_object_add_weak_pointer (G_OBJECT (action->priv->history),
-                                          (gpointer *) &action->priv->history);
+                                          (gpointer) &action->priv->history);
        }
 
        G_OBJECT_CLASS (ev_navigation_action_parent_class)->finalize (object);