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 May 25 09:11:48 2017  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: BugStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Sat May 27 12:14:48 2017, 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 Member
Thu May 25 09:11:48 2017, 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>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to 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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu May 25 09:12:10 2017thebeingSummaryNo menu bar in Gtk theme broken=>No in-window menu bar with the Gtk theme

    Back to the top


    Powered by Savane 3.1-cleanup1