[anjuta] glade: bgo#676811 - Fix check order of editor on member add



commit e3aab430a09f3d64b48b2f483f04482d3b431b2e
Author: Marco Diego AurÃlio Mesquita <marcodiegomesquita gmail com>
Date:   Thu May 31 21:23:51 2012 +0200

    glade: bgo#676811 - Fix check order of editor on member add

 plugins/glade/plugin.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/glade/plugin.c b/plugins/glade/plugin.c
index 89e11ab..d9164d1 100644
--- a/plugins/glade/plugin.c
+++ b/plugins/glade/plugin.c
@@ -401,12 +401,12 @@ add_glade_member (GladeWidget		 *widget,
 	if(!doc)
 		return;
 
-	current_editor = IANJUTA_EDITOR (doc);
-
-	if(!current_editor)
+	if (!IANJUTA_IS_EDITOR (doc))
 		return;
 
-    if (!IANJUTA_IS_EDITOR (doc))
+	current_editor = IANJUTA_EDITOR (doc);
+
+	if (!current_editor)
 		return;
 
 	g_signal_emit_by_name (G_OBJECT (current_editor), "glade-member-add",



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