summaryrefslogtreecommitdiff
path: root/gtk/gtkmenuitem.c
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-03-10 03:17:02 +0000
committerTim Janik <timj@src.gnome.org>1998-03-10 03:17:02 +0000
commit2f50a3044ed8bf7783e8362d956b6f77010795cd (patch)
treeade65b5ee1804697cc26df7b59ed317bc99807cb /gtk/gtkmenuitem.c
parent990bddfe1688861332443d89a4796a710e18ae39 (diff)
downloadgtk+-2f50a3044ed8bf7783e8362d956b6f77010795cd.tar.gz
commiting changes from owen:
Mon Mar 9 20:38:15 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkentry.c gtk/gtkeditable.c gtk/gtkspinbutton.c: Moved "activate" to editable class. Made the vfuncs in gtkeditable just vfuncs not signals. * gtkentry.[ch] gtktext.[ch]: Made behavior when pressing multiple buttons at once more rational. * gtkentry.c gtktext.c: Unified and rationalized key bindings. (Now are basically emacs+CUA) * gtktext.c: - Last position now always shares the property of the preceding character - Freeze the widget when inserting large amounts of text. - Selecting lines now selects the _whole_ line. - Fixed bug with displaying the cursor - Ctrl-Home/End now move the cursor to the _absolute home/end * gtkmenuitem.c: Remove necessary code out of a g_return_if_fail -timj
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r--gtk/gtkmenuitem.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index 582d33c279..3d228d8648 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -698,7 +698,11 @@ gtk_menu_item_position_menu (GtkMenu *menu,
screen_width = gdk_screen_width ();
screen_height = gdk_screen_height ();
- g_return_if_fail (gdk_window_get_origin (GTK_WIDGET (menu_item)->window, &tx, &ty));
+ if (!gdk_window_get_origin (GTK_WIDGET (menu_item)->window, &tx, &ty))
+ {
+ g_warning ("Menu not on screen");
+ return;
+ }
switch (menu_item->submenu_placement)
{