summaryrefslogtreecommitdiff
path: root/plugins/common
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/common')
-rw-r--r--plugins/common/msd-osd-window.c3
-rw-r--r--plugins/common/msd-osd-window.h2
2 files changed, 3 insertions, 2 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);
diff --git a/plugins/common/msd-osd-window.h b/plugins/common/msd-osd-window.h
index 52c464f..42229f4 100644
--- a/plugins/common/msd-osd-window.h
+++ b/plugins/common/msd-osd-window.h
@@ -84,6 +84,7 @@ gboolean msd_osd_window_is_composited (MsdOsdWindow *windo
gboolean msd_osd_window_is_valid (MsdOsdWindow *window);
void msd_osd_window_update_and_hide (MsdOsdWindow *window);
+#if !GTK_CHECK_VERSION (3, 0, 0)
void msd_osd_window_draw_rounded_rectangle (cairo_t *cr,
gdouble aspect,
gdouble x,
@@ -92,7 +93,6 @@ void msd_osd_window_draw_rounded_rectangle (cairo_t *cr,
gdouble width,
gdouble height);
-#if !GTK_CHECK_VERSION (3, 0, 0)
void msd_osd_window_color_reverse (const GdkColor *a,
GdkColor *b);
#endif