[Frugalware-darcs] fw-control-center: gnetconfig: cleanups and suppressed some warnings.

Priyank priyank at frugalware.org
Sun Jun 10 08:52:34 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=fw-control-center;a=darcs_commitdiff;h=20070610065143-5ce2c-3f4738a853f63c57725391c7ec0b504e54601c21.gz;

[gnetconfig: cleanups and suppressed some warnings.
Priyank <priyank at frugalware.org>**20070610065143] {
hunk ./gnetconfig/src/gnetconfig-about.c 58
-	gtk_show_about_dialog (gn_main_window,
+	gtk_show_about_dialog (GTK_WINDOW(gn_main_window),
hunk ./gnetconfig/src/gnetconfig-new_profile.c 32
+static int gnetconfig_setup_new_profile (const char *profile);
+
hunk ./gnetconfig/src/gnetconfig-new_profile.c 59
-                                         gn_main_window,
+                                         GTK_WINDOW(gn_main_window),
hunk ./gnetconfig/src/gnetconfig-new_profile.c 85
-int
+static int
hunk ./gnetconfig/src/gnetconfig-new_profile.c 88
-	FILE		*fp = NULL;
hunk ./gnetconfig/src/gnetconfig-new_profile.c 112
-	return;
+	return 0;
hunk ./gnetconfig/src/gnetconfig-new_profile.c 135
+			g_free (filename);
hunk ./gnetconfig/src/gnetconfig-new_profile.c 139
-		// further processing
-		gnetconfig_setup_new_profile (pname);
+		/* further processing */
+		if (gnetconfig_setup_new_profile (pname))
+		{
+			gn_error ("Error setting up new profile", ERROR_GUI);
+			g_free (filename);
+			return;
+		}
}


More information about the Frugalware-darcs mailing list