From 62616d0498978ec8d9c1e098a91635f29672378f Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 5 Oct 2007 16:19:52 +0300 Subject: [PATCH] Use GtkDrawingArea as base --- src/gtkcompass.c | 6 ------ src/gtkcompass.h | 2 +- src/gtkgps.c | 6 ------ src/gtkgps.h | 2 +- 4 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/gtkcompass.c b/src/gtkcompass.c index 87a8b11..260b147 100644 --- a/src/gtkcompass.c +++ b/src/gtkcompass.c @@ -300,12 +300,6 @@ pango_layout_set_font_description(compass->layout, compass->fontdesc); pango_layout_set_text(compass->layout, htext, -1); pango_layout_get_pixel_size(compass->layout, &x, &y); -gtk_paint_flat_box (widget->style, - widget->window, - GTK_STATE_NORMAL, GTK_SHADOW_NONE, - NULL, widget, "trough", 0, 0, - compass->width, compass->height); - gdk_draw_layout(widget->window, compass->gc_h, compass->xoffset+size/2-x/2, diff --git a/src/gtkcompass.h b/src/gtkcompass.h index 8496df6..038668c 100644 --- a/src/gtkcompass.h +++ b/src/gtkcompass.h @@ -35,7 +35,7 @@ typedef struct _GtkCompassClass GtkCompassClass; struct _GtkCompass { GtkWidget parent; - GtkWidget widget; + GtkDrawingArea widget; GdkGC *gc_h; GdkGC *gc_w; GdkGC *gc_d; diff --git a/src/gtkgps.c b/src/gtkgps.c index 20ef94e..dc494ed 100644 --- a/src/gtkgps.c +++ b/src/gtkgps.c @@ -303,12 +303,6 @@ if (gps->width>gps->height) { yoffset=y0+(gps->height-gps->width)/2; } -gtk_paint_flat_box (widget->style, - widget->window, - GTK_STATE_NORMAL, GTK_SHADOW_NONE, - NULL, widget, "trough", 0, 0, - gps->width, gps->height); - /* 90 */ gdk_draw_arc(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], diff --git a/src/gtkgps.h b/src/gtkgps.h index 6460530..65f020d 100644 --- a/src/gtkgps.h +++ b/src/gtkgps.h @@ -41,7 +41,7 @@ typedef enum { struct _GtkGps { GtkWidget parent; - GtkWidget widget; + GtkDrawingArea widget; GdkGC *gc1; GdkGC *gc_s; GdkGC *gc_sf; -- 2.39.5