diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-26 14:54:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-01-26 17:34:58 +0100 |
commit | c5cd7cd0fdc32969971c05a6b4fa0b5aeaa93a49 (patch) | |
tree | 0d13ff2e45830f9b92ccdccb603af0fbc937b052 /vcl | |
parent | 31d2ad2be96faf64f410c80cb32c3969015e15fc (diff) |
tdf#146992 gtk_window_set_attached_to causing widgets to shift
which isn't desirable, just drop its use.
Change-Id: Ic29efa9e785cad3c221e0ef37816b8485979e719
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128990
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 548316c49860..5d681cf6cd23 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -9769,8 +9769,6 @@ GtkPositionType show_menu_older_gtk(GtkWidget* pMenuButton, GtkWindow* pMenu, co else x += nButtonWidth; - gtk_window_set_attached_to(pMenu, pMenuButton); - gtk_window_group_add_window(gtk_window_get_group(GTK_WINDOW(pToplevel)), pMenu); gtk_window_set_transient_for(pMenu, GTK_WINDOW(pToplevel)); @@ -9900,8 +9898,6 @@ bool show_menu_newer_gtk(GtkWidget* pComboBox, GtkWindow* pMenu, const GdkRectan gtk_coord x, y; gtk_widget_translate_coordinates(pComboBox, pToplevel, rAnchor.x, rAnchor.y, &x, &y); - gtk_window_set_attached_to(pMenu, pComboBox); - gtk_widget_realize(GTK_WIDGET(pMenu)); gtk_window_group_add_window(gtk_window_get_group(GTK_WINDOW(pToplevel)), pMenu); gtk_window_set_transient_for(pMenu, GTK_WINDOW(pToplevel)); |