mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
gtk-demo: Move Theming to Theming/Style Classes
And make the title :: parsing work for nested titles too, so this works.
This commit is contained in:
parent
1d72682332
commit
5e7f8e4333
@ -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--;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* 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;
|
Loading…
Reference in New Issue
Block a user