[metacity] frames: remove the destroy_event handler



commit 36d201f87c9b1f002722b30786e6e14318119a90
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Jan 19 11:19:57 2015 -0800

    frames: remove the destroy_event handler
    
    It does nothing.

 src/ui/frames.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index a645471..b78a615 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -57,8 +57,6 @@ static gboolean meta_frames_button_release_event  (GtkWidget           *widget,
                                                    GdkEventButton      *event);
 static gboolean meta_frames_motion_notify_event   (GtkWidget           *widget,
                                                    GdkEventMotion      *event);
-static gboolean meta_frames_destroy_event         (GtkWidget           *widget,
-                                                   GdkEventAny         *event);
 static gboolean meta_frames_draw                  (GtkWidget           *widget,
                                                    cairo_t             *cr);
 static gboolean meta_frames_enter_notify_event    (GtkWidget           *widget,
@@ -133,7 +131,6 @@ meta_frames_class_init (MetaFramesClass *frames_class)
   widget_class->style_updated = meta_frames_style_updated;
 
   widget_class->draw = meta_frames_draw;
-  widget_class->destroy_event = meta_frames_destroy_event;
   widget_class->button_press_event = meta_frames_button_press_event;
   widget_class->button_release_event = meta_frames_button_release_event;
   widget_class->motion_notify_event = meta_frames_motion_notify_event;
@@ -2105,22 +2102,6 @@ meta_frames_motion_notify_event     (GtkWidget           *widget,
   return TRUE;
 }
 
-static gboolean
-meta_frames_destroy_event           (GtkWidget           *widget,
-                                     GdkEventAny         *event)
-{
-  MetaUIFrame *frame;
-  MetaFrames *frames;
-
-  frames = META_FRAMES (widget);
-
-  frame = meta_frames_lookup_window (frames, GDK_WINDOW_XID (event->window));
-  if (frame == NULL)
-    return FALSE;
-
-  return TRUE;
-}
-
 static void
 setup_bg_cr (cairo_t *cr, GdkWindow *window, int x_offset, int y_offset)
 {


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