<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:gulsah.1004@gmail.com" title="Gülşah Köse <gulsah.1004@gmail.com>"> <span class="fn">Gülşah Köse</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - TOOLBAR: Do not hide customize toolbar context menu after toggling a visible icon"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=85786">bug 85786</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>gulsah.1004@gmail.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Assignee</td>
           <td>gulsah.1004@gmail.com
           </td>
           <td>libreoffice-bugs@lists.freedesktop.org
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - TOOLBAR: Do not hide customize toolbar context menu after toggling a visible icon"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=85786#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - TOOLBAR: Do not hide customize toolbar context menu after toggling a visible icon"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=85786">bug 85786</a>
              from <span class="vcard"><a class="email" href="mailto:gulsah.1004@gmail.com" title="Gülşah Köse <gulsah.1004@gmail.com>"> <span class="fn">Gülşah Köse</span></a>
</span></b>
        <pre>Hi @Yousuf. According to my research behaviour completely comes from gtk. Here
are some code pointer

PopupMenu::ImplExecute
<a href="http://opengrok.libreoffice.org/xref/core/vcl/source/window/menu.cxx#2906">http://opengrok.libreoffice.org/xref/core/vcl/source/window/menu.cxx#2906</a>

GtkSalMenu::ShowNativePopupMenu
<a href="http://opengrok.libreoffice.org/xref/core/vcl/unx/gtk/gtksalmenu.cxx#456">http://opengrok.libreoffice.org/xref/core/vcl/unx/gtk/gtksalmenu.cxx#456</a>
"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:
<a href="https://stackoverflow.com/questions/43981246/gtk-how-is-it-possible-to-keep-the-popup-menu-open-when-a-click-event-occurs-on">https://stackoverflow.com/questions/43981246/gtk-how-is-it-possible-to-keep-the-popup-menu-open-when-a-click-event-occurs-on</a>

Maybe comes help from there.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>