gnome-bluetooth r574 - trunk/properties



Author: hadess
Date: Tue Apr  7 15:50:57 2009
New Revision: 574
URL: http://svn.gnome.org/viewvc/gnome-bluetooth?rev=574&view=rev

Log:
Fix checking the retval of gtk_builder calls


Modified:
   trunk/properties/adapter.c

Modified: trunk/properties/adapter.c
==============================================================================
--- trunk/properties/adapter.c	(original)
+++ trunk/properties/adapter.c	Tue Apr  7 15:50:57 2009
@@ -679,7 +679,7 @@
 	GtkBuilder *xml;
 
 	xml = gtk_builder_new ();
-	if (gtk_builder_add_from_file (xml, "properties-adapter-off.ui", NULL) > 0)
+	if (gtk_builder_add_from_file (xml, "properties-adapter-off.ui", NULL) == 0)
 		gtk_builder_add_from_file (xml, PKGDATADIR "properties-adapter-off.ui", NULL);
 	vbox = GTK_WIDGET (gtk_builder_get_object (xml, "table1"));
 
@@ -709,7 +709,7 @@
 	GtkBuilder *xml;
 
 	xml = gtk_builder_new ();
-	if (gtk_builder_add_from_file (xml, "properties-no-adapter.ui", NULL) > 0)
+	if (gtk_builder_add_from_file (xml, "properties-no-adapter.ui", NULL) == 0)
 		gtk_builder_add_from_file (xml, PKGDATADIR "properties-no-adapter.ui", NULL);
 	vbox = GTK_WIDGET (gtk_builder_get_object (xml, "table1"));
 



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