[mutter/wayland] window: Remove vfunc slots for signals



commit cdfc6f5b5395aed53638dbc9f9cc6fbc7501d080
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Mar 18 11:21:02 2014 -0400

    window: Remove vfunc slots for signals
    
    These aren't used currently, and we're going to be adding
    more vfuncs.

 src/core/window-private.h |    5 -----
 src/core/window.c         |    8 ++++----
 2 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/src/core/window-private.h b/src/core/window-private.h
index e2eef0b..1924698 100644
--- a/src/core/window-private.h
+++ b/src/core/window-private.h
@@ -468,11 +468,6 @@ struct _MetaWindow
 struct _MetaWindowClass
 {
   GObjectClass parent_class;
-
-  void (*workspace_changed) (MetaWindow *window, int  old_workspace);
-  void (*focus)             (MetaWindow *window);
-  void (*raised)            (MetaWindow *window);
-  void (*unmanaged)         (MetaWindow *window);
 };
 
 /* These differ from window->has_foo_func in that they consider
diff --git a/src/core/window.c b/src/core/window.c
index 394703e..cb625c6 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -561,7 +561,7 @@ meta_window_class_init (MetaWindowClass *klass)
     g_signal_new ("workspace-changed",
                   G_TYPE_FROM_CLASS (object_class),
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (MetaWindowClass, workspace_changed),
+                  0,
                   NULL, NULL, NULL,
                   G_TYPE_NONE, 1,
                   G_TYPE_INT);
@@ -570,7 +570,7 @@ meta_window_class_init (MetaWindowClass *klass)
     g_signal_new ("focus",
                   G_TYPE_FROM_CLASS (object_class),
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (MetaWindowClass, focus),
+                  0,
                   NULL, NULL, NULL,
                   G_TYPE_NONE, 0);
 
@@ -578,7 +578,7 @@ meta_window_class_init (MetaWindowClass *klass)
     g_signal_new ("raised",
                   G_TYPE_FROM_CLASS (object_class),
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (MetaWindowClass, raised),
+                  0,
                   NULL, NULL, NULL,
                   G_TYPE_NONE, 0);
 
@@ -586,7 +586,7 @@ meta_window_class_init (MetaWindowClass *klass)
     g_signal_new ("unmanaged",
                   G_TYPE_FROM_CLASS (object_class),
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (MetaWindowClass, unmanaged),
+                  0,
                   NULL, NULL, NULL,
                   G_TYPE_NONE, 0);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]