summaryrefslogtreecommitdiff
path: root/applets/clock
diff options
context:
space:
mode:
authorMartin Wimpress <[email protected]>2015-11-11 08:37:41 +0000
committerMartin Wimpress <[email protected]>2015-11-11 08:37:41 +0000
commit744b57ba60660031e1d605b9e8e3c11669960efe (patch)
tree7393d2705f40bf3d5f5bde981c011da8d43aae51 /applets/clock
parentfee1a7e8e3050c6a6bd6cabb0774122c552b2d85 (diff)
parent3575a71802f282b3bdc4246ae2214c7c94c6ec5a (diff)
downloadmate-panel-744b57ba60660031e1d605b9e8e3c11669960efe.tar.bz2
mate-panel-744b57ba60660031e1d605b9e8e3c11669960efe.tar.xz
Merge pull request #368 from raveit65/dev-ubuntu
clock applet: fix ubuntu ambiant-mate gtk2 theming
Diffstat (limited to 'applets/clock')
-rw-r--r--applets/clock/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index 2040e433..7e43aaf2 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -877,12 +877,12 @@ create_calendar (ClockData *cd)
G_CALLBACK (delete_event), cd->panel_button);
g_signal_connect (window, "key_press_event",
G_CALLBACK (close_on_escape), cd->panel_button);
-
+
+#if GTK_CHECK_VERSION (3, 0, 0)
/*Name this window so the default theme can be overridden in panel theme,
otherwise default GtkWindow bg will be pulled in and override transparency */
gtk_widget_set_name(window, "MatePanelPopupWindow");
-#if GTK_CHECK_VERSION (3, 0, 0)
/* Make transparency possible in the theme */
GdkScreen *screen = gtk_widget_get_screen(GTK_WIDGET(window));
GdkVisual *visual = gdk_screen_get_rgba_visual(screen);