summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-11-09 03:46:23 +0100
committerBenjamin Otte <otte@redhat.com>2011-11-09 03:46:23 +0100
commitd1d2d71159f3d00b9e634386eb5214b1cd7a0c6a (patch)
treefa311d86b0797cb10fa3f5af329ac5bba3ac8990 /demos
parent0333ed97fe01815559bbb882a4cc2696e255a804 (diff)
downloadgtk+-d1d2d71159f3d00b9e634386eb5214b1cd7a0c6a.tar.gz
demos: Remove non-working code
It causes warnings, so it has to go. The cursor doesn't change anyway, no matter if it's there or not.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/hypertext.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/demos/gtk-demo/hypertext.c b/demos/gtk-demo/hypertext.c
index 2e3b1873c6..1e7dd65933 100644
--- a/demos/gtk-demo/hypertext.c
+++ b/demos/gtk-demo/hypertext.c
@@ -228,27 +228,6 @@ motion_notify_event (GtkWidget *text_view,
return FALSE;
}
-/* Also update the cursor image if the window becomes visible
- * (e.g. when a window covering it got iconified).
- */
-static gboolean
-visibility_notify_event (GtkWidget *text_view,
- GdkEventVisibility *event)
-{
- gint wx, wy, bx, by;
-
- gdk_window_get_pointer (gtk_widget_get_window (text_view),
- &wx, &wy, NULL);
-
- gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (text_view),
- GTK_TEXT_WINDOW_WIDGET,
- wx, wy, &bx, &by);
-
- set_cursor_if_appropriate (GTK_TEXT_VIEW (text_view), bx, by);
-
- return FALSE;
-}
-
GtkWidget *
do_hypertext (GtkWidget *do_widget)
{
@@ -283,8 +262,6 @@ do_hypertext (GtkWidget *do_widget)
G_CALLBACK (event_after), NULL);
g_signal_connect (view, "motion-notify-event",
G_CALLBACK (motion_notify_event), NULL);
- g_signal_connect (view, "visibility-notify-event",
- G_CALLBACK (visibility_notify_event), NULL);
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));