mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Fixed bug where right justified menu would overlap last left justified
Sun Apr 5 21:47:12 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkmenubar.c: Fixed bug where right justified menu would overlap last left justified item.
This commit is contained in:
parent
20fee708a3
commit
79d880ccb7
@ -1,3 +1,8 @@
|
||||
Sun Apr 5 21:47:12 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkmenubar.c: Fixed bug where right justified
|
||||
menu would overlap last left justified item.
|
||||
|
||||
Sun Apr 5 19:30:23 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkclist.c: Fixed assignment of adjustment->value
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Apr 5 21:47:12 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkmenubar.c: Fixed bug where right justified
|
||||
menu would overlap last left justified item.
|
||||
|
||||
Sun Apr 5 19:30:23 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkclist.c: Fixed assignment of adjustment->value
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Apr 5 21:47:12 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkmenubar.c: Fixed bug where right justified
|
||||
menu would overlap last left justified item.
|
||||
|
||||
Sun Apr 5 19:30:23 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkclist.c: Fixed assignment of adjustment->value
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Apr 5 21:47:12 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkmenubar.c: Fixed bug where right justified
|
||||
menu would overlap last left justified item.
|
||||
|
||||
Sun Apr 5 19:30:23 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkclist.c: Fixed assignment of adjustment->value
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Apr 5 21:47:12 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkmenubar.c: Fixed bug where right justified
|
||||
menu would overlap last left justified item.
|
||||
|
||||
Sun Apr 5 19:30:23 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkclist.c: Fixed assignment of adjustment->value
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Apr 5 21:47:12 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkmenubar.c: Fixed bug where right justified
|
||||
menu would overlap last left justified item.
|
||||
|
||||
Sun Apr 5 19:30:23 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkclist.c: Fixed assignment of adjustment->value
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Apr 5 21:47:12 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkmenubar.c: Fixed bug where right justified
|
||||
menu would overlap last left justified item.
|
||||
|
||||
Sun Apr 5 19:30:23 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkclist.c: Fixed assignment of adjustment->value
|
||||
|
@ -149,6 +149,12 @@ gtk_menu_bar_size_request (GtkWidget *widget,
|
||||
|
||||
requisition->width += child->requisition.width;
|
||||
requisition->height = MAX (requisition->height, child->requisition.height);
|
||||
/* Support for the right justified help menu */
|
||||
if ( (children == NULL) && (GTK_IS_MENU_ITEM(child))
|
||||
&& (GTK_MENU_ITEM(child)->right_justify))
|
||||
{
|
||||
requisition->width += CHILD_SPACING;
|
||||
}
|
||||
|
||||
nchildren += 1;
|
||||
}
|
||||
@ -210,10 +216,11 @@ gtk_menu_bar_size_allocate (GtkWidget *widget,
|
||||
|
||||
/* Support for the right justified help menu */
|
||||
if ( (children == NULL) && (GTK_IS_MENU_ITEM(child))
|
||||
&& (GTK_MENU_ITEM(child)->right_justify)) {
|
||||
child_allocation.x = allocation->width -
|
||||
child_allocation.width - CHILD_SPACING - offset;
|
||||
}
|
||||
&& (GTK_MENU_ITEM(child)->right_justify))
|
||||
{
|
||||
child_allocation.x = allocation->width -
|
||||
child->requisition.width - CHILD_SPACING - offset;
|
||||
}
|
||||
if (GTK_WIDGET_VISIBLE (child))
|
||||
{
|
||||
child_allocation.width = child->requisition.width;
|
||||
|
Loading…
Reference in New Issue
Block a user