action->priv->history = history;
g_object_add_weak_pointer (G_OBJECT (action->priv->history),
- (gpointer *) &action->priv->history);
+ (gpointer) &action->priv->history);
}
static void
{
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);
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);