summaryrefslogtreecommitdiff
path: root/src/themes
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-27 21:07:53 +0200
committerinfirit <[email protected]>2015-07-28 20:02:12 +0200
commite2e5bb2d5dcb2004801ee9e666df0fd7425d2bdb (patch)
treed8f88e0d62fdd96924d5a1a2c93b608cf1101186 /src/themes
parent87b4de948de0ed02668cbd5fdabd39e94d34d3fb (diff)
downloadmate-notification-daemon-e2e5bb2d5dcb2004801ee9e666df0fd7425d2bdb.tar.bz2
mate-notification-daemon-e2e5bb2d5dcb2004801ee9e666df0fd7425d2bdb.tar.xz
Remove unnecessary eventbox from themes
Diffstat (limited to 'src/themes')
-rw-r--r--src/themes/coco/coco-theme.c14
-rw-r--r--src/themes/nodoka/nodoka-theme.c14
-rw-r--r--src/themes/standard/theme.c14
3 files changed, 3 insertions, 39 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c
index 805177e..ab817a4 100644
--- a/src/themes/coco/coco-theme.c
+++ b/src/themes/coco/coco-theme.c
@@ -446,7 +446,6 @@ GtkWindow *
create_notification(UrlClickedCb url_clicked)
{
GtkWidget *win;
- GtkWidget *drawbox;
GtkWidget *main_vbox;
GtkWidget *vbox;
GtkWidget *alignment;
@@ -501,20 +500,9 @@ create_notification(UrlClickedCb url_clicked)
g_signal_connect(G_OBJECT(win), "configure_event",
G_CALLBACK(configure_event_cb), 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);
#if GTK_CHECK_VERSION (3, 0, 0)
g_signal_connect (G_OBJECT (main_vbox), "draw",
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)
diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c
index 1b656cd..cc80a81 100644
--- a/src/themes/standard/theme.c
+++ b/src/themes/standard/theme.c
@@ -607,7 +607,6 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
{
GtkWidget* spacer;
GtkWidget* win;
- GtkWidget* drawbox;
GtkWidget* main_vbox;
GtkWidget* hbox;
GtkWidget* vbox;
@@ -672,20 +671,9 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
g_signal_connect(G_OBJECT(win), "configure_event", G_CALLBACK(configure_event_cb), 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)