Example #1
0
            static WnckActiveWorkspaceMonitor()
            {
                active_workspace_changed_handler = new WnckActiveWorkspaceChangedHandler(OnActiveWorkspaceChanged);
                var screen = wnck_screen_get_default();

                wnck_screen_force_update(screen);
                g_signal_connect_data(screen, "active-workspace-changed",
                                      active_workspace_changed_handler, IntPtr.Zero, IntPtr.Zero, 0);
            }
 static WnckActiveWorkspaceMonitor ()
 {
     active_workspace_changed_handler = new WnckActiveWorkspaceChangedHandler (OnActiveWorkspaceChanged);
     var screen = wnck_screen_get_default ();
     wnck_screen_force_update (screen);
     g_signal_connect_data (screen, "active-workspace-changed",
         active_workspace_changed_handler, IntPtr.Zero, IntPtr.Zero, 0);
 }
 private static extern ulong g_signal_connect_data (IntPtr instance, string detailed_signal,
     WnckActiveWorkspaceChangedHandler c_handler, IntPtr user, IntPtr notify_closure, uint connect_flags);
Example #4
0
 private static extern ulong g_signal_connect_data(IntPtr instance, string detailed_signal,
                                                   WnckActiveWorkspaceChangedHandler c_handler, IntPtr user, IntPtr notify_closure, uint connect_flags);