From 61e4ffa783eb89e5d8b2545554dd4193b7c870f1 Mon Sep 17 00:00:00 2001 From: vlad Date: Wed, 11 Aug 2010 22:49:14 +0300 Subject: [PATCH] removed unusable --- xscreensaver/hacks/screenhack.c | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/xscreensaver/hacks/screenhack.c b/xscreensaver/hacks/screenhack.c index e6f0c41..6366745 100644 --- a/xscreensaver/hacks/screenhack.c +++ b/xscreensaver/hacks/screenhack.c @@ -634,15 +634,10 @@ run_screenhack_table (Display *dpy, else /* blocking read of the next available message */ dbus_connection_read_write(conn, 20000); - /*fprintf(stderr, "111111\n");*/ - /* msg = dbus_connection_borrow_message(conn); */ msg = dbus_connection_pop_message(conn); - /*fprintf(stderr, "2222222\n");*/ if (NULL == msg){ - - /*fprintf(stderr, "333333\n");*/ continue; } fprintf(stderr, "signal on view %i\n", view); @@ -651,7 +646,7 @@ run_screenhack_table (Display *dpy, (view == 2 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW2))|| (view == 3 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW3))|| (view == 4 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW4))){ - fprintf(stderr, "Pause scene visible %i\n", view); + /* fprintf(stderr, "Pause scene visible %i\n", view); */ pause = 1; dbus_message_unref (msg); continue; @@ -660,7 +655,7 @@ run_screenhack_table (Display *dpy, (view == 2 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW2))|| (view == 3 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW3))|| (view == 4 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW4))){ - fprintf(stderr, "Play scene visible %i\n", view); + /* fprintf(stderr, "Play scene visible %i\n", view); */ pause = 0; dbus_message_unref (msg); continue; @@ -698,27 +693,6 @@ run_screenhack_table (Display *dpy, } #endif dbus_message_unref (msg); - /* check this is a method call for the right interface & method */ - /* - if ((view == 1 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW1))|| - (view == 2 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW2))|| - (view == 3 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW3))|| - (view == 4 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PAUSE_LIVEBG_ON_VIEW4))){ - fprintf(stderr, "Pause scene visible %i\n", view); - pause = 1; - dbus_message_unref (msg); - continue; - } - if ((view == 1 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW1))|| - (view == 2 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW2))|| - (view == 3 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW3))|| - (view == 4 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_PLAY_LIVEBG_ON_VIEW4))){ - fprintf(stderr, "Play scene visible %i\n", view); - pause = 0; - dbus_message_unref (msg); - continue; - } -*/ } ft->free_cb (dpy, window, closure); -- 1.7.9.5