SF.net SVN: geany:[3330] trunk/src/toolbar.c

eht16 at users.sourceforge.net eht16 at xxxxx
Sat Dec 6 12:12:00 UTC 2008


Revision: 3330
          http://geany.svn.sourceforge.net/geany/?rev=3330&view=rev
Author:   eht16
Date:     2008-12-06 12:12:00 +0000 (Sat, 06 Dec 2008)

Log Message:
-----------
Don't print warnings when the user's toolbar UI definition just doesn't exist which is no error.

Modified Paths:
--------------
    trunk/src/toolbar.c

Modified: trunk/src/toolbar.c
===================================================================
--- trunk/src/toolbar.c	2008-12-06 11:45:48 UTC (rev 3329)
+++ trunk/src/toolbar.c	2008-12-06 12:12:00 UTC (rev 3330)
@@ -205,7 +205,8 @@
 	filename = utils_build_path(app->configdir, "ui_toolbar.xml", NULL);
 	if (! gtk_ui_manager_add_ui_from_file(uim, filename, &error))
 	{
-		geany_debug("Loading user toolbar UI definition failed (%s).", error->message);
+		if (error->code != G_FILE_ERROR_NOENT)
+			geany_debug("Loading user toolbar UI definition failed (%s).", error->message);
 		g_error_free(error);
 		error = NULL;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list