Skip to content

Commit 10b9a6e

Browse files
committed
more dbg stuff
1 parent e3ad444 commit 10b9a6e

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

TODO

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
- ^N in ws should always put the new column just to the left of the leftmost
2-
complete column in the viewport
3-
4-
or just to the right of the current column?
5-
6-
current behaviour is to insert alphabetically and scroll, which is awful
7-
81
- sharpen should use new interface?
92

103
- can we call affine from nip2 vips_call? do we need a double array?

src/workspaceview.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ workspaceview_fixed_event_cb( GtkWidget *widget,
293293
gboolean handled = FALSE;
294294

295295
#ifdef EVENT
296-
printf( "workspaceview_fixed_event_cb %d\n", ev->type );
296+
printf( "workspaceview_fixed_event_cb: %d\n", ev->type );
297297
#endif /*EVENT*/
298298

299299
switch( ev->type ) {
@@ -309,6 +309,10 @@ workspaceview_fixed_event_cb( GtkWidget *widget,
309309
}
310310
}
311311
else if( ev->button.button == 2 ) {
312+
#ifdef EVENT
313+
printf( "workspaceview_fixed_event_cb: start drag\n" );
314+
#endif /*EVENT*/
315+
312316
wview->drag_x = ev->button.x_root + wview->vp.left;
313317
wview->drag_y = ev->button.y_root + wview->vp.top;
314318
workspaceview_set_cursor( wview, IWINDOW_SHAPE_MOVE );
@@ -321,6 +325,10 @@ workspaceview_fixed_event_cb( GtkWidget *widget,
321325

322326
case GDK_BUTTON_RELEASE:
323327
if( ev->button.button == 2 ) {
328+
#ifdef EVENT
329+
printf( "workspaceview_fixed_event_cb: stop drag\n" );
330+
#endif /*EVENT*/
331+
324332
workspaceview_set_cursor( wview, IWINDOW_SHAPE_NONE );
325333
wview->dragging = FALSE;
326334

@@ -331,6 +339,10 @@ workspaceview_fixed_event_cb( GtkWidget *widget,
331339

332340
case GDK_MOTION_NOTIFY:
333341
if( wview->dragging && ev->motion.state & GDK_BUTTON2_MASK ) {
342+
#ifdef EVENT
343+
printf( "workspaceview_fixed_event_cb: motion\n" );
344+
#endif /*EVENT*/
345+
334346
/* We're using hints.
335347
*/
336348
widget_update_pointer( GTK_WIDGET( wview ), ev );

0 commit comments

Comments
 (0)