aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2010-06-13 03:44:24 +0800
committerXan Lopez <xan@gnome.org>2010-06-13 04:01:46 +0800
commit53e41b39402f4fe7e81b8167d549b4d6b2eb1519 (patch)
treee72ef3761c002d310df2ad3518ab62b389499fdc /lib
parent79e70c1d4046f227670233736f26ef7da15292b9 (diff)
downloadgsoc2013-epiphany-53e41b39402f4fe7e81b8167d549b4d6b2eb1519.tar
gsoc2013-epiphany-53e41b39402f4fe7e81b8167d549b4d6b2eb1519.tar.gz
gsoc2013-epiphany-53e41b39402f4fe7e81b8167d549b4d6b2eb1519.tar.bz2
gsoc2013-epiphany-53e41b39402f4fe7e81b8167d549b4d6b2eb1519.tar.lz
gsoc2013-epiphany-53e41b39402f4fe7e81b8167d549b4d6b2eb1519.tar.xz
gsoc2013-epiphany-53e41b39402f4fe7e81b8167d549b4d6b2eb1519.tar.zst
gsoc2013-epiphany-53e41b39402f4fe7e81b8167d549b4d6b2eb1519.zip
Use accessor functions when possible
Diffstat (limited to 'lib')
-rw-r--r--lib/egg/egg-editable-toolbar.c8
-rw-r--r--lib/widgets/ephy-node-view.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c
index 10906c349..adcab7f4a 100644
--- a/lib/egg/egg-editable-toolbar.c
+++ b/lib/egg/egg-editable-toolbar.c
@@ -698,11 +698,11 @@ 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_selected_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_selected_action (context) == GDK_ACTION_MOVE, time);
}
}
@@ -761,7 +761,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;
}
@@ -1814,7 +1814,7 @@ new_pixbuf_from_widget (GtkWidget *widget)
/* Create a pixmap */
visual = gtk_widget_get_visual (window);
- pixmap = gdk_pixmap_new (NULL, icon_width, icon_height, visual->depth);
+ pixmap = gdk_pixmap_new (NULL, icon_width, icon_height, gdk_visual_get_depth (visual));
gdk_drawable_set_colormap (GDK_DRAWABLE (pixmap), gtk_widget_get_colormap (window));
/* Draw the window */
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index 3a62a226b..1e7fd5c86 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -321,7 +321,7 @@ drag_motion_cb (GtkWidget *widget,
priority != EPHY_NODE_VIEW_SPECIAL_PRIORITY &&
ephy_node_get_is_drag_source (node))
{
- action = context->suggested_action;
+ action = gdk_drag_context_get_suggested_action (context);
}
}