/soc/2013/ankitkv/gobjectification: 8b4c6e5495e3: Removed an unn...

Ankit Vani a at nevitus.org
Fri Aug 2 07:20:28 EDT 2013


Changeset: 8b4c6e5495e3b5b10124b19c54a503931f6118ad
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-08-02 16:28 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/8b4c6e5495e3

Description:

Removed an unnecessary variable

diffstat:

 finch/gntplugin.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (29 lines):

diff --git a/finch/gntplugin.c b/finch/gntplugin.c
--- a/finch/gntplugin.c
+++ b/finch/gntplugin.c
@@ -248,7 +248,6 @@ configure_plugin_cb(GntWidget *button, g
 	GPluginPlugin *plugin;
 	PurplePluginInfo *info;
 	FinchPluginInfoPrivate *priv = NULL;
-	FinchPluginFrame callback;
 
 	g_return_if_fail(plugins.tree != NULL);
 
@@ -267,7 +266,7 @@ configure_plugin_cb(GntWidget *button, g
 	if (FINCH_IS_PLUGIN_INFO(info))
 		priv = FINCH_PLUGIN_INFO_GET_PRIVATE(info);
 
-	if (priv && (callback = priv->get_pref_frame) != NULL)
+	if (priv && priv->get_pref_frame != NULL)
 	{
 		GntWidget *window = gnt_vbox_new(FALSE);
 		GntWidget *box, *button;
@@ -277,7 +276,7 @@ configure_plugin_cb(GntWidget *button, g
 				gplugin_plugin_info_get_name(GPLUGIN_PLUGIN_INFO(info)));
 		gnt_box_set_alignment(GNT_BOX(window), GNT_ALIGN_MID);
 
-		box = callback();
+		box = priv->get_pref_frame();
 		gnt_box_add_widget(GNT_BOX(window), box);
 
 		box = gnt_hbox_new(FALSE);



More information about the Commits mailing list