[Goodies-commits] r3681 - ristretto/trunk/src
Stephan Arts
stephan at xfce.org
Sun Dec 9 12:22:03 CET 2007
Author: stephan
Date: 2007-12-09 11:22:03 +0000 (Sun, 09 Dec 2007)
New Revision: 3681
Modified:
ristretto/trunk/src/picture_viewer.c
Log:
Modify masks to fix drag-move
Modified: ristretto/trunk/src/picture_viewer.c
===================================================================
--- ristretto/trunk/src/picture_viewer.c 2007-12-09 05:25:01 UTC (rev 3680)
+++ ristretto/trunk/src/picture_viewer.c 2007-12-09 11:22:03 UTC (rev 3681)
@@ -869,7 +869,7 @@
if (rstto_navigator_get_file(viewer->priv->navigator) != NULL)
{
- if (!(event->state & GDK_MODIFIER_MASK))
+ if (!(event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK |GDK_MOD2_MASK)))
{
GtkWidget *widget = GTK_WIDGET(viewer);
GdkCursor *cursor = gdk_cursor_new(GDK_FLEUR);
@@ -957,6 +957,7 @@
else
{
gint y_offset = (widget->allocation.height - d_height) <=0?0:((widget->allocation.height - d_height)/2);
+
top_left_y = viewer->priv->motion.current_y + viewer->vadjustment->value - y_offset;
box_height = viewer->priv->motion.y - viewer->priv->motion.current_y;
}
More information about the Goodies-commits
mailing list