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

Group
 
 

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

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

Add a New Comment Rich Markup
   

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>
Group Member
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>
Group Member
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.

Thanks!

Niels

Niels Grewe <thebeing>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    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.13-758e.
    Corresponding source code