[gtk-css-engine] [css2gtkrc] Need to call gtk_init() in main().
- From: Robert Staudinger <robsta src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk-css-engine] [css2gtkrc] Need to call gtk_init() in main().
- Date: Wed, 17 Jun 2009 12:35:21 -0400 (EDT)
commit 69e9bb5a6405ef437ee4de999f44dfc4af755294
Author: Robert Staudinger <robsta gnome org>
Date: Wed Jun 17 18:35:12 2009 +0200
[css2gtkrc] Need to call gtk_init() in main().
src/css2gtkrc.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/css2gtkrc.c b/src/css2gtkrc.c
index 07a6e81..2616162 100644
--- a/src/css2gtkrc.c
+++ b/src/css2gtkrc.c
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <ccss-gtk/ccss-gtk.h>
+#include <gtk/gtk.h>
#include "config.h"
int
@@ -39,6 +40,8 @@ main (int argc,
return EXIT_FAILURE;
}
+ gtk_init (&argc, &argv);
+
grammar = ccss_gtk_grammar_create ();
stylesheet = ccss_grammar_create_stylesheet_from_file (grammar, argv[1],
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]