After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 515755 - show_grip and hide_grip doesn't work
show_grip and hide_grip doesn't work
Status: RESOLVED FIXED
Product: gdl
Classification: Other
Component: general
0.7.x
Other All
: Normal normal
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2008-02-11 12:40 UTC by Thomas D Ahle
Modified: 2013-04-13 11:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Show and hide grip manually (3.65 KB, patch)
2013-04-12 17:27 UTC, Dominique Lasserre
committed Details | Review

Description Thomas D Ahle 2008-02-11 12:40:22 UTC
Please describe the problem:
Only GDL_DOCK_ITEM_BEH_NO_GRIP has an effect, and only if it is set from the constructor.

That is, if a DockItem has been initialized without GDL_DOCK_ITEM_BEH_NO_GRIP there is no way to show it.

dockitem.hide_grip() gives Gdl-WARNING **: Grips always show unless
> GDL_DOCK_ITEM_BEH_NO_GRIP is set

dockitem.set_property("behavior", DOCK_ITEM_BEH_NO_GRIP) gives nothing.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Sébastien Granjoux 2012-07-30 19:27:09 UTC
Indeed, when looking at the code gdl_dock_item_hide_grip and gdl_dock_item_show_grip have no effect.

I think it is better to just remove these two functions. Is there someone using them?
Comment 2 Dominique Lasserre 2013-03-16 17:22:35 UTC
I'd like to use those functions in Valama (https://github.com/Valama/valama). Currently the workaround is to set behavior to NO_GRIP and hide all internal DockItem children.
Comment 3 Dominique Lasserre 2013-04-12 17:27:47 UTC
Created attachment 241375 [details] [review]
Show and hide grip manually

Attached patch will work for all my testcases.

Notes:
 * gdl_dock_item_grip_hide_handle always tries to hide grip (does not check for grip->priv->handle_shown) to make it work with layout loading.
 * I removed part to (un)set cursor for grip while showing/hiding. Grip widget is hidden/shown anyway.
 * I removed the gdl_dock_item_showhide_grip call from gdl_dock_item_set_focus_child body. When the child gets the focus the grip visibility state keeps the same. Or am I missing something?
 * If the item behaviour is locked or no_grip both functions (...show/hide_grip) doesn't have any effect.
Comment 4 Sébastien Granjoux 2013-04-13 11:59:27 UTC
Review of attachment 241375 [details] [review]:

Thank you for this patch. The code replaced looks better and I don't see any issue in Anjuta. The call of gdl_dock_item_showhide_grip in the set focus function has been added with the function in this commit 2ac4a8f96d3c6061b3c7c74d250f6b731949f966. It doesn't look useful so I think it's better to remove it and see if it creates an issue.

I will take a look a Valama but I think it would have been better to improve Vala support in Anjuta instead :).