comparison finch/libgnt/gntutils.c @ 24558:e2e57d3c0578

Use glib log functions to show error messages.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 28 Nov 2008 06:29:37 +0000
parents 44b4e8bd759b
children 8981df90b64c
comparison
equal deleted inserted replaced
24557:7b27f7c41d85 24558:e2e57d3c0578
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
21 */ 21 */
22 22
23 #include "gntinternal.h"
24 #undef GNT_LOG_DOMAIN
25 #define GNT_LOG_DOMAIN "Utils"
26
23 #include "gntbutton.h" 27 #include "gntbutton.h"
24 #include "gntcheckbox.h" 28 #include "gntcheckbox.h"
25 #include "gntcombobox.h" 29 #include "gntcombobox.h"
26 #include "gntentry.h" 30 #include "gntentry.h"
27 #include "gntlabel.h" 31 #include "gntlabel.h"
304 } 308 }
305 309
306 xmlFree(content); 310 xmlFree(content);
307 311
308 if (widget == NULL) { 312 if (widget == NULL) {
309 g_printerr("Invalid widget name %s\n", name); 313 gnt_warning("Invalid widget name %s", name);
310 return NULL; 314 return NULL;
311 } 315 }
312 316
313 id = (char*)xmlGetProp(node, (xmlChar*)"id"); 317 id = (char*)xmlGetProp(node, (xmlChar*)"id");
314 if (id) { 318 if (id) {