Bug 71569 - VIEWING: menubar disappears when using alternative menubar option in KDE
Summary: VIEWING: menubar disappears when using alternative menubar option in KDE
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
4.1.3.2 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-13 11:15 UTC by Cor Blom
Modified: 2016-09-20 10:24 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cor Blom 2013-11-13 11:15:04 UTC
Problem description: 

When in KDE the option is used to export the menubar to the top of the screen or the the window decoration, libreoffice's menubar disappears when the gnome/gtk integration is used (instead of the kde integration, which is working fine). It happens to me in opensuse (13.1) and kubuntu (13.10).

Steps to reproduce:
1. In KDE (4.11.2) go to systemsettings > Application Appearance > Style > Fine tuning > menubar style and select "title bar button" of "top screen menubar"
2. Start libreoffice with gnome integration (I have done this by removing the kde integration package)
3. Try to use the menubar

Current behavior:
The menubar is not there

Expected behavior:
that libreoffice would ignore this kde option and show the menubar in the application itself.

              
Operating System: openSUSE
Version: 4.1.3.2 release
Comment 1 hkaustin 2013-11-17 11:52:44 UTC
I can confirm this. Happens in openSUSE 13.1 but not in openSUSE 12.3 where menubar is working fine. Using LibreOffice 4.1.2.3-1.1.x86_64.
Comment 2 Christian 2013-11-26 15:03:15 UTC
Same problem here. The libreoffice-extension-menubar doesn't work anymore and the menu dissapears when using the libreoffice-gnome integration package if menubar style is selected to not be in the application (any option that exports the menu).

-Archlinux (Linux 3.12.1-1-ARCH x86_64)
-KDE 4.11.3
-LibreOffice 4.1.3.2
Comment 3 pieter kristensen 2013-12-08 13:57:12 UTC
I have the same experience. I'm using Kubuntu with KDE 4.12 beta 2 (32 bit) and LibreOffice 4.2 beta 2. I can't get the menu on top to work. Also with me I came the closest with no menu in the application window and no menu on top.
Comment 4 Andreas Demmer 2013-12-18 14:00:37 UTC
Happens for me too with KDE 4.11.95 and LibreOffice 4.1.3.2
Comment 5 Joel Madero 2015-05-02 15:42:42 UTC Comment hidden (obsolete)
Comment 6 Cor Blom 2015-05-08 20:49:54 UTC
I have tested this on openSUSE 13.2 with libreoffice 4.4.2.2 (from the LibreOffice:4.4. repository) and the bug is still present.
Comment 7 Cor Blom 2015-06-10 08:34:28 UTC
The problem is in the GMenu integration.

If I comment out this integration in vcl/inc/unx/gtk/gtksalmenu.hxx and build the whole thing (on openSUSE 13.2 using OBS) and then install the libreoffice-gnome package (ignoring the rest) the problem is solved. It is not really a solution, but maybe it helps.

I applied the following patch:

--- libreoffice-4.3.7.2/vcl/inc/unx/gtk/gtksalmenu.hxx.orig	2015-04-20 21:36:29.000000000 +0200
+++ libreoffice-4.3.7.2/vcl/inc/unx/gtk/gtksalmenu.hxx	2015-06-10 00:38:27.048576806 +0200
@@ -18,18 +18,11 @@
 #include <unx/salmenu.h>
 #include <unx/gtk/gtkframe.hxx>
 
-#if defined(ENABLE_DBUS) && defined(ENABLE_GIO) && \
-    (GLIB_MAJOR_VERSION > 2 || GLIB_MINOR_VERSION >= 36)
-#  define ENABLE_GMENU_INTEGRATION
-#  include <unx/gtk/glomenu.h>
-#  include <unx/gtk/gloactiongroup.h>
-#else
-#  if !(GLIB_MAJOR_VERSION > 2 || GLIB_MINOR_VERSION >= 32)
-     typedef void GMenuModel;
-#  endif
-#  if !(GLIB_MAJOR_VERSION > 2 || GLIB_MINOR_VERSION >= 28)
-     typedef void GActionGroup;
-#  endif
+#if !(GLIB_MAJOR_VERSION > 2 || GLIB_MINOR_VERSION >= 32)
+   typedef void GMenuModel;
+#endif
+#if !(GLIB_MAJOR_VERSION > 2 || GLIB_MINOR_VERSION >= 28)
+   typedef void GActionGroup;
 #endif
 
 class MenuItemList;
Comment 8 QA Administrators 2016-09-20 10:02:28 UTC Comment hidden (obsolete)
Comment 9 Cor Blom 2016-09-20 10:24:28 UTC
I cannot test if this bug is still present. It refers to menu stuff in kde4 that is not (yet) ported to plasma 5, which I'm using now.

Because it cannot be repeated in plasma 5, because that functionality is not present there, I'll close as worksforme.