mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
Take GtkMenu::horizontal-padding into account when placing submenus
2006-06-09 Benjamin Berg <benjamin@sipsolutions.net> * gtk/gtkmenuitem.c: (get_offsets): Take GtkMenu::horizontal-padding into account when placing submenus (#344290)
This commit is contained in:
parent
4bb3d64414
commit
8f9a1d8bf6
@ -1,3 +1,8 @@
|
||||
2006-06-09 Benjamin Berg <benjamin@sipsolutions.net>
|
||||
|
||||
* gtk/gtkmenuitem.c: (get_offsets): Take GtkMenu::horizontal-padding
|
||||
into account when placing submenus (#344290)
|
||||
|
||||
2006-06-09 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkrange.c: added new style properties "trough-side-details"
|
||||
|
@ -1,3 +1,8 @@
|
||||
2006-06-09 Benjamin Berg <benjamin@sipsolutions.net>
|
||||
|
||||
* gtk/gtkmenuitem.c: (get_offsets): Take GtkMenu::horizontal-padding
|
||||
into account when placing submenus (#344290)
|
||||
|
||||
2006-06-09 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkrange.c: added new style properties "trough-side-details"
|
||||
|
@ -1072,15 +1072,18 @@ get_offsets (GtkMenu *menu,
|
||||
gint *vertical_offset)
|
||||
{
|
||||
gint vertical_padding;
|
||||
gint horizontal_padding;
|
||||
|
||||
gtk_widget_style_get (GTK_WIDGET (menu),
|
||||
"horizontal-offset", horizontal_offset,
|
||||
"vertical-offset", vertical_offset,
|
||||
"horizontal-padding", &horizontal_padding,
|
||||
"vertical-padding", &vertical_padding,
|
||||
NULL);
|
||||
|
||||
*vertical_offset -= GTK_WIDGET (menu)->style->ythickness;
|
||||
*vertical_offset -= vertical_padding;
|
||||
*horizontal_offset += horizontal_padding;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user