Only in clearlooks.org: Makefile.am Only in clearlooks: Makefile.in diff -ur clearlooks.org/src/clearlooks_rc_style.c clearlooks/src/clearlooks_rc_style.c --- clearlooks.org/src/clearlooks_rc_style.c 2005-09-08 21:45:27.000000000 +0200 +++ clearlooks/src/clearlooks_rc_style.c 2005-11-13 18:10:34.000000000 +0100 @@ -19,6 +19,7 @@ * Written by Owen Taylor * and by Alexander Larsson * Modified by Richard Stellingwerff + * Modified by Kulyk Nazar */ #include "clearlooks_style.h" @@ -46,7 +47,11 @@ TOKEN_PROGRESSBARSTYLE, TOKEN_MENUBARSTYLE, TOKEN_MENUITEMSTYLE, - TOKEN_LISTVIEWITEMSTYLE + TOKEN_LISTVIEWITEMSTYLE, + TOKEN_ANIMATION, + + TOKEN_TRUE, + TOKEN_FALSE }; static struct @@ -62,7 +67,11 @@ { "progressbarstyle", TOKEN_PROGRESSBARSTYLE }, { "menubarstyle", TOKEN_MENUBARSTYLE }, { "menuitemstyle", TOKEN_MENUITEMSTYLE }, - { "listviewitemstyle", TOKEN_LISTVIEWITEMSTYLE } + { "listviewitemstyle", TOKEN_LISTVIEWITEMSTYLE }, + { "animation", TOKEN_ANIMATION }, + + { "TRUE", TOKEN_TRUE }, + { "FALSE", TOKEN_FALSE } }; @@ -99,6 +108,7 @@ clearlooks_rc->menubarstyle = 0; clearlooks_rc->menuitemstyle = 1; clearlooks_rc->listviewitemstyle = 1; + clearlooks_rc->animation = FALSE; } static void @@ -114,6 +124,29 @@ } static guint +theme_parse_boolean(GtkSettings *settings, + GScanner *scanner, + gboolean *retval) +{ + guint token; + token = g_scanner_get_next_token(scanner); + + token = g_scanner_get_next_token(scanner); + if (token != G_TOKEN_EQUAL_SIGN) + return G_TOKEN_EQUAL_SIGN; + + token = g_scanner_get_next_token(scanner); + if (token == TOKEN_TRUE) + *retval = TRUE; + else if (token == TOKEN_FALSE) + *retval = FALSE; + else + return TOKEN_TRUE; + + return G_TOKEN_NONE; +} + +static guint theme_parse_color(GtkSettings *settings, GScanner *scanner, GdkColor *color) @@ -243,6 +276,9 @@ case TOKEN_LISTVIEWITEMSTYLE: token = theme_parse_int (settings, scanner, &clearlooks_style->listviewitemstyle); break; + case TOKEN_ANIMATION: + token = theme_parse_boolean (settings, scanner, &clearlooks_style->animation); + break; default: g_scanner_get_next_token(scanner); token = G_TOKEN_RIGHT_CURLY; @@ -288,6 +324,9 @@ dest_w->has_scrollbar_color = TRUE; dest_w->scrollbar_color = src_w->scrollbar_color; } + + dest_w->animation = src_w->animation; + } diff -ur clearlooks.org/src/clearlooks_rc_style.h clearlooks/src/clearlooks_rc_style.h --- clearlooks.org/src/clearlooks_rc_style.h 2005-09-08 21:45:27.000000000 +0200 +++ clearlooks/src/clearlooks_rc_style.h 2005-11-13 18:12:55.000000000 +0100 @@ -19,6 +19,7 @@ * Written by Owen Taylor * and by Alexander Larsson * Modified by Richard Stellingwerff + * Modified by Kulyk Nazar */ #include @@ -48,6 +49,7 @@ guint8 menuitemstyle; guint8 listviewitemstyle; guint8 scrollbarstyle; + gboolean animation; }; struct _ClearlooksRcStyleClass