don't rely on GTK+ implementation details when getting a GtkAction. Thanks

2009-01-23  Cosimo Cecchi  <cosimoc@gnome.org>

	* src/nautilus-window-menus.c
	(menu_item_select_cb): don't rely on GTK+ implementation details
	when getting a GtkAction.
	Thanks to Christian Persch (#568880).

svn path=/trunk/; revision=14884
This commit is contained in:
Cosimo Cecchi 2009-01-23 20:26:23 +00:00 committed by Cosimo Cecchi
parent 71cd8add3f
commit 7df107e725
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2009-01-23 Cosimo Cecchi <cosimoc@gnome.org>
* src/nautilus-window-menus.c
(menu_item_select_cb): don't rely on GTK+ implementation details
when getting a GtkAction.
Thanks to Christian Persch (#568880).
2009-01-22 A. Walton <awalton@gnome.org>
* libnautilus-private/nautilus-file.c (nautilus_file_clear_info):

View file

@ -590,7 +590,7 @@ menu_item_select_cb (GtkMenuItem *proxy,
GtkAction *action;
char *message;
action = g_object_get_data (G_OBJECT (proxy), "gtk-action");
action = gtk_widget_get_action (GTK_WIDGET (proxy));
g_return_if_fail (action != NULL);
g_object_get (G_OBJECT (action), "tooltip", &message, NULL);