Mercurial > pidgin
comparison src/gtkimhtml.c @ 1613:35a13ece3a9c
[gaim-migrate @ 1623]
neat
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 18 Mar 2001 03:41:01 +0000 |
parents | 4fcd012c0a6a |
children | 59c7e7831ccd |
comparison
equal
deleted
inserted
replaced
1612:fd5d27358418 | 1613:35a13ece3a9c |
---|---|
209 | 209 |
210 widget->style = gtk_style_attach (widget->style, widget->window); | 210 widget->style = gtk_style_attach (widget->style, widget->window); |
211 gdk_window_set_events (GTK_LAYOUT (imhtml)->bin_window, | 211 gdk_window_set_events (GTK_LAYOUT (imhtml)->bin_window, |
212 (gdk_window_get_events (GTK_LAYOUT (imhtml)->bin_window) | 212 (gdk_window_get_events (GTK_LAYOUT (imhtml)->bin_window) |
213 | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | 213 | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
214 | GDK_POINTER_MOTION_MASK | GDK_EXPOSURE_MASK)); | 214 | GDK_POINTER_MOTION_MASK | GDK_EXPOSURE_MASK | GDK_LEAVE_NOTIFY_MASK)); |
215 | 215 |
216 gdk_window_set_cursor (widget->window, imhtml->arrow_cursor); | 216 gdk_window_set_cursor (widget->window, imhtml->arrow_cursor); |
217 | 217 |
218 gdk_color_alloc (gtk_widget_get_colormap (widget), imhtml->default_bg_color); | 218 gdk_color_alloc (gtk_widget_get_colormap (widget), imhtml->default_bg_color); |
219 gdk_window_set_background (GTK_LAYOUT (imhtml)->bin_window, imhtml->default_bg_color); | 219 gdk_window_set_background (GTK_LAYOUT (imhtml)->bin_window, imhtml->default_bg_color); |
1159 | 1159 |
1160 return TRUE; | 1160 return TRUE; |
1161 } | 1161 } |
1162 | 1162 |
1163 static gint | 1163 static gint |
1164 gtk_imhtml_leave_notify_event (GtkWidget *widget, | |
1165 GdkEventCrossing *event) | |
1166 { | |
1167 GtkIMHtml *imhtml = GTK_IMHTML (widget); | |
1168 | |
1169 if (imhtml->tip_timer) { | |
1170 gtk_timeout_remove (imhtml->tip_timer); | |
1171 imhtml->tip_timer = 0; | |
1172 } | |
1173 if (imhtml->tip_window) { | |
1174 gtk_widget_destroy (imhtml->tip_window); | |
1175 imhtml->tip_window = NULL; | |
1176 } | |
1177 imhtml->tip_bit = NULL; | |
1178 | |
1179 return TRUE; | |
1180 } | |
1181 | |
1182 static gint | |
1164 gtk_imhtml_button_press_event (GtkWidget *widget, | 1183 gtk_imhtml_button_press_event (GtkWidget *widget, |
1165 GdkEventButton *event) | 1184 GdkEventButton *event) |
1166 { | 1185 { |
1167 GtkIMHtml *imhtml = GTK_IMHTML (widget); | 1186 GtkIMHtml *imhtml = GTK_IMHTML (widget); |
1168 GtkAdjustment *vadj = GTK_LAYOUT (widget)->vadjustment; | 1187 GtkAdjustment *vadj = GTK_LAYOUT (widget)->vadjustment; |
1335 widget_class->draw = gtk_imhtml_draw; | 1354 widget_class->draw = gtk_imhtml_draw; |
1336 widget_class->style_set = gtk_imhtml_style_set; | 1355 widget_class->style_set = gtk_imhtml_style_set; |
1337 widget_class->expose_event = gtk_imhtml_expose_event; | 1356 widget_class->expose_event = gtk_imhtml_expose_event; |
1338 widget_class->size_allocate = gtk_imhtml_size_allocate; | 1357 widget_class->size_allocate = gtk_imhtml_size_allocate; |
1339 widget_class->motion_notify_event = gtk_imhtml_motion_notify_event; | 1358 widget_class->motion_notify_event = gtk_imhtml_motion_notify_event; |
1359 widget_class->leave_notify_event = gtk_imhtml_leave_notify_event; | |
1340 widget_class->button_press_event = gtk_imhtml_button_press_event; | 1360 widget_class->button_press_event = gtk_imhtml_button_press_event; |
1341 widget_class->button_release_event = gtk_imhtml_button_release_event; | 1361 widget_class->button_release_event = gtk_imhtml_button_release_event; |
1342 widget_class->selection_get = gtk_imhtml_selection_get; | 1362 widget_class->selection_get = gtk_imhtml_selection_get; |
1343 widget_class->selection_clear_event = gtk_imhtml_selection_clear_event; | 1363 widget_class->selection_clear_event = gtk_imhtml_selection_clear_event; |
1344 | 1364 |