diff options
author | Timm Bäder <mail@baedert.org> | 2016-11-05 08:39:10 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2016-11-05 11:56:36 +0100 |
commit | 3b970f4555ba48abcb6eb15a3549cc7ff94f206d (patch) | |
tree | 491447e0285b9e9dc0a5bef970f7049834c4b71e | |
parent | 846cf681e8602399e172c256a93cd7484708219a (diff) | |
download | gtk+-3b970f4555ba48abcb6eb15a3549cc7ff94f206d.tar.gz |
button: Remove _get_event_window
-rw-r--r-- | docs/reference/gtk/gtk4-sections.txt | 1 | ||||
-rw-r--r-- | gtk/gtkbutton.c | 19 | ||||
-rw-r--r-- | gtk/gtkbutton.h | 3 | ||||
-rw-r--r-- | gtk/gtkmodelbutton.c | 2 |
4 files changed, 1 insertions, 24 deletions
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index b28f209530..37819560f6 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -535,7 +535,6 @@ gtk_button_set_image_position gtk_button_get_image_position gtk_button_set_always_show_image gtk_button_get_always_show_image -gtk_button_get_event_window <SUBSECTION Standard> GTK_BUTTON diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 6e3734ed85..62b71090ca 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -1316,25 +1316,6 @@ gtk_button_grab_notify (GtkWidget *widget, } /** - * gtk_button_get_event_window: - * @button: a #GtkButton - * - * Returns the button’s event window if it is realized, %NULL otherwise. - * This function should be rarely needed. - * - * Returns: (transfer none): @button’s event window. - * - * Since: 2.22 - */ -GdkWindow* -gtk_button_get_event_window (GtkButton *button) -{ - g_return_val_if_fail (GTK_IS_BUTTON (button), NULL); - - return button->priv->event_window; -} - -/** * gtk_button_set_icon_name: * @button: A #GtkButton * @icon_name: A icon name diff --git a/gtk/gtkbutton.h b/gtk/gtkbutton.h index b1567de545..d62c49c380 100644 --- a/gtk/gtkbutton.h +++ b/gtk/gtkbutton.h @@ -112,9 +112,6 @@ void gtk_button_set_use_underline (GtkButton *button, GDK_AVAILABLE_IN_ALL gboolean gtk_button_get_use_underline (GtkButton *button); -GDK_AVAILABLE_IN_ALL -GdkWindow* gtk_button_get_event_window (GtkButton *button); - GDK_AVAILABLE_IN_3_90 void gtk_button_set_icon_name (GtkButton *button, const char *icon_name); diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c index 1f12885676..26b647c7f3 100644 --- a/gtk/gtkmodelbutton.c +++ b/gtk/gtkmodelbutton.c @@ -888,7 +888,7 @@ gtk_model_button_allocate (GtkCssGadget *gadget, GtkAllocation border_allocation; gtk_css_gadget_get_border_allocation (gadget, &border_allocation, NULL); - gdk_window_move_resize (gtk_button_get_event_window (GTK_BUTTON (widget)), + gdk_window_move_resize (GTK_BUTTON (widget)->priv->event_window, border_allocation.x, border_allocation.y, border_allocation.width, |