forked from AuroraMiddleware/gtk
Remove optimization that was causing problems because we called
Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c (gtk_widget_set_style_internal): Remove optimization that was causing problems because we called gtk_widget_size_request() before we called gtk_widget_queue_resize() so RESIZE_NEEDED was not set. Optimization shouldn't mattter now that we are smart about needlessly size requesting or allocating widgets. (#67598, reported by Jacob Berkman)
This commit is contained in:
parent
095d7c33d7
commit
7aeb18a51c
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_set_style_internal):
|
||||||
|
Remove optimization that was causing problems because
|
||||||
|
we called gtk_widget_size_request() before we called
|
||||||
|
gtk_widget_queue_resize() so RESIZE_NEEDED was not
|
||||||
|
set. Optimization shouldn't mattter now that we
|
||||||
|
are smart about needlessly size requesting or allocating
|
||||||
|
widgets. (#67598, reported by Jacob Berkman)
|
||||||
|
|
||||||
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_set_style_internal):
|
||||||
|
Remove optimization that was causing problems because
|
||||||
|
we called gtk_widget_size_request() before we called
|
||||||
|
gtk_widget_queue_resize() so RESIZE_NEEDED was not
|
||||||
|
set. Optimization shouldn't mattter now that we
|
||||||
|
are smart about needlessly size requesting or allocating
|
||||||
|
widgets. (#67598, reported by Jacob Berkman)
|
||||||
|
|
||||||
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_set_style_internal):
|
||||||
|
Remove optimization that was causing problems because
|
||||||
|
we called gtk_widget_size_request() before we called
|
||||||
|
gtk_widget_queue_resize() so RESIZE_NEEDED was not
|
||||||
|
set. Optimization shouldn't mattter now that we
|
||||||
|
are smart about needlessly size requesting or allocating
|
||||||
|
widgets. (#67598, reported by Jacob Berkman)
|
||||||
|
|
||||||
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_set_style_internal):
|
||||||
|
Remove optimization that was causing problems because
|
||||||
|
we called gtk_widget_size_request() before we called
|
||||||
|
gtk_widget_queue_resize() so RESIZE_NEEDED was not
|
||||||
|
set. Optimization shouldn't mattter now that we
|
||||||
|
are smart about needlessly size requesting or allocating
|
||||||
|
widgets. (#67598, reported by Jacob Berkman)
|
||||||
|
|
||||||
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_set_style_internal):
|
||||||
|
Remove optimization that was causing problems because
|
||||||
|
we called gtk_widget_size_request() before we called
|
||||||
|
gtk_widget_queue_resize() so RESIZE_NEEDED was not
|
||||||
|
set. Optimization shouldn't mattter now that we
|
||||||
|
are smart about needlessly size requesting or allocating
|
||||||
|
widgets. (#67598, reported by Jacob Berkman)
|
||||||
|
|
||||||
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_set_style_internal):
|
||||||
|
Remove optimization that was causing problems because
|
||||||
|
we called gtk_widget_size_request() before we called
|
||||||
|
gtk_widget_queue_resize() so RESIZE_NEEDED was not
|
||||||
|
set. Optimization shouldn't mattter now that we
|
||||||
|
are smart about needlessly size requesting or allocating
|
||||||
|
widgets. (#67598, reported by Jacob Berkman)
|
||||||
|
|
||||||
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_set_style_internal):
|
||||||
|
Remove optimization that was causing problems because
|
||||||
|
we called gtk_widget_size_request() before we called
|
||||||
|
gtk_widget_queue_resize() so RESIZE_NEEDED was not
|
||||||
|
set. Optimization shouldn't mattter now that we
|
||||||
|
are smart about needlessly size requesting or allocating
|
||||||
|
widgets. (#67598, reported by Jacob Berkman)
|
||||||
|
|
||||||
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
* gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
|
||||||
|
@ -4165,18 +4165,7 @@ gtk_widget_set_style_internal (GtkWidget *widget,
|
|||||||
g_object_unref (previous_style);
|
g_object_unref (previous_style);
|
||||||
|
|
||||||
if (widget->parent && !initial_emission)
|
if (widget->parent && !initial_emission)
|
||||||
{
|
gtk_widget_queue_resize (widget);
|
||||||
GtkRequisition old_requisition;
|
|
||||||
|
|
||||||
old_requisition = widget->requisition;
|
|
||||||
gtk_widget_size_request (widget, NULL);
|
|
||||||
|
|
||||||
if ((old_requisition.width != widget->requisition.width) ||
|
|
||||||
(old_requisition.height != widget->requisition.height))
|
|
||||||
gtk_widget_queue_resize (widget);
|
|
||||||
else if (GTK_WIDGET_DRAWABLE (widget))
|
|
||||||
gtk_widget_queue_clear (widget);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (initial_emission)
|
else if (initial_emission)
|
||||||
gtk_signal_emit (GTK_OBJECT (widget),
|
gtk_signal_emit (GTK_OBJECT (widget),
|
||||||
|
Loading…
Reference in New Issue
Block a user