Commit 5e7f8e43 authored by Matthias Clasen's avatar Matthias Clasen

gtk-demo: Move Theming to Theming/Style Classes

And make the title :: parsing work for nested titles too,
so this works.
parent 1d726823
......@@ -43,7 +43,7 @@ demos = \
stock_browser.c \
textview.c \
textscroll.c \
theming.c \
theming_style_classes.c \
toolpalette.c \
transparent.c \
tree_store.c \
......
......@@ -623,12 +623,18 @@ load_file (const gchar *filename)
while (*p == '/' || *p == '*' || g_ascii_isspace (*p))
p++;
r = p;
while (*r != '/' && *r != ':' && *r != '\0')
r++;
if (*r == '/')
p = r + 1;
if (r[0] == ':' && r[1] == ':')
*r = '\0';
while (*r != '\0')
{
while (*r != '/' && *r != ':' && *r != '\0')
r++;
if (*r == '/')
{
r++;
p = r;
}
if (r[0] == ':' && r[1] == ':')
*r = '\0';
}
q = p + strlen (p);
while (q > p && g_ascii_isspace (*(q - 1)))
q--;
......
/* Theming :: theming.ui
/* Theming/Style Classes :: theming.ui
*
* GTK+ uses CSS for theming. Style classes can be associated
* with widgets to inform the theme about intended rendering.
......@@ -14,7 +14,7 @@
static GtkWidget *window = NULL;
GtkWidget *
do_theming (GtkWidget *do_widget)
do_theming_style_classes (GtkWidget *do_widget)
{
GtkWidget *grid;
GtkBuilder *builder;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment