diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-10-27 04:44:38 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-10-27 04:44:38 +0800 |
commit | 916866e835d18b79def26e533104205e931b644c (patch) | |
tree | 49504698cf19d9fd7c9b818fb7ef8fbf5246876b /src/ephy-home-action.c | |
parent | 961e60405b4c55c85a462c527cf895dc5e143ee6 (diff) | |
download | gsoc2013-epiphany-916866e835d18b79def26e533104205e931b644c.tar gsoc2013-epiphany-916866e835d18b79def26e533104205e931b644c.tar.gz gsoc2013-epiphany-916866e835d18b79def26e533104205e931b644c.tar.bz2 gsoc2013-epiphany-916866e835d18b79def26e533104205e931b644c.tar.lz gsoc2013-epiphany-916866e835d18b79def26e533104205e931b644c.tar.xz gsoc2013-epiphany-916866e835d18b79def26e533104205e931b644c.tar.zst gsoc2013-epiphany-916866e835d18b79def26e533104205e931b644c.zip |
ephy-home-action: plug leak.
Use gtk_action_get_name instead of g_object_get to get the action name
so the string isn't duped.
svn path=/trunk/; revision=8599
Diffstat (limited to 'src/ephy-home-action.c')
-rw-r--r-- | src/ephy-home-action.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ephy-home-action.c b/src/ephy-home-action.c index ed1a15706..8d3130142 100644 --- a/src/ephy-home-action.c +++ b/src/ephy-home-action.c @@ -233,11 +233,11 @@ static void connect_proxy (GtkAction *action, GtkWidget *proxy) { - gchar *action_name; + const gchar *action_name; GTK_ACTION_CLASS (ephy_home_action_parent_class)->connect_proxy (action, proxy); - g_object_get (action, "name", &action_name, NULL); + action_name = gtk_action_get_name (action); if (GTK_IS_TOOL_ITEM (proxy) && (strcmp (action_name, "GoHome") != 0)) { |