summaryrefslogtreecommitdiff
path: root/src/themes/standard
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-26 01:03:35 +0200
committerinfirit <[email protected]>2015-07-28 12:44:04 +0200
commitc838100b0500e238a3310df40e8be95e1a0d708f (patch)
treec7ece29802a4a903972776f9419b9268bdb61164 /src/themes/standard
parent5719ca490a58c1f6084ecac38dd691dd0d85e6b7 (diff)
downloadmate-notification-daemon-c838100b0500e238a3310df40e8be95e1a0d708f.tar.bz2
mate-notification-daemon-c838100b0500e238a3310df40e8be95e1a0d708f.tar.xz
themes: Rename enable_transparency to composited
We really are checking if we have a compositer running so composited fits better.
Diffstat (limited to 'src/themes/standard')
-rw-r--r--src/themes/standard/theme.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c
index c7dea12..1b656cd 100644
--- a/src/themes/standard/theme.c
+++ b/src/themes/standard/theme.c
@@ -43,7 +43,7 @@ typedef struct {
GtkWidget* pie_countdown;
gboolean has_arrow;
- gboolean enable_transparency;
+ gboolean composited;
int point_x;
int point_y;
@@ -129,7 +129,7 @@ static void fill_background(GtkWidget* widget, WindowData* windata, cairo_t* cr)
style = gtk_widget_get_style(widget);
background_color = &style->base[GTK_STATE_NORMAL];
- if (windata->enable_transparency)
+ if (windata->composited)
{
cairo_set_source_rgba(cr, background_color->red / 65535.0, background_color->green / 65535.0, background_color->blue / 65535.0, BACKGROUND_OPACITY);
}
@@ -634,7 +634,7 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
win = gtk_window_new(GTK_WINDOW_POPUP);
windata->win = win;
- windata->enable_transparency = FALSE;
+ windata->composited = FALSE;
screen = gtk_window_get_screen(GTK_WINDOW(win));
@@ -648,7 +648,7 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
if (gdk_screen_is_composited(screen))
{
- windata->enable_transparency = TRUE;
+ windata->composited = TRUE;
}
}
#else
@@ -657,7 +657,7 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
if (colormap != NULL && gdk_screen_is_composited(screen))
{
gtk_widget_set_colormap(win, colormap);
- windata->enable_transparency = TRUE;
+ windata->composited = TRUE;
}
#endif