]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkbutton.c
Deprecate widget flag: GTK_WIDGET_REALIZED
[~andy/gtk] / gtk / gtkbutton.c
index 10280a9041960f1fe5c9e5e896a26a99ceff0148..8192fbad451149147648b6a8343194fd7978eaf2 100644 (file)
@@ -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) ==