[gtk/drop-accel-label: 1/2] Drop GtkCallback
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/drop-accel-label: 1/2] Drop GtkCallback
- Date: Wed, 5 Aug 2020 02:36:56 +0000 (UTC)
commit 2b8aeed4d8bac16ba42521a2a92fb711600ecb9e
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Aug 4 22:17:52 2020 -0400
Drop GtkCallback
It is no longer used in any of our public APIs.
docs/reference/gtk/gtk4-sections.txt | 1 -
gtk/gtkwidget.h | 11 -----------
gtk/gtkwidgetprivate.h | 3 +++
3 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 0efe0d7da7..90c6f1aec8 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4406,7 +4406,6 @@ gtk_widget_paintable_get_type
<TITLE>GtkWidget</TITLE>
GtkWidget
GtkWidgetClass
-GtkCallback
GtkRequisition
GtkAllocation
gtk_widget_new
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index e3ead82e2f..e86f07d1c0 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -70,17 +70,6 @@ typedef struct _GtkWidgetClassPrivate GtkWidgetClassPrivate;
*/
typedef GdkRectangle GtkAllocation;
-/**
- * GtkCallback:
- * @widget: the widget to operate on
- * @data: (closure): user-supplied data
- *
- * The type of the callback functions used for e.g. iterating over
- * the children of a container, see gtk_container_foreach().
- */
-typedef void (*GtkCallback) (GtkWidget *widget,
- gpointer data);
-
/**
* GtkTickCallback:
* @widget: the widget
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index 136533622a..9ab7f37f3c 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -306,6 +306,9 @@ void gtk_widget_adjust_baseline_request (GtkWidget *widget,
int *minimum_baseline,
int *natural_baseline);
+typedef void (*GtkCallback) (GtkWidget *widget,
+ gpointer data);
+
void gtk_widget_forall (GtkWidget *widget,
GtkCallback callback,
gpointer user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]