how to determine if a widget has focus?

From: Date: Sun, 07 Aug 2005 05:35:31 +0000
Subject: how to determine if a widget has focus?
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6167@lists.php.net to get a copy of this message
Hi, I have a couple of widgets in my application and I want to find out which of them currently has focus using code. However not many of the properties that gtkwidgets should have according to http://developer.gnome.org/doc/API/gtk/gtkwidget.html seem to be visible in php-gtk, especially not a property called "has-focus" (or has_focus, hasfocus, focus .. nothing works). Then I found out about GtkWidgetFlags, GTK_HAS_FOCUS is indeed one of them. But - disappointment - there seems to be no way to get those flags. There is a GtkObject method calld flags(), but that returns the GtkObjektFlags not the GtkWidgetFlags. Does anyone know? Anthony

« previous php.gtk.general (#6167) next »