Commit 3494f87a authored by Benjamin Otte's avatar Benjamin Otte

API: Remove GdkNoExposeEvent

It's not used by anyone and not supported by any backend but X11.
parent 98838df2
...@@ -861,7 +861,6 @@ GdkNativeWindow ...@@ -861,7 +861,6 @@ GdkNativeWindow
GdkEventDND GdkEventDND
GdkEventProximity GdkEventProximity
GdkEventClient GdkEventClient
GdkEventNoExpose
GdkEventWindowState GdkEventWindowState
GdkEventSetting GdkEventSetting
GdkEventOwnerChange GdkEventOwnerChange
......
...@@ -636,7 +636,6 @@ gdk_event_get_time (const GdkEvent *event) ...@@ -636,7 +636,6 @@ gdk_event_get_time (const GdkEvent *event)
return event->dnd.time; return event->dnd.time;
case GDK_CLIENT_EVENT: case GDK_CLIENT_EVENT:
case GDK_VISIBILITY_NOTIFY: case GDK_VISIBILITY_NOTIFY:
case GDK_NO_EXPOSE:
case GDK_CONFIGURE: case GDK_CONFIGURE:
case GDK_FOCUS_CHANGE: case GDK_FOCUS_CHANGE:
case GDK_NOTHING: case GDK_NOTHING:
...@@ -704,7 +703,6 @@ gdk_event_get_state (const GdkEvent *event, ...@@ -704,7 +703,6 @@ gdk_event_get_state (const GdkEvent *event,
return TRUE; return TRUE;
case GDK_VISIBILITY_NOTIFY: case GDK_VISIBILITY_NOTIFY:
case GDK_CLIENT_EVENT: case GDK_CLIENT_EVENT:
case GDK_NO_EXPOSE:
case GDK_CONFIGURE: case GDK_CONFIGURE:
case GDK_FOCUS_CHANGE: case GDK_FOCUS_CHANGE:
case GDK_SELECTION_CLEAR: case GDK_SELECTION_CLEAR:
......
...@@ -77,7 +77,6 @@ G_BEGIN_DECLS ...@@ -77,7 +77,6 @@ G_BEGIN_DECLS
typedef struct _GdkEventAny GdkEventAny; typedef struct _GdkEventAny GdkEventAny;
typedef struct _GdkEventExpose GdkEventExpose; typedef struct _GdkEventExpose GdkEventExpose;
typedef struct _GdkEventNoExpose GdkEventNoExpose;
typedef struct _GdkEventVisibility GdkEventVisibility; typedef struct _GdkEventVisibility GdkEventVisibility;
typedef struct _GdkEventMotion GdkEventMotion; typedef struct _GdkEventMotion GdkEventMotion;
typedef struct _GdkEventButton GdkEventButton; typedef struct _GdkEventButton GdkEventButton;
...@@ -205,8 +204,6 @@ typedef GdkFilterReturn (*GdkFilterFunc) (GdkXEvent *xevent, ...@@ -205,8 +204,6 @@ typedef GdkFilterReturn (*GdkFilterFunc) (GdkXEvent *xevent,
* @GDK_DROP_FINISHED: the drop operation initiated by the window has completed. * @GDK_DROP_FINISHED: the drop operation initiated by the window has completed.
* @GDK_CLIENT_EVENT: a message has been received from another application. * @GDK_CLIENT_EVENT: a message has been received from another application.
* @GDK_VISIBILITY_NOTIFY: the window visibility status has changed. * @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_SCROLL: the scroll wheel was turned
* @GDK_WINDOW_STATE: the state of a window has changed. See #GdkWindowState * @GDK_WINDOW_STATE: the state of a window has changed. See #GdkWindowState
* for the possible window states * for the possible window states
...@@ -258,7 +255,6 @@ typedef enum ...@@ -258,7 +255,6 @@ typedef enum
GDK_DROP_FINISHED = 27, GDK_DROP_FINISHED = 27,
GDK_CLIENT_EVENT = 28, GDK_CLIENT_EVENT = 28,
GDK_VISIBILITY_NOTIFY = 29, GDK_VISIBILITY_NOTIFY = 29,
GDK_NO_EXPOSE = 30,
GDK_SCROLL = 31, GDK_SCROLL = 31,
GDK_WINDOW_STATE = 32, GDK_WINDOW_STATE = 32,
GDK_SETTING = 33, GDK_SETTING = 33,
...@@ -465,23 +461,6 @@ struct _GdkEventExpose ...@@ -465,23 +461,6 @@ struct _GdkEventExpose
gint count; /* If non-zero, how many more events follow. */ gint count; /* If non-zero, how many more events follow. */
}; };
/**
* 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: * GdkEventVisibility:
* @type: the type of the event (%GDK_VISIBILITY_NOTIFY). * @type: the type of the event (%GDK_VISIBILITY_NOTIFY).
...@@ -1064,7 +1043,6 @@ union _GdkEvent ...@@ -1064,7 +1043,6 @@ union _GdkEvent
GdkEventType type; GdkEventType type;
GdkEventAny any; GdkEventAny any;
GdkEventExpose expose; GdkEventExpose expose;
GdkEventNoExpose no_expose;
GdkEventVisibility visibility; GdkEventVisibility visibility;
GdkEventMotion motion; GdkEventMotion motion;
GdkEventButton button; GdkEventButton button;
......
...@@ -8323,7 +8323,6 @@ _gdk_make_event (GdkWindow *window, ...@@ -8323,7 +8323,6 @@ _gdk_make_event (GdkWindow *window,
case GDK_UNMAP: case GDK_UNMAP:
case GDK_CLIENT_EVENT: case GDK_CLIENT_EVENT:
case GDK_VISIBILITY_NOTIFY: case GDK_VISIBILITY_NOTIFY:
case GDK_NO_EXPOSE:
case GDK_DELETE: case GDK_DELETE:
case GDK_DESTROY: case GDK_DESTROY:
case GDK_EXPOSE: case GDK_EXPOSE:
......
...@@ -756,7 +756,6 @@ _gdk_win32_print_event (const GdkEvent *event) ...@@ -756,7 +756,6 @@ _gdk_win32_print_event (const GdkEvent *event)
CASE (GDK_DROP_FINISHED); CASE (GDK_DROP_FINISHED);
CASE (GDK_CLIENT_EVENT); CASE (GDK_CLIENT_EVENT);
CASE (GDK_VISIBILITY_NOTIFY); CASE (GDK_VISIBILITY_NOTIFY);
CASE (GDK_NO_EXPOSE);
CASE (GDK_SCROLL); CASE (GDK_SCROLL);
CASE (GDK_WINDOW_STATE); CASE (GDK_WINDOW_STATE);
CASE (GDK_SETTING); CASE (GDK_SETTING);
......
...@@ -523,16 +523,6 @@ gdk_display_x11_translate_event (GdkEventTranslator *translator, ...@@ -523,16 +523,6 @@ gdk_display_x11_translate_event (GdkEventTranslator *translator,
} }
break; 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: case VisibilityNotify:
#ifdef G_ENABLE_DEBUG #ifdef G_ENABLE_DEBUG
if (_gdk_debug_flags & GDK_DEBUG_EVENTS) if (_gdk_debug_flags & GDK_DEBUG_EVENTS)
......
...@@ -1667,7 +1667,6 @@ gtk_main_do_event (GdkEvent *event) ...@@ -1667,7 +1667,6 @@ gtk_main_do_event (GdkEvent *event)
break; break;
case GDK_PROPERTY_NOTIFY: case GDK_PROPERTY_NOTIFY:
case GDK_NO_EXPOSE:
case GDK_FOCUS_CHANGE: case GDK_FOCUS_CHANGE:
case GDK_CONFIGURE: case GDK_CONFIGURE:
case GDK_MAP: case GDK_MAP:
......
...@@ -422,7 +422,6 @@ enum { ...@@ -422,7 +422,6 @@ enum {
PROXIMITY_IN_EVENT, PROXIMITY_IN_EVENT,
PROXIMITY_OUT_EVENT, PROXIMITY_OUT_EVENT,
CLIENT_EVENT, CLIENT_EVENT,
NO_EXPOSE_EVENT,
VISIBILITY_NOTIFY_EVENT, VISIBILITY_NOTIFY_EVENT,
WINDOW_STATE_EVENT, WINDOW_STATE_EVENT,
DAMAGE_EVENT, DAMAGE_EVENT,
...@@ -865,8 +864,6 @@ gtk_widget_class_init (GtkWidgetClass *klass) ...@@ -865,8 +864,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
/* Accessibility support */ /* Accessibility support */
klass->get_accessible = gtk_widget_real_get_accessible; 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_request = gtk_widget_real_adjust_size_request;
klass->adjust_size_allocation = gtk_widget_real_adjust_size_allocation; klass->adjust_size_allocation = gtk_widget_real_adjust_size_allocation;
...@@ -2703,30 +2700,6 @@ gtk_widget_class_init (GtkWidgetClass *klass) ...@@ -2703,30 +2700,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
G_TYPE_BOOLEAN, 1, G_TYPE_BOOLEAN, 1,
GDK_TYPE_EVENT | G_SIGNAL_TYPE_STATIC_SCOPE); 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: * GtkWidget::window-state-event:
* @widget: the object which received the signal * @widget: the object which received the signal
...@@ -5817,9 +5790,6 @@ gtk_widget_event_internal (GtkWidget *widget, ...@@ -5817,9 +5790,6 @@ gtk_widget_event_internal (GtkWidget *widget,
case GDK_PROXIMITY_OUT: case GDK_PROXIMITY_OUT:
signal_num = PROXIMITY_OUT_EVENT; signal_num = PROXIMITY_OUT_EVENT;
break; break;
case GDK_NO_EXPOSE:
signal_num = NO_EXPOSE_EVENT;
break;
case GDK_CLIENT_EVENT: case GDK_CLIENT_EVENT:
signal_num = CLIENT_EVENT; signal_num = CLIENT_EVENT;
break; break;
......
...@@ -320,8 +320,6 @@ struct _GtkWidgetClass ...@@ -320,8 +320,6 @@ struct _GtkWidgetClass
GdkEventVisibility *event); GdkEventVisibility *event);
gboolean (* client_event) (GtkWidget *widget, gboolean (* client_event) (GtkWidget *widget,
GdkEventClient *event); GdkEventClient *event);
gboolean (* no_expose_event) (GtkWidget *widget,
GdkEventAny *event);
gboolean (* window_state_event) (GtkWidget *widget, gboolean (* window_state_event) (GtkWidget *widget,
GdkEventWindowState *event); GdkEventWindowState *event);
gboolean (* damage_event) (GtkWidget *widget, gboolean (* damage_event) (GtkWidget *widget,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment