Commit d6691717 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

removed the accessors that require gtk+ 2.21 or greater

parent df10d218
......@@ -45,7 +45,7 @@ GNOME_CXX_WARNINGS
GTHUMB_EXTENSION_RULES
GLIB_REQUIRED=2.16.0
GTK_REQUIRED=2.21.0
GTK_REQUIRED=2.20.0
GCONF_REQUIRED=2.6.0
EXIV2_REQUIRED=0.18
CLUTTER_REQUIRED=1.0.0
......
......@@ -258,11 +258,19 @@ gth_file_list_drag_data_received (GtkWidget *file_view,
g_signal_stop_emission_by_name (file_view, "drag-data-received");
/*
if ((gdk_drag_context_get_suggested_action (context) == GDK_ACTION_COPY)
|| (gdk_drag_context_get_suggested_action (context) == GDK_ACTION_MOVE))
{
success = TRUE;
}
*/
if ((context->suggested_action == GDK_ACTION_COPY)
|| (context->suggested_action == GDK_ACTION_MOVE))
{
success = TRUE;
}
gtk_drag_finish (context, success, FALSE, time);
......@@ -288,7 +296,8 @@ gth_file_list_drag_data_received (GtkWidget *file_view,
gboolean move;
file_source = gth_browser_get_location_source (browser);
move = gdk_drag_context_get_suggested_action (context) == GDK_ACTION_MOVE;
/*move = gdk_drag_context_get_suggested_action (context) == GDK_ACTION_MOVE;*/
move = context->suggested_action == GDK_ACTION_MOVE;
if (move && ! gth_file_source_can_cut (file_source)) {
GtkWidget *dialog;
int response;
......
......@@ -2397,7 +2397,8 @@ folder_tree_drag_data_received (GtkWidget *tree_view,
char **uris;
GList *file_list;
suggested_action = gdk_drag_context_get_suggested_action (context);
/*suggested_action = gdk_drag_context_get_suggested_action (context);*/
suggested_action = context->suggested_action;
if ((suggested_action == GDK_ACTION_COPY) || (suggested_action == GDK_ACTION_MOVE))
success = TRUE;
......
......@@ -498,7 +498,9 @@ menu_position_func (GtkMenu *menu,
*y -= menu_req.height;
}
else {
gdk_window_get_origin (gtk_button_get_event_window (GTK_BUTTON (widget)), x, y);
/*gdk_window_get_origin (gtk_button_get_event_window (GTK_BUTTON (widget)), x, y);*/
gdk_window_get_origin (GTK_BUTTON (widget)->event_window, x, y);
gtk_widget_size_request (widget, &req);
if (direction == GTK_TEXT_DIR_LTR)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment