epiphany r8599 - trunk/src



Author: xan
Date: Sun Oct 26 20:44:38 2008
New Revision: 8599
URL: http://svn.gnome.org/viewvc/epiphany?rev=8599&view=rev

Log:
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.

Modified:
   trunk/src/ephy-home-action.c

Modified: trunk/src/ephy-home-action.c
==============================================================================
--- trunk/src/ephy-home-action.c	(original)
+++ trunk/src/ephy-home-action.c	Sun Oct 26 20:44:38 2008
@@ -233,11 +233,11 @@
 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))
 	{



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