bugGNUstep - Bugs: bug #51113, No in-window menu bar with the Gtk...


You are not allowed to post comments on this tracker with your current authentication level.

bug #51113: No in-window menu bar with the Gtk theme

Submitted by:  Niels Grewe <thebeing>
Submitted on:  Thu 25 May 2017 09:11:48 AM UTC  
Category:  Libraries Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  Fred Kiefer <FredKiefer>
Open/Closed:  Closed

Fri 04 Aug 2017 01:38:39 PM UTC, comment #2:

I just submitted the change I suggested below. Please test it and report back.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Sat 27 May 2017 12:14:48 PM UTC, comment #1:

That GTK link is of no use at all. After a few automatic redirects you end up on a page that is completely unrelated to the topic. Googling for GTK an reparent brings up this page: http://www.geany.org/manual/gtk/gtk-faq/x636.html

And searching the GTK theme code for gtk_container_add brings up two usages in setup_gtk_widget() in the file GGnomeThemeInitialization.m. As protoLayout gets created with this call
protoLayout = gtk_fixed_new();
it could be the GtkFixed in the error message. That could mean that GtkMenuBar is the widget passed into this function.
The only GtkMenuBar that gets created is on line 152 of that file
GtkWidget *gtkMenuBar = gtk_menu_bar_new();

and if you look closely this gets added twice, once on line 153 an also on line 175. Most likely one of this calls is superfluous , perhaps the first one?

This analysis was done without any "actual knowledge of gtk" so please verify it yourself.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Thu 25 May 2017 09:11:48 AM UTC, original submission:

I've just been playing around with the Gtk.theme (on an Ubuntu 17.04 installation with gtk 2.24.31) and it seems that it fails to render the in-window menu bar. There is the following warning printed from Gtk:

(Ink:28940): Gtk-WARNING **: Attempting to add a widget with type GtkMenuBar to a container of type GtkFixed, but the widget is already inside a container of type GtkFixed, the GTK+ FAQ at http://library.gnome.org/devel/gtk-faq/stable/ explains how to reparent a widget.

I think this would be for someone with some actual knowledge of gtk to look at.



Niels Grewe <thebeing>
Project Member


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by FredKiefer (Posted a comment)
  • -email is unavailable- added by thebeing (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-11-18 FredKiefer StatusReady For Test => Fixed
        Open/ClosedIn Test => Closed
    2017-08-04 FredKiefer StatusNone => Ready For Test
        Assigned toNone => FredKiefer
        Open/ClosedOpen => In Test
    2017-05-25 thebeing SummaryNo menu bar in Gtk theme broken => No in-window menu bar with the Gtk theme

    Back to the top

    Powered by Savane 3.3