Use the new GtkAction accessors instead of g_object_get()/set()

This commit is contained in:
Michael Natterer
2009-05-24 22:29:18 +02:00
parent be21d3a1e3
commit c9674b4603
12 changed files with 49 additions and 101 deletions

View File

@ -916,15 +916,10 @@ gimp_ui_manager_menu_item_select (GtkWidget *widget,
if (action)
{
gchar *tooltip;
g_object_get (action, "tooltip", &tooltip, NULL);
const gchar *tooltip = gtk_action_get_tooltip (action);
if (tooltip)
{
g_signal_emit (manager, manager_signals[SHOW_TOOLTIP], 0, tooltip);
g_free (tooltip);
}
g_signal_emit (manager, manager_signals[SHOW_TOOLTIP], 0, tooltip);
}
}