Stop signal emission so that button doesn't grab the pointer away from the

Wed Jun 10 14:17:44 1998  Owen Taylor  <otaylor@gtk.org>

	* app/disp_callbacks.c (gdisplay_origin_button_press):
	Stop signal emission so that button doesn't grab the
	pointer away from the menu.
This commit is contained in:
Owen Taylor 1998-06-10 18:15:48 +00:00 committed by Owen Taylor
parent c639350d4e
commit a8f8421292
4 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,9 @@
Wed Jun 10 14:17:44 1998 Owen Taylor <otaylor@gtk.org>
* app/disp_callbacks.c (gdisplay_origin_button_press):
Stop signal emission so that button doesn't grab the
pointer away from the menu.
Tue Jun 9 19:47:19 1998 Owen Taylor <otaylor@gtk.org>
* app/brushes.c app/drawable.c app/patterns.c

View File

@ -475,6 +475,11 @@ gdisplay_origin_button_press (GtkWidget *widget,
popup_shell = gdisp->shell;
gdisplay_set_menu_sensitivity (gdisp);
gtk_menu_popup (GTK_MENU (gdisp->popup), NULL, NULL, NULL, NULL, 1, event->time);
/* Stop the signal emission so the button doesn't grab the
* pointer away from us
*/
gtk_signal_emit_stop_by_name (widget, "button_press_event");
}
return FALSE;

View File

@ -475,6 +475,11 @@ gdisplay_origin_button_press (GtkWidget *widget,
popup_shell = gdisp->shell;
gdisplay_set_menu_sensitivity (gdisp);
gtk_menu_popup (GTK_MENU (gdisp->popup), NULL, NULL, NULL, NULL, 1, event->time);
/* Stop the signal emission so the button doesn't grab the
* pointer away from us
*/
gtk_signal_emit_stop_by_name (widget, "button_press_event");
}
return FALSE;

View File

@ -475,6 +475,11 @@ gdisplay_origin_button_press (GtkWidget *widget,
popup_shell = gdisp->shell;
gdisplay_set_menu_sensitivity (gdisp);
gtk_menu_popup (GTK_MENU (gdisp->popup), NULL, NULL, NULL, NULL, 1, event->time);
/* Stop the signal emission so the button doesn't grab the
* pointer away from us
*/
gtk_signal_emit_stop_by_name (widget, "button_press_event");
}
return FALSE;