]> www.fi.muni.cz Git - evince.git/commitdiff
[toolbar-editor] Fix build with GSEAL enabled
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 31 May 2010 17:31:14 +0000 (19:31 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 31 May 2010 17:32:14 +0000 (19:32 +0200)
configure.ac
cut-n-paste/toolbar-editor/egg-editable-toolbar.c

index 8d8b4413916ee76474a4e0870d2edaec9ced77a6..8977b580d57ef16c2385812383536c9a471684e4 100644 (file)
@@ -122,7 +122,7 @@ AM_CONDITIONAL([PLATFORM_HILDON],[test "$with_platform" = "hildon"])
 AM_CONDITIONAL([PLATFORM_WIN32],[test "$with_platform" = "win32"])
 
 dnl Specify required versions of dependencies
-GTK_REQUIRED=2.21.0
+GTK_REQUIRED=2.21.1
 GLIB_REQUIRED=2.25.7
 KEYRING_REQUIRED=2.22.0
 AC_SUBST([GLIB_REQUIRED])
index 35a605dfb3492d116472382abb4e0bab08e724a0..44f032267ae45ac218dfac23dfb53aeba7f84910 100644 (file)
@@ -694,11 +694,13 @@ toolbar_drag_data_received_cb (GtkToolbar         *toolbar,
         {
           gint tpos = get_toolbar_position (etoolbar, GTK_WIDGET (toolbar));
           egg_toolbars_model_add_item (etoolbar->priv->model, tpos, ipos, name);
-          gtk_drag_finish (context, TRUE, context->action == GDK_ACTION_MOVE, time);
+          gtk_drag_finish (context, TRUE,
+                          gdk_drag_context_get_action (context) == GDK_ACTION_MOVE, time);
         }
       else
         {
-          gtk_drag_finish (context, FALSE, context->action == GDK_ACTION_MOVE, time);
+          gtk_drag_finish (context, FALSE,
+                          gdk_drag_context_get_action (context) == GDK_ACTION_MOVE, time);
         }
     }
 
@@ -757,7 +759,7 @@ toolbar_drag_motion_cb (GtkToolbar         *toolbar,
                                            etoolbar->priv->dnd_toolitem, ipos);
     }
 
-  gdk_drag_status (context, context->suggested_action, time);
+  gdk_drag_status (context, gdk_drag_context_get_suggested_action (context), time);
 
   return TRUE;
 }