diff options
author | infirit <[email protected]> | 2015-07-26 01:03:35 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-07-28 12:44:04 +0200 |
commit | c838100b0500e238a3310df40e8be95e1a0d708f (patch) | |
tree | c7ece29802a4a903972776f9419b9268bdb61164 /src/themes/coco/coco-theme.c | |
parent | 5719ca490a58c1f6084ecac38dd691dd0d85e6b7 (diff) | |
download | mate-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/coco/coco-theme.c')
-rw-r--r-- | src/themes/coco/coco-theme.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index ef21e00..84f849c 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -45,7 +45,7 @@ typedef struct GtkWidget *stripe_spacer; GtkWidget *pie_countdown; - gboolean enable_transparency; + gboolean composited; int width; int height; @@ -124,7 +124,7 @@ static void fill_background(GtkWidget *widget, WindowData *windata, cairo_t *cr) { float alpha; - if (windata->enable_transparency) + if (windata->composited) alpha = BACKGROUND_OPACITY; else alpha = 1.0; @@ -353,7 +353,7 @@ create_notification(UrlClickedCb url_clicked) windata->win = win; windata->rtl = gtk_widget_get_default_direction(); - windata->enable_transparency = FALSE; + windata->composited = FALSE; screen = gtk_window_get_screen(GTK_WINDOW(win)); #if GTK_CHECK_VERSION(3, 0, 0) visual = gdk_screen_get_rgba_visual(screen); @@ -362,7 +362,7 @@ create_notification(UrlClickedCb url_clicked) { gtk_widget_set_visual(win, visual); if (gdk_screen_is_composited(screen)) - windata->enable_transparency = TRUE; + windata->composited = TRUE; } #else colormap = gdk_screen_get_rgba_colormap(screen); @@ -371,7 +371,7 @@ create_notification(UrlClickedCb url_clicked) { gtk_widget_set_colormap(win, colormap); if (gdk_screen_is_composited(screen)) - windata->enable_transparency = TRUE; + windata->composited = TRUE; } #endif |