summaryrefslogtreecommitdiff
path: root/plugins/common/msd-osd-window.c
diff options
context:
space:
mode:
authorDenis Gorodnichev <[email protected]>2016-06-05 23:34:31 +0300
committerraveit65 <[email protected]>2016-06-07 16:03:38 +0200
commitbdb500291eb7fb5b2477a3fc6226b8c9017a172e (patch)
tree2b24c2a3179deb4ff28077367ab3bb026a332976 /plugins/common/msd-osd-window.c
parent77c8b292bcfc00f29f832d7fff0d9055638b5171 (diff)
downloadmate-settings-daemon-bdb500291eb7fb5b2477a3fc6226b8c9017a172e.tar.bz2
mate-settings-daemon-bdb500291eb7fb5b2477a3fc6226b8c9017a172e.tar.xz
gtk3: progressbar themed background
Diffstat (limited to 'plugins/common/msd-osd-window.c')
-rw-r--r--plugins/common/msd-osd-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/common/msd-osd-window.c b/plugins/common/msd-osd-window.c
index c902870..5564532 100644
--- a/plugins/common/msd-osd-window.c
+++ b/plugins/common/msd-osd-window.c
@@ -143,6 +143,7 @@ add_hide_timeout (MsdOsdWindow *window)
window);
}
+#if !GTK_CHECK_VERSION (3, 0, 0)
void
msd_osd_window_draw_rounded_rectangle (cairo_t* cr,
gdouble aspect,
@@ -195,7 +196,6 @@ msd_osd_window_draw_rounded_rectangle (cairo_t* cr,
cairo_close_path (cr);
}
-#if !GTK_CHECK_VERSION (3, 0, 0)
void
msd_osd_window_color_reverse (const GdkColor *a,
GdkColor *b)
@@ -294,6 +294,7 @@ expose_when_composited (GtkWidget *widget, GdkEventExpose *event)
#if GTK_CHECK_VERSION (3, 0, 0)
gtk_render_background (context, cr, 0, 0, width, height);
+ gtk_render_frame (context, cr, 0, 0, width, height);
#else
/* draw a box */
msd_osd_window_draw_rounded_rectangle (cr, 1.0, 0.5, 0.5, height / 10, width-1, height-1);