[xiphos-devel] gtk_widget_hide() isn't hiding

Karl Kleinpaste karl at kleinpaste.org
Mon Apr 16 16:47:14 MST 2018


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/xiphos-devel/attachments/20180416/c950c2dc/attachment.html>


More information about the xiphos-devel mailing list