Mercurial > geeqie
diff src/layout_image.c @ 131:b1acdfc7271b
relative scroll is working; some cleanup
| author | nadvornik |
|---|---|
| date | Thu, 12 Jul 2007 20:46:28 +0000 |
| parents | 7ea9fbcff664 |
| children | 71e1ebee420e |
line wrap: on
line diff
--- a/src/layout_image.c Wed Jul 11 21:10:25 2007 +0000 +++ b/src/layout_image.c Thu Jul 12 20:46:28 2007 +0000 @@ -1144,7 +1144,7 @@ void layout_image_set_path(LayoutWindow *lw, const gchar *path) { - gfloat sx, sy; + gdouble sx, sy; if (!layout_valid(&lw)) return; image_get_scroll_center(lw->image, &sx, &sy); @@ -1557,8 +1557,8 @@ if (lw->split_images[i] && lw->split_images[i] != imd) if (lw->connect_scroll) { - gfloat sx, sy; - if (!(state & GDK_CONTROL_MASK)) + gdouble sx, sy; + if (state & GDK_CONTROL_MASK) { image_get_scroll_center(imd, &sx, &sy); } @@ -1573,13 +1573,6 @@ } } -static gint layout_image_mouse_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data) -{ - - printf("mouse press\n"); - -} - static void layout_image_button_inactive_cb(ImageWindow *imd, gint button, guint32 time, gdouble x, gdouble y, guint state, gpointer data) { @@ -1589,7 +1582,6 @@ if (i != -1) { - printf("image activate %d\n", i); layout_image_activate(lw, i); } @@ -1616,10 +1608,8 @@ gint i = image_idx(lw, imd); - printf("drag inacive\n"); if (i != -1) { - printf("image activate %d\n", i); layout_image_activate(lw, i); } @@ -1661,10 +1651,6 @@ gtk_widget_ref(lw->split_images[i]->widget); - g_signal_connect(G_OBJECT(lw->split_images[i]->widget), "button_press_event", - G_CALLBACK(layout_image_mouse_press_cb), lw); - - if (black_window_background) image_background_set_black(lw->split_images[i], TRUE); image_auto_refresh(lw->image, 0);
