diff options
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r-- | gtk/gtkbutton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 10280a9041..8192fbad45 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -1399,7 +1399,7 @@ gtk_button_size_allocate (GtkWidget *widget, widget->allocation = *allocation; - if (GTK_WIDGET_REALIZED (widget)) + if (gtk_widget_get_realized (widget)) gdk_window_move_resize (button->event_window, widget->allocation.x + border_width, widget->allocation.y + border_width, @@ -1754,7 +1754,7 @@ gtk_real_button_activate (GtkButton *button) priv = GTK_BUTTON_GET_PRIVATE (button); - if (GTK_WIDGET_REALIZED (button) && !button->activate_timeout) + if (gtk_widget_get_realized (widget) && !button->activate_timeout) { time = gtk_get_current_event_time (); if (gdk_keyboard_grab (button->event_window, TRUE, time) == |