Re: GTK tear-off menus are not working

36 views
Skip to first unread message

James Vega

unread,
Jul 20, 2010, 10:27:08 AM7/20/10
to Bram Moolenaar, vim...@googlegroups.com
On Tue, Jul 20, 2010 at 7:30 AM, Bram Moolenaar <Br...@moolenaar.net> wrote:
> I wonder if you noticed this problem: When I tear-off a menu in GTK, for
> example the Help menu, the buttons don't do anything.

Testing with a self-built 7.3b and Debian's latest Vim 7.2 packages,
tear-off menus work fine for me. I ran “gvim -u NONE -N”, detached both
the help menu and the file menu and was able to open files, open the
help, etc.

> I have the same problem in Vim 7.2 and 7.3b, it might have something to
> do with the GTK version.  I can't recall when it stopped working.

Which GTK version are you using? I have 2.20.1 here.

--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jame...@jamessan.com>

Yukihiro Nakadaira

unread,
Jul 20, 2010, 12:14:06 PM7/20/10
to vim...@googlegroups.com
On 2010年07月20日 20:30, Bram Moolenaar wrote:
>
> James -

>
> I wonder if you noticed this problem: When I tear-off a menu in GTK, for
> example the Help menu, the buttons don't do anything.
>
> I have the same problem in Vim 7.2 and 7.3b, it might have something to
> do with the GTK version. I can't recall when it stopped working.
>
> Can others reproduce this problem? Does someone know how to fix this?
>

Works with CentOS5.4 + gtk2.10.4 + vim73.

Not work with Ubuntu10.04 + gtk2.20.1-0ubuntu2 + vim73.
With other application "Dia", tear-off menu also don't work.

This issue is the same problem?
https://bugzilla.gnome.org/show_bug.cgi?id=620984

--
Yukihiro Nakadaira - yukihiro....@gmail.com

Bram Moolenaar

unread,
Jul 20, 2010, 12:49:35 PM7/20/10
to James Vega, vim...@googlegroups.com

James Vega wrote:

> On Tue, Jul 20, 2010 at 7:30 AM, Bram Moolenaar <Br...@moolenaar.net> wrote:
> > I wonder if you noticed this problem: When I tear-off a menu in GTK, for
> > example the Help menu, the buttons don't do anything.
>
> Testing with a self-built 7.3b and Debian's latest Vim 7.2 packages,

> tear-off menus work fine for me. I ran “gvim -u NONE
> -N†, detached both the help menu and the file menu and was


> able to open files, open the help, etc.
>
> > I have the same problem in Vim 7.2 and 7.3b, it might have something to

> > do with the GTK version. Â I can't recall when it stopped working.


>
> Which GTK version are you using? I have 2.20.1 here.

Same for me. I recently upgraded to Ubuntu 10.04.

So how can I debug this? The tear-off handling happens inside GTK, I
don't see any way to intercept events.

--
Did you ever stop to think... and forget to start again?
-- Steven Wright

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Bram Moolenaar

unread,
Jul 20, 2010, 2:12:44 PM7/20/10
to Yukihiro Nakadaira, vim...@googlegroups.com

Yukihiro Nakadaira wrote:

Yes, sounds like the same problem. OK, it's probably not a Vim issue
then.

--
Q: What do you call a fish without an eye?
A: fsh!
Q: What do you call a deer with no eyes?
A: no eye deer.
Q: What do you call a deer with no eyes and no legs?
A: still no eye deer.

Tony Mechelynck

unread,
Jul 20, 2010, 2:58:40 PM7/20/10
to vim...@googlegroups.com, Bram Moolenaar, James Vega
On 20/07/10 13:30, Bram Moolenaar wrote:
>
> James -
>
> I wonder if you noticed this problem: When I tear-off a menu in GTK, for
> example the Help menu, the buttons don't do anything.
>
> I have the same problem in Vim 7.2 and 7.3b, it might have something to
> do with the GTK version. I can't recall when it stopped working.
>
> Can others reproduce this problem? Does someone know how to fix this?
>

Works for me.
gvim 7.3b 496feb41b83f 2010-07-20 17:32:38 +0200 +gui_gtk2 +gui_gnome
openSUSE Linux 11.2
gtk2-2.18.6-0.1.3.i586


Best regards,
Tony.
--
Give me a Plumber's friend the size of the Pittsburgh dome, and a place
to stand, and I will drain the world.

Dennis Benzinger

unread,
Jul 20, 2010, 3:23:45 PM7/20/10
to vim...@googlegroups.com
Am 20.07.2010 13:30, schrieb Bram Moolenaar:
>
> James -
>
> I wonder if you noticed this problem: When I tear-off a menu in GTK, for
> example the Help menu, the buttons don't do anything.
>
> I have the same problem in Vim 7.2 and 7.3b, it might have something to
> do with the GTK version. I can't recall when it stopped working.
>
> Can others reproduce this problem? Does someone know how to fix this?
>

FWIW, I have the same problem with 7.2 and 7.3 on Ubuntu 10.04. But if I
tear off a menu with a submenu (e.g. the edit menu) then the menu items
in the submenu (e.g. turn off toolbar) work. If you tear off the submenu
itself (e.g. Global Settings) the menu items don't work.


Regards,
Dennis Benzinger

Niels Horn

unread,
Jul 27, 2010, 7:29:08 PM7/27/10
to vim...@googlegroups.com
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>

Not sure if this information is helpful, but as of gtk 2.20 the
tear-off function was declared "deprecated" (there was quite some
discussion about this).
If the gtk library was compiled with "#define GTK_DISABLE_DEPRECATED"
in your distro, it might simply be disabled.
My Slackware still uses the 2.18.9 version of gtk, so I can't check it
here (and the tear-off functions still work).

Niels

Reply all
Reply to author
Forward
0 new messages