[gtranslator] Use gtk_action_get_tooltip instead of the tooltip property.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtranslator] Use gtk_action_get_tooltip instead of the tooltip property.
- Date: Sun, 14 Feb 2010 20:36:19 +0000 (UTC)
commit c7c2fb61e42ec504ed6e851919d91a2b5dd2cbec
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Feb 14 21:35:59 2010 +0100
Use gtk_action_get_tooltip instead of the tooltip property.
src/gtr-window.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/gtr-window.c b/src/gtr-window.c
index db7c46d..41f07a4 100644
--- a/src/gtr-window.c
+++ b/src/gtr-window.c
@@ -1324,17 +1324,16 @@ static void
menu_item_select_cb (GtkMenuItem * proxy, GtrWindow * window)
{
GtkAction *action;
- char *message;
+ const gchar *message;
action = gtk_activatable_get_related_action (GTK_ACTIVATABLE (proxy));
g_return_if_fail (action != NULL);
- g_object_get (G_OBJECT (action), "tooltip", &message, NULL);
+ message = gtk_action_get_tooltip (action);
if (message)
{
- gtr_statusbar_push_default (GTR_STATUSBAR
- (window->priv->statusbar), message);
- g_free (message);
+ gtr_statusbar_push_default (GTR_STATUSBAR (window->priv->statusbar),
+ message);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]