summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-04 22:17:52 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-08-04 22:24:33 -0400
commit2b8aeed4d8bac16ba42521a2a92fb711600ecb9e (patch)
treecdb7d83eef634ee38e28b70cafd77e02d7cb094c
parent0e1afbbdadcf8b3ff322814f1dee8a84c5fe99c7 (diff)
downloadgtk+-2b8aeed4d8bac16ba42521a2a92fb711600ecb9e.tar.gz
Drop GtkCallback
It is no longer used in any of our public APIs.
-rw-r--r--docs/reference/gtk/gtk4-sections.txt1
-rw-r--r--gtk/gtkwidget.h11
-rw-r--r--gtk/gtkwidgetprivate.h3
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
@@ -71,17 +71,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
* @frame_clock: the frame clock for the widget (same as calling gtk_widget_get_frame_clock())
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);