gnome-system-monitor r2557 - trunk/src



Author: bdejean
Date: Sat Jan 24 10:52:59 2009
New Revision: 2557
URL: http://svn.gnome.org/viewvc/gnome-system-monitor?rev=2557&view=rev

Log:
Don't do bad things with GtkMenuItem.
Use gtk_widget_get_action instead.
Closes #568885.


Modified:
   trunk/src/interface.cpp

Modified: trunk/src/interface.cpp
==============================================================================
--- trunk/src/interface.cpp	(original)
+++ trunk/src/interface.cpp	Sat Jan 24 10:52:59 2009
@@ -553,7 +553,7 @@
 	GtkAction *action;
 	char *message;
 
-	action = static_cast<GtkAction*>(g_object_get_data (G_OBJECT (proxy),  "gtk-action"));
+	action = gtk_widget_get_action(GTK_WIDGET(proxy));
 	g_assert(action);
 
 	g_object_get (G_OBJECT (action), "tooltip", &message, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]