QuickBrowser: GTK submenus are sometime out of the screen

Bug #1303263 reported by Megamo on 2014-04-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cairo-Dock Plug-ins
Undecided
Fabounet
gtk+3.0 (Ubuntu)
Undecided
Unassigned

Bug Description

I don't really know how to describe the problem in english but just see attached image. We see a part of the contextuel menu is not showen. Normally the second menu will be showen in the left as there's no space in the right. Thanks

Megamo (rabahmeradi) wrote :
Matthieu Baerts (matttbe) wrote :

Hello and thank you for this bug report! (and sorry for this very very long delay!)

What's your distribution (Ubuntu I guess) and its version? And what's the version of the dock?

The placement of these menus should be handled by GTK. I suspect a bug with it. I think there were a bug with the previous versions of GTK3.

Changed in cairo-dock-core:
status: New → Incomplete
Megamo (rabahmeradi) wrote :

I'm using Ubuntu 13.10. I'm using cairo-dock 3.3.2

Matthieu Baerts (matttbe) wrote :

Are you using GTK 3.10 from GNOME ppa?

Is it maybe possible to check if you also have this bug with the latest development version of the dock? You can easily install it by adding our "Weekly ppa": http://glx-dock.org/ww_page.php?p=ppa%20Weekly&lang=en

I confirm this bug, and I can say I've seen it froma long time ago :-/
it's actually GTK not displaying the menu correctly (it's obviously on the
wrong side, but also if the item is on the bottom of the screen, the menu
is very small and you have to scroll a lot)
the weird part is that the second time you display the sub-menu, it's
actually on the correct size.

2014-05-16 21:10 GMT+02:00 Matthieu Baerts <email address hidden>:

> Are you using GTK 3.10 from GNOME ppa?
>
> Is it maybe possible to check if you also have this bug with the latest
> development version of the dock? You can easily install it by adding our
> "Weekly ppa": http://glx-dock.org/ww_page.php?p=ppa%20Weekly&lang=en
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Devs, which is subscribed to Cairo-Dock Core.
> https://bugs.launchpad.net/bugs/1303263
>
> Title:
> the home shrotcut not working
>
> Status in Cairo-Dock : Core:
> Incomplete
>
> Bug description:
> I don't really know how to describe the problem in english but just
> see attached image. We see a part of the contextuel menu is not
> showen. Normally the second menu will be showen in the left as
> there's no space in the right. Thanks
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-core/+bug/1303263/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cairo-dock-team
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~cairo-dock-team
> More help : https://help.launchpad.net/ListHelp
>

I'm using Gnome Shell version 3.8.4. I tested with beta version and the bug still there.

Matthieu Baerts (matttbe) wrote :

@fabounet: so,.. for you this bug is due to GTK?

Matthieu Baerts (matttbe) wrote :

@Megamo: thank you for having tested our beta version!

well, that's obviously not what you're expecting from a menu
and I don't think the user of the toolkit (= us) should care about where
the sub-menus will appear

there are 2 bugs here: the sub-menus not being placed on the correct side
of the main menu (only the first time the sub-menu appears) and the
sub-menus not expanding vertically as they should.
The last one probably has to do with the way we build the submenus (we
create the sub-menu and then fill it), so maybe we can try to workaround it
(like forcing to reposition the menu, if that's possible), but the best
would be to report it to GTK devs

2014-05-18 10:42 GMT+02:00 Matthieu Baerts <email address hidden>:

> @fabounet: so,.. for you this bug is due to GTK?
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Devs, which is subscribed to Cairo-Dock Core.
> https://bugs.launchpad.net/bugs/1303263
>
> Title:
> the home shrotcut not working
>
> Status in Cairo-Dock : Core:
> Incomplete
>
> Bug description:
> I don't really know how to describe the problem in english but just
> see attached image. We see a part of the contextuel menu is not
> showen. Normally the second menu will be showen in the left as
> there's no space in the right. Thanks
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-core/+bug/1303263/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cairo-dock-team
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~cairo-dock-team
> More help : https://help.launchpad.net/ListHelp
>

Fabounet (fabounet03) wrote :

more precisely, we fill the sub-menu when the main menu item is activated

2014-05-18 23:19 GMT+02:00 Fabrice Rey <email address hidden>:

> well, that's obviously not what you're expecting from a menu
> and I don't think the user of the toolkit (= us) should care about where
> the sub-menus will appear
>
> there are 2 bugs here: the sub-menus not being placed on the correct side
> of the main menu (only the first time the sub-menu appears) and the
> sub-menus not expanding vertically as they should.
> The last one probably has to do with the way we build the submenus (we
> create the sub-menu and then fill it), so maybe we can try to workaround it
> (like forcing to reposition the menu, if that's possible), but the best
> would be to report it to GTK devs
>
>
> 2014-05-18 10:42 GMT+02:00 Matthieu Baerts <email address hidden>:
>
> @fabounet: so,.. for you this bug is due to GTK?
>>
>> --
>> You received this bug notification because you are a member of Cairo-
>> Dock Devs, which is subscribed to Cairo-Dock Core.
>> https://bugs.launchpad.net/bugs/1303263
>>
>> Title:
>> the home shrotcut not working
>>
>> Status in Cairo-Dock : Core:
>> Incomplete
>>
>> Bug description:
>> I don't really know how to describe the problem in english but just
>> see attached image. We see a part of the contextuel menu is not
>> showen. Normally the second menu will be showen in the left as
>> there's no space in the right. Thanks
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/cairo-dock-core/+bug/1303263/+subscriptions
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~cairo-dock-team
>> Post to : <email address hidden>
>> Unsubscribe : https://launchpad.net/~cairo-dock-team
>> More help : https://help.launchpad.net/ListHelp
>>
>
>

> The last one probably has to do with the way we build the submenus (we
> create the sub-menu and then fill it), so maybe we can try to workaround it
> (like forcing to reposition the menu, if that's possible),

But I think we already add a workaround for that. I think I added one line to force the reposition of the menu.

I did some test, and indeed, if we fill the sub-menu in 1 pass it works
correctly, but if we add items with a g_igle_add, then the placement and
size of he sub-menu are wrong.
so at least, we need a way to tell the menu it should reconfigure itself.

2014-05-18 23:32 GMT+02:00 Fabrice Rey <email address hidden>:

> more precisely, we fill the sub-menu when the main menu item is activated
>
>
> 2014-05-18 23:19 GMT+02:00 Fabrice Rey <email address hidden>:
>
> well, that's obviously not what you're expecting from a menu
>> and I don't think the user of the toolkit (= us) should care about where
>> the sub-menus will appear
>>
>> there are 2 bugs here: the sub-menus not being placed on the correct side
>> of the main menu (only the first time the sub-menu appears) and the
>> sub-menus not expanding vertically as they should.
>> The last one probably has to do with the way we build the submenus (we
>> create the sub-menu and then fill it), so maybe we can try to workaround it
>> (like forcing to reposition the menu, if that's possible), but the best
>> would be to report it to GTK devs
>>
>>
>> 2014-05-18 10:42 GMT+02:00 Matthieu Baerts <email address hidden>:
>>
>> @fabounet: so,.. for you this bug is due to GTK?
>>>
>>> --
>>> You received this bug notification because you are a member of Cairo-
>>> Dock Devs, which is subscribed to Cairo-Dock Core.
>>> https://bugs.launchpad.net/bugs/1303263
>>>
>>> Title:
>>> the home shrotcut not working
>>>
>>> Status in Cairo-Dock : Core:
>>> Incomplete
>>>
>>> Bug description:
>>> I don't really know how to describe the problem in english but just
>>> see attached image. We see a part of the contextuel menu is not
>>> showen. Normally the second menu will be showen in the left as
>>> there's no space in the right. Thanks
>>>
>>> To manage notifications about this bug go to:
>>> https://bugs.launchpad.net/cairo-dock-core/+bug/1303263/+subscriptions
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~cairo-dock-team
>>> Post to : <email address hidden>
>>> Unsubscribe : https://launchpad.net/~cairo-dock-team
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>
>>
>

Fabounet (fabounet03) wrote :

" But I think we already add a workaround for that. I think I added one
line to force the reposition of the menu."
yep, the "gtk_widget_realize", but it seems it's not enough
after some tests, using "gtk_widget_set_size_request (pItem->pSubMenu, -1,
-1);" instead seems to force the menu to re-compute its internal size.
let me know if it's better for you too :-)

2014-05-19 0:09 GMT+02:00 Matthieu Baerts <email address hidden>:

> ** Also affects: gtk+3.0 (Ubuntu)
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Devs, which is subscribed to Cairo-Dock Core.
> https://bugs.launchpad.net/bugs/1303263
>
> Title:
> the home shrotcut not working
>
> Status in Cairo-Dock : Core:
> Incomplete
> Status in “gtk+3.0” package in Ubuntu:
> New
>
> Bug description:
> I don't really know how to describe the problem in english but just
> see attached image. We see a part of the contextuel menu is not
> showen. Normally the second menu will be showen in the left as
> there's no space in the right. Thanks
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-core/+bug/1303263/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cairo-dock-team
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~cairo-dock-team
> More help : https://help.launchpad.net/ListHelp
>

> after some tests, using "gtk_widget_set_size_request (pItem->pSubMenu, -1,
> -1);" instead seems to force the menu to re-compute its internal size.

Yes, you're right, it seems better! :-)
Did you already commit this change (without a push)? Or I can do that if you want ;-)

I didn't push so don't restrain yourself :-)

2014-05-19 22:16 GMT+02:00 Matthieu Baerts <email address hidden>:

> > after some tests, using "gtk_widget_set_size_request (pItem->pSubMenu,
> -1,
> > -1);" instead seems to force the menu to re-compute its internal size.
>
> Yes, you're right, it seems better! :-)
> Did you already commit this change (without a push)? Or I can do that if
> you want ;-)
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Devs, which is subscribed to Cairo-Dock Core.
> https://bugs.launchpad.net/bugs/1303263
>
> Title:
> the home shrotcut not working
>
> Status in Cairo-Dock : Core:
> Incomplete
> Status in “gtk+3.0” package in Ubuntu:
> New
>
> Bug description:
> I don't really know how to describe the problem in english but just
> see attached image. We see a part of the contextuel menu is not
> showen. Normally the second menu will be showen in the left as
> there's no space in the right. Thanks
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-core/+bug/1303263/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cairo-dock-team
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~cairo-dock-team
> More help : https://help.launchpad.net/ListHelp
>

affects: cairo-dock-core → cairo-dock-plug-ins
Changed in cairo-dock-plug-ins:
status: Incomplete → Fix Committed
assignee: nobody → Fabounet (fabounet03)
milestone: none → 3.3.99.rc
summary: - the home shrotcut not working
+ QuickBrowser: GTK submenus are sometime out of the screen
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers