[gtk+] GtkPopover: Don't resize during the transition
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkPopover: Don't resize during the transition
- Date: Tue, 29 Sep 2015 13:30:02 +0000 (UTC)
commit 8a6b72063281e1732ac09d744b5eb344df94a7d2
Author: Timm Bäder <mail baedert org>
Date: Tue Sep 22 20:27:51 2015 +0200
GtkPopover: Don't resize during the transition
Call gtk_popover_update_position instead which will pick up the new
transition_diff value and pass it on to
_gtk_window_set_popover_position, which in turn will move the window
correctly.
https://bugzilla.gnome.org/show_bug.cgi?id=755435
gtk/gtkpopover.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 9b4d8ec..5d5694c 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -517,7 +517,7 @@ show_animate_cb (GtkWidget *widget,
gtk_widget_set_opacity (widget, 1.0 - t);
}
- gtk_widget_queue_resize (GTK_WIDGET (popover));
+ gtk_popover_update_position (popover);
if (t >= 1.0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]