[gtk+/rendering-cleanup: 52/55] API: Remove GdkNoExposeEvent
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 52/55] API: Remove GdkNoExposeEvent
- Date: Wed, 24 Nov 2010 17:46:24 +0000 (UTC)
commit fb95e0b4f53f5e23623424a82e78cb6427d1d063
Author: Benjamin Otte <otte redhat com>
Date: Wed Nov 24 14:46:49 2010 +0100
API: Remove GdkNoExposeEvent
It's not used by anyone and not supported by any backend but X11.
docs/reference/gdk/gdk3-sections.txt | 1 -
gdk/gdkevents.c | 2 --
gdk/gdkevents.h | 22 ----------------------
gdk/gdkwindow.c | 1 -
gdk/win32/gdkevents-win32.c | 1 -
gdk/x11/gdkdisplay-x11.c | 10 ----------
gtk/gtkmain.c | 1 -
gtk/gtkwidget.c | 30 ------------------------------
gtk/gtkwidget.h | 2 --
9 files changed, 0 insertions(+), 70 deletions(-)
---
diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt
index 37ea219..c14b966 100644
--- a/docs/reference/gdk/gdk3-sections.txt
+++ b/docs/reference/gdk/gdk3-sections.txt
@@ -861,7 +861,6 @@ GdkNativeWindow
GdkEventDND
GdkEventProximity
GdkEventClient
-GdkEventNoExpose
GdkEventWindowState
GdkEventSetting
GdkEventOwnerChange
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 7f8da51..5c09341 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -636,7 +636,6 @@ gdk_event_get_time (const GdkEvent *event)
return event->dnd.time;
case GDK_CLIENT_EVENT:
case GDK_VISIBILITY_NOTIFY:
- case GDK_NO_EXPOSE:
case GDK_CONFIGURE:
case GDK_FOCUS_CHANGE:
case GDK_NOTHING:
@@ -704,7 +703,6 @@ gdk_event_get_state (const GdkEvent *event,
return TRUE;
case GDK_VISIBILITY_NOTIFY:
case GDK_CLIENT_EVENT:
- case GDK_NO_EXPOSE:
case GDK_CONFIGURE:
case GDK_FOCUS_CHANGE:
case GDK_SELECTION_CLEAR:
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index caecd97..fcefc6c 100644
--- a/gdk/gdkevents.h
+++ b/gdk/gdkevents.h
@@ -77,7 +77,6 @@ G_BEGIN_DECLS
typedef struct _GdkEventAny GdkEventAny;
typedef struct _GdkEventExpose GdkEventExpose;
-typedef struct _GdkEventNoExpose GdkEventNoExpose;
typedef struct _GdkEventVisibility GdkEventVisibility;
typedef struct _GdkEventMotion GdkEventMotion;
typedef struct _GdkEventButton GdkEventButton;
@@ -205,8 +204,6 @@ typedef GdkFilterReturn (*GdkFilterFunc) (GdkXEvent *xevent,
* @GDK_DROP_FINISHED: the drop operation initiated by the window has completed.
* @GDK_CLIENT_EVENT: a message has been received from another application.
* @GDK_VISIBILITY_NOTIFY: the window visibility status has changed.
- * @GDK_NO_EXPOSE: indicates that the source region was completely available
- * when parts of a drawable were copied. This is not very useful.
* @GDK_SCROLL: the scroll wheel was turned
* @GDK_WINDOW_STATE: the state of a window has changed. See #GdkWindowState
* for the possible window states
@@ -258,7 +255,6 @@ typedef enum
GDK_DROP_FINISHED = 27,
GDK_CLIENT_EVENT = 28,
GDK_VISIBILITY_NOTIFY = 29,
- GDK_NO_EXPOSE = 30,
GDK_SCROLL = 31,
GDK_WINDOW_STATE = 32,
GDK_SETTING = 33,
@@ -466,23 +462,6 @@ struct _GdkEventExpose
};
/**
- * GdkEventNoExpose:
- * @type: the type of the event (%GDK_NO_EXPOSE).
- * @window: the window which received the event.
- * @send_event: %TRUE if the event was sent explicitly (e.g. using
- * <function>XSendEvent</function>).
- *
- * Generated when the area of a #GdkDrawable being copied was completely
- * available.
- */
-struct _GdkEventNoExpose
-{
- GdkEventType type;
- GdkWindow *window;
- gint8 send_event;
-};
-
-/**
* GdkEventVisibility:
* @type: the type of the event (%GDK_VISIBILITY_NOTIFY).
* @window: the window which received the event.
@@ -1064,7 +1043,6 @@ union _GdkEvent
GdkEventType type;
GdkEventAny any;
GdkEventExpose expose;
- GdkEventNoExpose no_expose;
GdkEventVisibility visibility;
GdkEventMotion motion;
GdkEventButton button;
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 2118f78..d0ab7c9 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -8323,7 +8323,6 @@ _gdk_make_event (GdkWindow *window,
case GDK_UNMAP:
case GDK_CLIENT_EVENT:
case GDK_VISIBILITY_NOTIFY:
- case GDK_NO_EXPOSE:
case GDK_DELETE:
case GDK_DESTROY:
case GDK_EXPOSE:
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index bea28a8..31b1dae 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -756,7 +756,6 @@ _gdk_win32_print_event (const GdkEvent *event)
CASE (GDK_DROP_FINISHED);
CASE (GDK_CLIENT_EVENT);
CASE (GDK_VISIBILITY_NOTIFY);
- CASE (GDK_NO_EXPOSE);
CASE (GDK_SCROLL);
CASE (GDK_WINDOW_STATE);
CASE (GDK_SETTING);
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index e800ca2..f2a9876 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -523,16 +523,6 @@ gdk_display_x11_translate_event (GdkEventTranslator *translator,
}
break;
- case NoExpose:
- GDK_NOTE (EVENTS,
- g_message ("no expose:\t\tdrawable: %ld",
- xevent->xnoexpose.drawable));
-
- event->no_expose.type = GDK_NO_EXPOSE;
- event->no_expose.window = window;
-
- break;
-
case VisibilityNotify:
#ifdef G_ENABLE_DEBUG
if (_gdk_debug_flags & GDK_DEBUG_EVENTS)
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 1ba0ae7..9af7503 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1667,7 +1667,6 @@ gtk_main_do_event (GdkEvent *event)
break;
case GDK_PROPERTY_NOTIFY:
- case GDK_NO_EXPOSE:
case GDK_FOCUS_CHANGE:
case GDK_CONFIGURE:
case GDK_MAP:
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index aca9989..e7312a0 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -422,7 +422,6 @@ enum {
PROXIMITY_IN_EVENT,
PROXIMITY_OUT_EVENT,
CLIENT_EVENT,
- NO_EXPOSE_EVENT,
VISIBILITY_NOTIFY_EVENT,
WINDOW_STATE_EVENT,
DAMAGE_EVENT,
@@ -865,8 +864,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
/* Accessibility support */
klass->get_accessible = gtk_widget_real_get_accessible;
- klass->no_expose_event = NULL;
-
klass->adjust_size_request = gtk_widget_real_adjust_size_request;
klass->adjust_size_allocation = gtk_widget_real_adjust_size_allocation;
@@ -2704,30 +2701,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GDK_TYPE_EVENT | G_SIGNAL_TYPE_STATIC_SCOPE);
/**
- * GtkWidget::no-expose-event:
- * @widget: the object which received the signal
- * @event: (type Gdk.EventNoExpose): the #GdkEventNoExpose which triggered
- * this signal.
- *
- * The ::no-expose-event will be emitted when the @widget's window is
- * drawn as a copy of another #GdkDrawable which was completely unobscured.
- * If the source window was partially obscured #GdkEventExpose events will
- * be generated for those areas.
- *
- * Returns: %TRUE to stop other handlers from being invoked for the event.
- * %FALSE to propagate the event further.
- */
- widget_signals[NO_EXPOSE_EVENT] =
- g_signal_new (I_("no-expose-event"),
- G_TYPE_FROM_CLASS (klass),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GtkWidgetClass, no_expose_event),
- _gtk_boolean_handled_accumulator, NULL,
- _gtk_marshal_BOOLEAN__BOXED,
- G_TYPE_BOOLEAN, 1,
- GDK_TYPE_EVENT | G_SIGNAL_TYPE_STATIC_SCOPE);
-
- /**
* GtkWidget::window-state-event:
* @widget: the object which received the signal
* @event: (type Gdk.EventWindowState): the #GdkEventWindowState which
@@ -5817,9 +5790,6 @@ gtk_widget_event_internal (GtkWidget *widget,
case GDK_PROXIMITY_OUT:
signal_num = PROXIMITY_OUT_EVENT;
break;
- case GDK_NO_EXPOSE:
- signal_num = NO_EXPOSE_EVENT;
- break;
case GDK_CLIENT_EVENT:
signal_num = CLIENT_EVENT;
break;
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 8a566df..034bcad 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -320,8 +320,6 @@ struct _GtkWidgetClass
GdkEventVisibility *event);
gboolean (* client_event) (GtkWidget *widget,
GdkEventClient *event);
- gboolean (* no_expose_event) (GtkWidget *widget,
- GdkEventAny *event);
gboolean (* window_state_event) (GtkWidget *widget,
GdkEventWindowState *event);
gboolean (* damage_event) (GtkWidget *widget,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]