[Libreoffice-bugs] [Bug 85786] TOOLBAR: Do not hide customize toolbar context menu after toggling a visible icon

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu May 18 08:17:26 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=85786

Gülşah Köse <gulsah.1004 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gulsah.1004 at gmail.com
           Assignee|gulsah.1004 at gmail.com       |libreoffice-bugs at lists.free
                   |                            |desktop.org

--- Comment #5 from Gülşah Köse <gulsah.1004 at gmail.com> ---
Hi @Yousuf. According to my research behaviour completely comes from gtk. Here
are some code pointer

PopupMenu::ImplExecute
http://opengrok.libreoffice.org/xref/core/vcl/source/window/menu.cxx#2906

GtkSalMenu::ShowNativePopupMenu
http://opengrok.libreoffice.org/xref/core/vcl/unx/gtk/gtksalmenu.cxx#456
"gtk_menu_popup"

Solution suggestion:
GtkMenu has GtkSalMenuItems. Note that: When submenu was open focus still on
its parent menu untill you click a menu item. After you click it "activate"
signal occurs. Solution i think copy gtk_menu_popup parameters in a struct,
connect that the activate signal to button_press_event(Left click). And reopen
that gtk_menu_popup with copied parameters.

Needed help frome someone who experienced with gtk.

Asked a question to stackoverflow:
https://stackoverflow.com/questions/43981246/gtk-how-is-it-possible-to-keep-the-popup-menu-open-when-a-click-event-occurs-on

Maybe comes help from there.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170518/57e19b62/attachment.html>


More information about the Libreoffice-bugs mailing list