[xiphos-devel] gtk_widget_hide() isn't hiding
Greg Hellings
greg.hellings at gmail.com
Mon Apr 16 17:33:37 MST 2018
And why aren't you just deleting it?
--Greg
On Mon, Apr 16, 2018 at 6:47 PM, Karl Kleinpaste <karl at kleinpaste.org>
wrote:
> How is it possible for this to fail to eliminate the "detach" entry from
> the main menu?
>
> widgets.attach_detach_item = UI_GET_ITEM(gxml,
> "attach_detach_sidebar");
> gtk_widget_hide(widgets.attach_detach_item);
>
> The function is called, the statements are executed, yet the menu entry
> persists.
>
> Alternatively, doing this in the UI files instead, why does this visible
> "False" not result in a hidden item?
>
> <child>
> <object class="GtkMenuItem" id="attach_detach_sidebar">
> <property name="visible">False</property>
> <property name="can_focus">False</property>
> <property name="label" translatable="yes">_Attach/Detach
> Sidebar</property>
> <property name="use_underline">True</property>
> <signal name="activate" handler="on_attach_detach_sidebar_activate"
> swapped="no"/>
> </object>
> </child>
>
> I just want the thing to go away. I don't care which mechanism is used.
> Neither one has the desired effect.
>
> _______________________________________________
> xiphos-devel mailing list
> xiphos-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/xiphos-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/xiphos-devel/attachments/20180416/37903790/attachment.html>
More information about the xiphos-devel
mailing list