diff --git a/src/ui/frames.c b/src/ui/frames.c index 990854411..ab37e6f5e 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -51,8 +51,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, @@ -121,7 +119,6 @@ meta_frames_class_init (MetaFramesClass *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; @@ -1379,23 +1376,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 cairo_region_t * get_visible_frame_border_region (MetaUIFrame *frame) {