gnome-scan r700 - in trunk: . modules/gsane
- From: bersace svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-scan r700 - in trunk: . modules/gsane
- Date: Mon, 15 Dec 2008 21:20:06 +0000 (UTC)
Author: bersace
Date: Mon Dec 15 21:20:06 2008
New Revision: 700
URL: http://svn.gnome.org/viewvc/gnome-scan?rev=700&view=rev
Log:
Added a warning for unhandled option.
Modified:
trunk/ChangeLog
trunk/modules/gsane/gsane-scanner.c
Modified: trunk/modules/gsane/gsane-scanner.c
==============================================================================
--- trunk/modules/gsane/gsane-scanner.c (original)
+++ trunk/modules/gsane/gsane-scanner.c Mon Dec 15 21:20:06 2008
@@ -89,8 +89,10 @@
/* retrieve handler type */
GSaneOptionManager* mngr = gsane_option_manager_new();
GType handler_type = gsane_option_manager_get_handler_type(mngr, desc);
- if (handler_type == G_TYPE_INVALID)
+ if (handler_type == G_TYPE_INVALID) {
+ g_warning("No handler for %s", desc->name);
return;
+ }
GSaneOptionHandlerClass* handler_class = g_type_class_ref(handler_type);
GSaneOptionHandler* handler = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]