summaryrefslogtreecommitdiff
path: root/src/frames.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-02-08 03:34:26 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-02-08 03:34:26 +0000
commitd91715dc8fa93ce5c4338836516d2b57e3d75261 (patch)
tree316bb4bec0a880141d06df81242ebded15239e04 /src/frames.c
parent090096b1e2a84e3155806d8d41207c62ea4375de (diff)
downloadmetacity-d91715dc8fa93ce5c4338836516d2b57e3d75261.tar.gz
metacity-d91715dc8fa93ce5c4338836516d2b57e3d75261.tar.bz2
Throughout: move to meta_topic rather than meta_verbose so metacity.log
2002-02-07 Havoc Pennington <hp@pobox.com> Throughout: move to meta_topic rather than meta_verbose so metacity.log can start being more useful * src/util.h (enum): add more debug topics * src/frames.c: clean up some cruft that caused warnings
Diffstat (limited to 'src/frames.c')
-rw-r--r--src/frames.c191
1 files changed, 2 insertions, 189 deletions
diff --git a/src/frames.c b/src/frames.c
index 990eb04..bd56408 100644
--- a/src/frames.c
+++ b/src/frames.c
@@ -48,30 +48,10 @@ static gboolean meta_frames_destroy_event (GtkWidget *widget,
GdkEventAny *event);
static gboolean meta_frames_expose_event (GtkWidget *widget,
GdkEventExpose *event);
-static gboolean meta_frames_key_press_event (GtkWidget *widget,
- GdkEventKey *event);
-static gboolean meta_frames_key_release_event (GtkWidget *widget,
- GdkEventKey *event);
static gboolean meta_frames_enter_notify_event (GtkWidget *widget,
GdkEventCrossing *event);
static gboolean meta_frames_leave_notify_event (GtkWidget *widget,
GdkEventCrossing *event);
-static gboolean meta_frames_configure_event (GtkWidget *widget,
- GdkEventConfigure *event);
-static gboolean meta_frames_focus_in_event (GtkWidget *widget,
- GdkEventFocus *event);
-static gboolean meta_frames_focus_out_event (GtkWidget *widget,
- GdkEventFocus *event);
-static gboolean meta_frames_map_event (GtkWidget *widget,
- GdkEventAny *event);
-static gboolean meta_frames_unmap_event (GtkWidget *widget,
- GdkEventAny *event);
-static gboolean meta_frames_property_notify_event (GtkWidget *widget,
- GdkEventProperty *event);
-static gboolean meta_frames_client_event (GtkWidget *widget,
- GdkEventClient *event);
-static gboolean meta_frames_window_state_event (GtkWidget *widget,
- GdkEventWindowState *event);
static void meta_frames_paint_to_drawable (MetaFrames *frames,
MetaUIFrame *frame,
@@ -94,14 +74,7 @@ static MetaFrameControl get_control (MetaFrames *frames,
int y);
static void clear_tip (MetaFrames *frames);
-enum
-{
- dummy, /* remove this when you add more signals */
- LAST_SIGNAL
-};
-
static GtkWidgetClass *parent_class = NULL;
-static guint signals[LAST_SIGNAL];
GtkType
meta_frames_get_type (void)
@@ -150,11 +123,11 @@ meta_frames_class_init (MetaFramesClass *class)
widget_class->unrealize = meta_frames_unrealize;
widget_class->expose_event = meta_frames_expose_event;
- widget_class->unmap_event = meta_frames_unmap_event;
- widget_class->destroy_event = meta_frames_destroy_event;
+ 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;
+ widget_class->enter_notify_event = meta_frames_enter_notify_event;
widget_class->leave_notify_event = meta_frames_leave_notify_event;
}
@@ -1253,38 +1226,6 @@ meta_frames_paint_to_drawable (MetaFrames *frames,
}
static gboolean
-meta_frames_key_press_event (GtkWidget *widget,
- GdkEventKey *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 gboolean
-meta_frames_key_release_event (GtkWidget *widget,
- GdkEventKey *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 gboolean
meta_frames_enter_notify_event (GtkWidget *widget,
GdkEventCrossing *event)
{
@@ -1322,134 +1263,6 @@ meta_frames_leave_notify_event (GtkWidget *widget,
return TRUE;
}
-static gboolean
-meta_frames_configure_event (GtkWidget *widget,
- GdkEventConfigure *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 gboolean
-meta_frames_focus_in_event (GtkWidget *widget,
- GdkEventFocus *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 gboolean
-meta_frames_focus_out_event (GtkWidget *widget,
- GdkEventFocus *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 gboolean
-meta_frames_map_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 gboolean
-meta_frames_unmap_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 gboolean
-meta_frames_property_notify_event (GtkWidget *widget,
- GdkEventProperty *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 gboolean
-meta_frames_client_event (GtkWidget *widget,
- GdkEventClient *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 gboolean
-meta_frames_window_state_event (GtkWidget *widget,
- GdkEventWindowState *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 GdkRectangle*
control_rect (MetaFrameControl control,
MetaFrameGeometry *fgeom)