gtk-css-engine r206 - in trunk: . src
- From: robsta svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk-css-engine r206 - in trunk: . src
- Date: Wed, 3 Dec 2008 16:40:40 +0000 (UTC)
Author: robsta
Date: Wed Dec 3 16:40:40 2008
New Revision: 206
URL: http://svn.gnome.org/viewvc/gtk-css-engine?rev=206&view=rev
Log:
* configure.in:
* src/gce-rc-style.c (parse):
Enable preview-mode through an environment variable instead of
at compile-time.
Modified:
trunk/ChangeLog
trunk/configure.in
trunk/src/gce-rc-style.c
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Wed Dec 3 16:40:40 2008
@@ -25,23 +25,6 @@
### Checks for configure arguments. ############################################
-AC_ARG_ENABLE([rapid-development],
- [AS_HELP_STRING([--enable-rapid-development], [feed back gtkrc settings generated from the stylesheet automatically. WARNING: this breaks theme switching.])],
-[
- case "$enableval" in
- yes ) ;;
- no ) ;;
- * ) enable_rapid_development="yes" ;;
- esac
-], [
- enable_rapid_development="no"
-])
-
-if test "$enable_rapid_development" == "yes"; then
- AC_DEFINE([GCE_RAPID_DEVELOPMENT], [1], [Feed back gtkrc settings generated from the stylesheet automatically. WARNING: this breaks theme switching.])
-fi
-
-
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug], [enable debug code])],
[
@@ -174,7 +157,5 @@
Build debugging code $enable_debug
Support for SVG images $with_rsvg (requires libccss with svg support)
Support for SVG fragments $with_soup (requires $soup_reqs)
-
-Rapid development $enable_rapid_development (WARNING: this breaks theme switching)
"
Modified: trunk/src/gce-rc-style.c
==============================================================================
--- trunk/src/gce-rc-style.c (original)
+++ trunk/src/gce-rc-style.c Wed Dec 3 16:40:40 2008
@@ -121,18 +121,15 @@
g_critical ("Could not add user-agent stylesheet `%s'",
GCE_UA_STYLESHEET);
}
-/* TODO
-#ifdef GCE_RAPID_DEVELOPMENT
- G_STMT_START{
- char *rc_string;
- rc_string = gce_serialize (stylesheet);
- if (rc_string) {
- gtk_rc_parse_string (rc_string);
- g_free (rc_string), rc_string = NULL;
+
+ if (g_getenv ("GCE_PREVIEW") != NULL) {
+ char *rc_string;
+ rc_string = gce_serialize (stylesheet);
+ if (rc_string) {
+ gtk_rc_parse_string (rc_string);
+ g_free (rc_string), rc_string = NULL;
+ }
}
- }G_STMT_END;
-#endif
-*/
}
g_scanner_get_next_token (scanner);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]