mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
node-editor: Print default renderer in title
If there is a value passed to GSK_RENDERER, display it in the window title. This is mostly so that when I show off screenshots, people know what renderer I'm using.
This commit is contained in:
parent
830d28df90
commit
b902838344
@ -1309,6 +1309,13 @@ node_editor_window_init (NodeEditorWindow *self)
|
|||||||
" }\n"
|
" }\n"
|
||||||
" transform: translate(0, 140);\n"
|
" transform: translate(0, 140);\n"
|
||||||
"}", -1);
|
"}", -1);
|
||||||
|
|
||||||
|
if (g_getenv ("GSK_RENDERER"))
|
||||||
|
{
|
||||||
|
char *new_title = g_strdup_printf ("GTK Node Editor - %s", g_getenv ("GSK_RENDERER"));
|
||||||
|
gtk_window_set_title (GTK_WINDOW (self), new_title);
|
||||||
|
g_free (new_title);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NodeEditorWindow *
|
NodeEditorWindow *
|
||||||
|
Loading…
Reference in New Issue
Block a user