[gtk+] popover: Explicitly call queue_allocate in tick callback
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] popover: Explicitly call queue_allocate in tick callback
- Date: Sat, 14 Oct 2017 17:19:17 +0000 (UTC)
commit c4c6a2099861b41fa9e17aea5f345109908236a9
Author: Timm Bäder <mail baedert org>
Date: Sat Oct 14 12:45:17 2017 +0200
popover: Explicitly call queue_allocate in tick callback
_gtk_window_set_popover_position is begin called in size-allocate.
gtk/gtkpopover.c | 1 +
gtk/gtkwindow.c | 2 --
2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 19a4e38..fb47a7b 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -670,6 +670,7 @@ show_animate_cb (GtkWidget *widget,
}
gtk_popover_update_position (popover);
+ gtk_widget_queue_allocate (GTK_WIDGET (priv->window));
if (gtk_progress_tracker_get_state (&priv->tracker) == GTK_PROGRESS_STATE_AFTER)
{
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 348eb58..9ad57c6 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -10757,8 +10757,6 @@ _gtk_window_set_popover_position (GtkWindow *window,
data->rect = *rect;
data->pos = pos;
-
- gtk_widget_queue_allocate (GTK_WIDGET (window));
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]