summaryrefslogtreecommitdiff
path: root/src/ui/fixedtip.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-04-23 18:47:49 +0200
committerStefano Karapetsas <[email protected]>2014-04-23 18:47:49 +0200
commitfd2e0db8c8315fd8cecd45a422e9a8f161589841 (patch)
tree5b6d3f63b53ce91113269bb73da5861a05568d78 /src/ui/fixedtip.c
parentd07a3960e9b81aaf9864902e5398eadf801a531b (diff)
downloadmarco-fd2e0db8c8315fd8cecd45a422e9a8f161589841.tar.bz2
marco-fd2e0db8c8315fd8cecd45a422e9a8f161589841.tar.xz
GTK3 fixes
Diffstat (limited to 'src/ui/fixedtip.c')
-rw-r--r--src/ui/fixedtip.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/ui/fixedtip.c b/src/ui/fixedtip.c
index 3d9aea06..b06c9708 100644
--- a/src/ui/fixedtip.c
+++ b/src/ui/fixedtip.c
@@ -52,16 +52,19 @@ static int screen_bottom_edge = 0;
#if GTK_CHECK_VERSION(3, 0, 0)
-static gboolean
+static gint
draw_handler (GtkWidget *tooltips,
cairo_t *cr,
gpointer user_data)
{
- gtk_render_background (gtk_widget_get_style_context (tooltips),
- cr,
- 0, 0,
- gtk_widget_get_allocated_width (tooltips),
- gtk_widget_get_allocated_height (tooltips));
+ if (tooltips != NULL)
+ {
+ gtk_render_background (gtk_widget_get_style_context (tooltips),
+ cr,
+ 0, 0,
+ gtk_widget_get_allocated_width (tooltips),
+ gtk_widget_get_allocated_height (tooltips));
+ }
return FALSE;
}