mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Take thickness into account in the size allocation of the child widgets in
2008-03-11 Alberto Ruiz <aruiz@gnome.org> * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Take thickness into account in the size allocation of the child widgets in list mode. Fixes #521442 svn path=/trunk/; revision=19747
This commit is contained in:
parent
62f084869d
commit
1e1f49e09a
@ -1,3 +1,10 @@
|
||||
2008-03-11 Alberto Ruiz <aruiz@gnome.org>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_size_allocate):
|
||||
Take thickness into account in the size allocation of the child widgets in
|
||||
list mode.
|
||||
Fixes #521442
|
||||
|
||||
2008-03-11 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkwindow-quartz.c: Implement gdk_window_reparent.
|
||||
|
@ -2320,8 +2320,14 @@ gtk_combo_box_size_allocate (GtkWidget *widget,
|
||||
}
|
||||
}
|
||||
|
||||
child.x += shadow_width;
|
||||
child.y += shadow_height;
|
||||
child.width -= shadow_width * 2;
|
||||
child.height -= shadow_height * 2;
|
||||
|
||||
child.width = MAX (1, child.width);
|
||||
child.height = MAX (1, child.height);
|
||||
|
||||
gtk_widget_size_allocate (GTK_BIN (combo_box)->child, &child);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user