mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Cleanup the logic in expose event handler. Reviewed by Matthias Clasen,
* gtk/gtkcombobox.c (gtk_combo_box_expose_event): Cleanup the logic in expose event handler. Reviewed by Matthias Clasen, #406112 svn path=/trunk/; revision=17312
This commit is contained in:
parent
9bbec51bf1
commit
ee6b709ffd
@ -1,3 +1,8 @@
|
||||
2007-02-16 Xan Lopez <xan@gnome.org>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_expose_event): Cleanup the logic
|
||||
in expose event handler. Reviewed by Matthias Clasen, #406112
|
||||
|
||||
2007-02-16 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c: Run pre_parse_hook only once. (#403139, Kjartan
|
||||
|
@ -2276,19 +2276,14 @@ gtk_combo_box_expose_event (GtkWidget *widget,
|
||||
{
|
||||
GtkComboBox *combo_box = GTK_COMBO_BOX (widget);
|
||||
|
||||
if (!combo_box->priv->tree_view)
|
||||
{
|
||||
gtk_container_propagate_expose (GTK_CONTAINER (widget),
|
||||
combo_box->priv->button, event);
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_container_propagate_expose (GTK_CONTAINER (widget),
|
||||
combo_box->priv->button, event);
|
||||
gtk_container_propagate_expose (GTK_CONTAINER (widget),
|
||||
combo_box->priv->button, event);
|
||||
|
||||
if (combo_box->priv->cell_view_frame)
|
||||
gtk_container_propagate_expose (GTK_CONTAINER (widget),
|
||||
combo_box->priv->cell_view_frame, event);
|
||||
if (combo_box->priv->tree_view &&
|
||||
combo_box->priv->cell_view_frame)
|
||||
{
|
||||
gtk_container_propagate_expose (GTK_CONTAINER (widget),
|
||||
combo_box->priv->cell_view_frame, event);
|
||||
}
|
||||
|
||||
gtk_container_propagate_expose (GTK_CONTAINER (widget),
|
||||
|
Loading…
Reference in New Issue
Block a user