[gtk/fix-appwindow-allocate] applicationwindow: Allocate tooltips
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-appwindow-allocate] applicationwindow: Allocate tooltips
- Date: Fri, 4 Jun 2021 01:46:23 +0000 (UTC)
commit 6a509608f9fd9593efe2060e706cada4b27f23c6
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jun 3 21:43:13 2021 -0400
applicationwindow: Allocate tooltips
GtkApplicationWindows size_allocate does not chain
up if the menubar is visible; don't forget to allocate
the tooltip window in that case.
Fixes: #3997
gtk/gtkapplicationwindow.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index 1dc9a08d18..e7747f9a6c 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -29,6 +29,7 @@
#include "gtkintl.h"
#include "gtksettings.h"
#include "gtkshortcutswindowprivate.h"
+#include "gtktooltipprivate.h"
#if defined(HAVE_GIO_UNIX) && !defined(__APPLE__)
#include <gio/gdesktopappinfo.h>
@@ -487,6 +488,8 @@ gtk_application_window_real_size_allocate (GtkWidget *widget,
child = gtk_window_get_child (GTK_WINDOW (window));
if (child != NULL && gtk_widget_get_visible (child))
gtk_widget_size_allocate (child, &child_allocation, baseline);
+
+ gtk_tooltip_maybe_allocate (GTK_NATIVE (widget));
}
else
GTK_WIDGET_CLASS (gtk_application_window_parent_class)->size_allocate (widget,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]