gtk-css-engine r153 - in trunk: . src
- From: robsta svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk-css-engine r153 - in trunk: . src
- Date: Thu, 2 Oct 2008 07:38:02 +0000 (UTC)
Author: robsta
Date: Thu Oct 2 07:38:02 2008
New Revision: 153
URL: http://svn.gnome.org/viewvc/gtk-css-engine?rev=153&view=rev
Log:
* configure.in:
* src/gce-rc-style.c:
Introduce `--enable-rapid-development' configure argument.
Modified:
trunk/ (props changed)
trunk/ChangeLog
trunk/configure.in
trunk/src/gce-rc-style.c
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Thu Oct 2 07:38:02 2008
@@ -42,6 +42,23 @@
### 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([libccss],
[AS_HELP_STRING([--enable-libccss], [build standalone libccss])],
[
@@ -74,6 +91,7 @@
fi
AM_CONDITIONAL([CCSS_DEBUG], test "$enable_debug" == "yes")
+
# So usually one just sets CFLAGS for this, but a configure
# arguments lets us force this when running `make distcheck'.
AC_ARG_ENABLE([werror],
@@ -221,10 +239,16 @@
echo "
Configuration
+-------------
+
+Libccss:
CFLAGS ${CFLAGS}
Build debugging code $enable_debug
Standalone libccss $enable_libccss
Support for SVG images $with_rsvg (requires librsvg)
WIP Support for SVG fragments $with_soup (requires libsoup)
+
+Theme engine:
+ 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 Thu Oct 2 07:38:02 2008
@@ -84,16 +84,13 @@
gce_file = gtk_rc_find_pixmap_in_path (gtk_settings_get_default (),
scanner, scanner->value.v_string);
_stylesheet = ccss_stylesheet_new_from_file (gce_file);
+#ifdef GCE_RAPID_DEVELOPMENT
rc_string = gce_serialize (_stylesheet);
-#ifdef DEBUG
- ccss_stylesheet_dump (_stylesheet);
- fprintf (stderr, "%s\n\n", rc_string);
-#endif
if (rc_string) {
gtk_rc_parse_string (rc_string);
g_free (rc_string), rc_string = NULL;
}
-
+#endif
_stylesheet_owner = (gpointer) rc_style;
g_free (gce_file), gce_file = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]