forked from AuroraMiddleware/gtk
gtk-demo: Remove unneeded code
Overlays are transparent by default, no need to override them to be.
This commit is contained in:
parent
2fbc77fce1
commit
40e0973709
@ -190,7 +190,6 @@ do_transparent (GtkWidget *do_widget)
|
||||
GtkWidget *sw;
|
||||
GtkWidget *overlay;
|
||||
GtkWidget *entry;
|
||||
GdkRGBA transparent = {0, 0, 0, 0};
|
||||
GtkCssProvider *provider;
|
||||
gchar *css;
|
||||
|
||||
@ -218,8 +217,6 @@ do_transparent (GtkWidget *do_widget)
|
||||
gtk_container_add (GTK_CONTAINER (overlay), sw);
|
||||
gtk_container_add (GTK_CONTAINER (window), overlay);
|
||||
|
||||
gtk_widget_override_background_color (overlay, 0, &transparent);
|
||||
|
||||
entry = gtk_entry_new ();
|
||||
provider = gtk_css_provider_new ();
|
||||
css = g_strdup_printf ("* { border-width: 0px %dpx %dpx 0px; }",
|
||||
|
Loading…
Reference in New Issue
Block a user