aboutsummaryrefslogtreecommitdiff
path: root/src/slideshow.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-05-29 17:38:51 +0200
committerThomas White <taw@bitwiz.org.uk>2011-05-29 17:38:51 +0200
commite429ea1b576e7e660bf9bf97c856fecdef59dfac (patch)
tree9479681669ef39b0ee7c4168774e4597468bbe8b /src/slideshow.c
parent6e8575670fd9f5ab9fb9163a572df59aea7d05aa (diff)
Blank cursor during presentation
Diffstat (limited to 'src/slideshow.c')
-rw-r--r--src/slideshow.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index 00b7dd7..e18b1fa 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -39,6 +39,7 @@
static gint ss_destroy_sig(GtkWidget *widget, struct presentation *p)
{
p->slideshow = NULL;
+ gdk_cursor_unref(p->blank_cursor);
return FALSE;
}
@@ -132,6 +133,15 @@ static gboolean ss_key_press_sig(GtkWidget *da, GdkEventKey *event,
}
+static gboolean ss_realize_sig(GtkWidget *w, struct presentation *p)
+{
+ p->blank_cursor = gdk_cursor_new(GDK_BLANK_CURSOR);
+ gdk_window_set_cursor(GDK_WINDOW(p->slideshow->window),
+ p->blank_cursor);
+ return FALSE;
+}
+
+
void try_start_slideshow(struct presentation *p)
{
GtkWidget *n;
@@ -153,6 +163,7 @@ void try_start_slideshow(struct presentation *p)
g_signal_connect(G_OBJECT(p->ss_drawingarea), "expose-event",
G_CALLBACK(ss_expose_sig), p);
g_signal_connect(G_OBJECT(n), "destroy", G_CALLBACK(ss_destroy_sig), p);
+ g_signal_connect(G_OBJECT(n), "realize", G_CALLBACK(ss_realize_sig), p);
gtk_widget_grab_focus(GTK_WIDGET(p->ss_drawingarea));