From 4c694d7c4a6c36b44a4f4693e435dea2b8f3af0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Mon, 12 Sep 2011 18:19:51 +0100 Subject: [PATCH 1/6] utils: Do not use deprecated GTK+ symbols --- util/show-contour.c | 4 ++-- util/show-edges.c | 4 ++-- util/show-events.c | 2 +- util/show-polygon.c | 4 ++-- util/show-traps.c | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/util/show-contour.c b/util/show-contour.c index f3fa1ba..6e39446 100644 --- a/util/show-contour.c +++ b/util/show-contour.c @@ -479,7 +479,7 @@ trap_view_realize (GtkWidget *widget) { GdkWindowAttr attributes; - GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); + gtk_widget_set_realized (widget, TRUE); attributes.window_type = GDK_WINDOW_CHILD; attributes.x = widget->allocation.x; @@ -553,7 +553,7 @@ trap_view_init (TrapView *self) self->extents.p2.x = -G_MAXDOUBLE; self->extents.p2.y = -G_MAXDOUBLE; - GTK_WIDGET_SET_FLAGS (self, GTK_CAN_FOCUS); + gtk_widget_set_can_focus (GTK_WIDGET (self), TRUE); } static contour_t * diff --git a/util/show-edges.c b/util/show-edges.c index a85ad5f..3c3d738 100644 --- a/util/show-edges.c +++ b/util/show-edges.c @@ -879,7 +879,7 @@ trap_view_realize (GtkWidget *widget) { GdkWindowAttr attributes; - GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); + gtk_widget_set_realized (widget, TRUE); attributes.window_type = GDK_WINDOW_CHILD; attributes.x = widget->allocation.x; @@ -948,7 +948,7 @@ trap_view_init (TrapView *self) self->mag_zoom = 10; self->mag_size = 200; - GTK_WIDGET_SET_FLAGS (self, GTK_CAN_FOCUS); + gtk_widget_set_can_focus (GTK_WIDGET (self), TRUE); } static traps_t * diff --git a/util/show-events.c b/util/show-events.c index 8bff3ef..2359e46 100644 --- a/util/show-events.c +++ b/util/show-events.c @@ -556,7 +556,7 @@ event_view_realize (GtkWidget *widget) { GdkWindowAttr attributes; - GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); + gtk_widget_set_realized (widget, TRUE); attributes.window_type = GDK_WINDOW_CHILD; attributes.x = widget->allocation.x; diff --git a/util/show-polygon.c b/util/show-polygon.c index fc1444d..3ef09dc 100644 --- a/util/show-polygon.c +++ b/util/show-polygon.c @@ -397,7 +397,7 @@ polygon_view_realize (GtkWidget *widget) { GdkWindowAttr attributes; - GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); + gtk_widget_set_realized (widget, TRUE); attributes.window_type = GDK_WINDOW_CHILD; attributes.x = widget->allocation.x; @@ -471,7 +471,7 @@ polygon_view_init (PolygonView *self) self->extents.p2.x = -G_MAXDOUBLE; self->extents.p2.y = -G_MAXDOUBLE; - GTK_WIDGET_SET_FLAGS (self, GTK_CAN_FOCUS); + gtk_widget_set_can_focus (GTK_WIDGET (self), TRUE); } static polygon_t * diff --git a/util/show-traps.c b/util/show-traps.c index f46c8b0..38de9fa 100644 --- a/util/show-traps.c +++ b/util/show-traps.c @@ -870,7 +870,7 @@ trap_view_realize (GtkWidget *widget) { GdkWindowAttr attributes; - GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); + gtk_widget_set_realized (widget, TRUE); attributes.window_type = GDK_WINDOW_CHILD; attributes.x = widget->allocation.x; @@ -939,7 +939,7 @@ trap_view_init (TrapView *self) self->mag_zoom = 10; self->mag_size = 200; - GTK_WIDGET_SET_FLAGS (self, GTK_CAN_FOCUS); + gtk_widget_set_can_focus (GTK_WIDGET (self), TRUE); } static traps_t * -- 1.7.5.4