mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
rendernode-tool: Hide window background when --undecorated
We want to only show the node, nothing else. So getting rid of as much CSS as possible is good.
This commit is contained in:
parent
ecc2e02453
commit
ead566b841
@ -89,6 +89,8 @@ show_file (const char *filename,
|
|||||||
window = gtk_window_new ();
|
window = gtk_window_new ();
|
||||||
gtk_window_set_decorated (GTK_WINDOW (window), decorated);
|
gtk_window_set_decorated (GTK_WINDOW (window), decorated);
|
||||||
gtk_window_set_resizable (GTK_WINDOW (window), decorated);
|
gtk_window_set_resizable (GTK_WINDOW (window), decorated);
|
||||||
|
if (!decorated)
|
||||||
|
gtk_widget_remove_css_class (window, "background");
|
||||||
set_window_title (GTK_WINDOW (window), filename);
|
set_window_title (GTK_WINDOW (window), filename);
|
||||||
gtk_window_set_child (GTK_WINDOW (window), handle);
|
gtk_window_set_child (GTK_WINDOW (window), handle);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user