Takuro Ashie
ashie****@homa*****
2003年 2月 23日 (日) 21:37:08 JST
足永です. At Sat, 22 Feb 2003 16:30:23 +0900, Hiroyuki Ikezoe wrote: > Index: kz-window.c > =================================================================== > RCS file: /cvsroot/kazehakase/kazehakase/src/kz-window.c,v > retrieving revision 1.14 > diff -u -r1.14 kz-window.c > --- kz-window.c 17 Feb 2003 23:52:12 -0000 1.14 > +++ kz-window.c 22 Feb 2003 07:24:40 -0000 > @@ -73,9 +73,8 @@ > KzWindow *kz); > static gint dom_mouse_dbl_click_cb (GtkMozEmbed *embed, gpointer event, > KzWindow *kz); > -static gint dom_mouse_down_cb (GtkMozEmbed *embed, > - gpointer event, > - KzWindow *kz); > +static gint dom_mouse_down_cb (GtkMozEmbed *embed, gpointer event, > + KzWindow *kz); > > /* > * mozilla doesn't accept these signals, so we connect these funtions to > @@ -879,10 +878,8 @@ > &win_x, &win_y); > gdk_window_get_position (GTK_WIDGET(kzembed)->window, > &win_x_pos, &win_y_pos); > - > - x = win_x + win_x_pos + x_pos; > - y = win_y + win_y_pos + y_pos; > - > + gtk_widget_get_pointer (GTK_WIDGET(kzembed), > + &x, &y); > kz_gesture_start(kzembed->gesture, 0, x, y); > > if ((type & CONTEXT_LINK) && info.cinfo.link) > @@ -912,8 +909,8 @@ > &win_x, &win_y); > gdk_window_get_position (GTK_WIDGET(kzembed)->window, > &win_x_pos, &win_y_pos); > - x = win_x + event->x; > - y = win_y + event->y; > + gtk_widget_get_pointer (GTK_WIDGET(kzembed), > + &x, &y); > > kz_gesture_update_position(kzembed->gesture, x, y); > } というかフレームなページなんて見ないので気が付いていませんでしたし, gtk_widget_get_pointer()なんて知らなかったです(^^; (Gtk+2で追加されたみたい) # 後でコード眺めてみよう フォローありがとうございますm( )m