Commit 23a61525 authored by Mirsal Ennaime's avatar Mirsal Ennaime Committed by Matthias Clasen

Add an accessor for the GSEALed Gtkbutton's event_window attribute

 * Add the gtk_button_get_event_window() function

Closes: bgo#622581
parent e73a2e56
......@@ -566,6 +566,7 @@ gtk_button_set_image
gtk_button_get_image
gtk_button_set_image_position
gtk_button_get_image_position
gtk_button_get_event_window
<SUBSECTION Standard>
GTK_BUTTON
......
......@@ -517,6 +517,7 @@ gtk_button_clicked
gtk_button_enter
#endif
gtk_button_get_alignment
gtk_button_get_event_window
gtk_button_get_focus_on_click
gtk_button_get_image
gtk_button_get_image_position
......
......@@ -2388,5 +2388,24 @@ gtk_button_get_image_position (GtkButton *button)
}
/**
* 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.
*
* Return value: (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->event_window;
}
#define __GTK_BUTTON_C__
#include "gtkaliasdef.c"
......@@ -131,6 +131,8 @@ void gtk_button_set_image_position (GtkButton *button,
GtkPositionType position);
GtkPositionType gtk_button_get_image_position (GtkButton *button);
GdkWindow* gtk_button_get_event_window (GtkButton *button);
void _gtk_button_set_depressed (GtkButton *button,
gboolean depressed);
void _gtk_button_paint (GtkButton *button,
......
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