Bug 1068953 - gtk3 regression in 3.11: menutoolbutton doesn't work?
Summary: gtk3 regression in 3.11: menutoolbutton doesn't work?
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gtk3
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-23 14:55 UTC by poma
Modified: 2014-04-15 22:38 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-02-26 17:33:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
ViMaMa debug log - Rawhide (23.53 KB, text/plain)
2014-02-25 14:01 UTC, poma
no flags Details
ViMaMa debug log - Fedora 20 - OK (22.71 KB, text/plain)
2014-02-25 14:03 UTC, poma
no flags Details
Virtual Machine Manager debug - Rawhide - GTK v3.11.8 (34.57 KB, text/plain)
2014-02-26 17:32 UTC, poma
no flags Details

Description poma 2014-02-23 14:55:25 UTC
'uihelpers.py'
"toolbar shutdown button menu" is disabled in the Rawhide edition of the 'Virtual Machine Manager'.
$ rpm -qf $(which virt-manager)
virt-manager-1.0.0-2.fc21.noarch

http://goo.gl/ddQgq2

In Humpty Dumpty aka F20 this menu is turned on and operational.

Comment 1 Cole Robinson 2014-02-25 00:45:02 UTC
Strange. Can you update f20 to virt-manager-1.0.0-2 from updates testing and confirm if the problem is present or not?

And please you post virt-manager --debug output when reproducing the issue

Comment 2 poma 2014-02-25 13:59:49 UTC
Fedora 20:
- Virtual Machine Manager 1.0.0-2
- GTK version: 3.10.6

Rawhide:
- Virtual Machine Manager 1.0.0-2
- GTK version: 3.11.7

All the same.
Perhaps an issue with a GTK?

Comment 3 poma 2014-02-25 14:01:54 UTC
Created attachment 867438 [details]
ViMaMa debug log - Rawhide

Comment 4 poma 2014-02-25 14:03:19 UTC
Created attachment 867439 [details]
ViMaMa debug log - Fedora 20 - OK

Comment 5 poma 2014-02-25 14:21:33 UTC
BTW this "Unity" thingy still appears, 
"ERROR (importer:51) Could not find any typelib for AppIndicator3"
Does anyone actually still uses 'lib*indicator*'?
We've already talked about that, 
http://thread.gmane.org/gmane.comp.emulators.virt-tools/6311

Comment 6 Cole Robinson 2014-02-25 22:47:19 UTC
Seems to be a gtk issue, this code works fine on f20 but the menu isn't accessible on rawhide

$ cat test.py 
from gi.repository import Gtk
import sys

def delete_cb(*args, **kwargs):
    Gtk.main_quit()
    sys.exit(1)

win = Gtk.Window()
win.connect("delete-event", delete_cb)

m = Gtk.Menu()
i2 = Gtk.MenuItem.new_with_label("bar")
i3 = Gtk.MenuItem.new_with_label("baz")
m.add(i2)
m.add(i3)
m.show_all()

i1 = Gtk.MenuToolButton()
i1.set_label("foo")
i1.set_is_important(True)
i1.set_menu(m)

toolbar = Gtk.Toolbar()
toolbar.add(i1)
win.add(toolbar)
win.show_all()

Gtk.main()

Comment 7 poma 2014-02-26 17:29:24 UTC
> TEST 1
gtk3-3.11.7 patched with
- menu button: avoid property order dependencies
- menu button: Fix property notification
- GtkModelButton: fix up naming
- Fix GtkMenuToolButton
https://git.gnome.org/browse/gtk+/log/gtk/gtkmenubutton.c
> PASSED

> TEST 2
# rpm -q gtk3
gtk3-3.11.8-1.fc21.x86_64
i.e. 
https://git.gnome.org/browse/gtk+/snapshot/gtk+-abe9ce45f382c2f10171973a6f2452bfec77fbc3.tar.gz
> PASSED

Comment 8 poma 2014-02-26 17:32:31 UTC
Created attachment 868118 [details]
Virtual Machine Manager debug - Rawhide - GTK v3.11.8


Note You need to log in before you can comment on or make changes to this bug.