You are not logged in.

#1 2008-12-09 00:44:26

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

GTK 2 Mouseover

GTK 2 does not support mouse over visual change. For example, in windows or in QT, when you move your mouse over a menubar item, its visual appearance changes. But this is not possible in GTK2 I THINK. This is a major annoyance in GNOME apps. Will it be fixed in GTK 3?

Offline

#2 2008-12-09 00:52:29

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: GTK 2 Mouseover

1) What?  Major annoyance?
2) Yes, of course it supports it.

http://www.moeraki.com/pygtktutorial/py … tify-event

The "enter-notify-event" signal is emitted when the mouse pointer enters widget.

Most themes and all visual engines support this as well.  I'm not sure where you get that it doesn't.


Cthulhu For President!

Offline

#3 2008-12-09 01:03:14

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: GTK 2 Mouseover

buttons wrote:

1) What?  Major annoyance?
2) Yes, of course it supports it.

http://www.moeraki.com/pygtktutorial/py … tify-event

The "enter-notify-event" signal is emitted when the mouse pointer enters widget.

Most themes and all visual engines support this as well.  I'm not sure where you get that it doesn't.

Mouseover ANY menubar item (File, Edit, View, Tools, Help) in ANY GTK2 app and nothing will happen to that widget. No visual change. But if you mouse over a button, it will change visually.

Offline

#4 2008-12-09 03:14:35

The Orange Peanut
Member
Registered: 2008-01-06
Posts: 152

Re: GTK 2 Mouseover

Huh, I didn't even notice that til you brought it up.

Offline

#5 2008-12-09 03:29:59

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: GTK 2 Mouseover

Also mouse over the Gnome "Applications Places System" menu and nothing will happen.

Offline

#6 2008-12-09 04:03:49

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: GTK 2 Mouseover

Okay, I've just tried this, and it looks like you're mostly right.  The menubar itself is a widget, so I can do stupid things like make the entire bar light up when you mouse over it.  However, the menu items (File, etc) are actions (?).  At any rate, it doesn't seem like they're a widget you can easily modify.

I think it would be pretty useless even if it did, but that's neither here nor there.


Cthulhu For President!

Offline

#7 2008-12-09 04:06:10

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: GTK 2 Mouseover

So I hope GTK 3 will include this. This is one of the few things GTK is lacking.

Offline

Board footer

Powered by FluxBB