changeset 3242:82bb95e37069

remove obsolete mainwin_motion
author Tomasz Mon <desowin@gmail.com>
date Sat, 04 Aug 2007 13:16:19 +0200
parents 1c1a0bc666bd
children 5033f237f180
files src/audacious/ui_main.c
diffstat 1 files changed, 0 insertions(+), 37 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_main.c	Sat Aug 04 11:57:50 2007 +0200
+++ b/src/audacious/ui_main.c	Sat Aug 04 13:16:19 2007 +0200
@@ -857,41 +857,6 @@
     return FALSE;
 }
 
-static gboolean
-mainwin_motion(GtkWidget * widget,
-               GdkEventMotion * event,
-               gpointer callback_data)
-{
-    int x, y;
-    GdkModifierType state;
-
-    /* If it's a hint, we had to query X, so override the
-     * information we we're given... it's probably useless... --nenolod
-     */
-    if (event->is_hint != FALSE)
-    {
-        gdk_window_get_pointer(GDK_WINDOW(mainwin->window), &x, &y, &state);
-
-        event->x = x;
-        event->y = y;
-        event->state = state;
-    }
-    else
-    {
-        x = event->x;
-        y = event->y;
-        state = event->state;
-    }
-    if (cfg.doublesize) {
-        event->x /= 2;
-        event->y /= 2;
-    }
-
-    gdk_flush();
-
-    return FALSE;
-}
-
 void
 mainwin_scrolled(GtkWidget *widget, GdkEventScroll *event,
     gpointer callback_data)
@@ -2704,8 +2669,6 @@
                      G_CALLBACK(mainwin_scrolled), NULL);
     g_signal_connect(mainwin, "button_release_event",
                      G_CALLBACK(mainwin_mouse_button_release), NULL);
-    g_signal_connect(mainwin, "motion_notify_event",
-                     G_CALLBACK(mainwin_motion), NULL);
     g_signal_connect(mainwin, "configure_event",
                      G_CALLBACK(mainwin_configure), NULL);