From e2e5bb2d5dcb2004801ee9e666df0fd7425d2bdb Mon Sep 17 00:00:00 2001 From: infirit Date: Mon, 27 Jul 2015 21:07:53 +0200 Subject: Remove unnecessary eventbox from themes --- src/themes/nodoka/nodoka-theme.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/themes/nodoka') diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index f171cac..5025a9e 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -799,7 +799,6 @@ create_notification(UrlClickedCb url_clicked) { GtkWidget *spacer; GtkWidget *win; - GtkWidget *drawbox; GtkWidget *main_vbox; GtkWidget *hbox; GtkWidget *vbox; @@ -858,20 +857,9 @@ create_notification(UrlClickedCb url_clicked) g_signal_connect (G_OBJECT (win), "composited-changed", G_CALLBACK (on_composited_changed), windata); - /* - * For some reason, there are occasionally graphics glitches when - * repainting the window. Despite filling the window with a background - * color, parts of the other windows on the screen or the shadows around - * notifications will appear on the notification. Somehow, adding this - * eventbox makes that problem just go away. Whatever works for now. - */ - drawbox = gtk_event_box_new(); - gtk_widget_show(drawbox); - gtk_container_add(GTK_CONTAINER(win), drawbox); - main_vbox = gtk_vbox_new(FALSE, 0); gtk_widget_show(main_vbox); - gtk_container_add(GTK_CONTAINER(drawbox), main_vbox); + gtk_container_add(GTK_CONTAINER(win), main_vbox); gtk_container_set_border_width(GTK_CONTAINER(main_vbox), 1); #if GTK_CHECK_VERSION (3, 0, 0) -- cgit v1.2.1