]> err.no Git - mapper/commitdiff
Use GtkDrawingArea as base
authorKaj-Michael Lang <milang@onion.tal.org>
Fri, 5 Oct 2007 13:19:52 +0000 (16:19 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Fri, 5 Oct 2007 13:19:52 +0000 (16:19 +0300)
src/gtkcompass.c
src/gtkcompass.h
src/gtkgps.c
src/gtkgps.h

index 87a8b1166be07cd90a324e61ad0dd0ec7b15834f..260b147e79f0e3c65748b142b639743c96283f53 100644 (file)
@@ -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,
index 8496df6ca07c8385acd8a4bc5a574efb48c5c7cd..038668c51e1120190fbdc7eae2d6a9b509347124 100644 (file)
@@ -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;
index 20ef94ed0fdde5b7a954ba32d7541fdf9916aa3b..dc494edfb4a6ac5930432e5a7aaf2afaaa183ebc 100644 (file)
@@ -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)],
index 6460530186cf1eb2f60bd6afe0b0003de2e2c76d..65f020dae1b5d540ad3772034789ec6f32824ac8 100644 (file)
@@ -41,7 +41,7 @@ typedef enum {
 
 struct _GtkGps {
        GtkWidget parent;
-       GtkWidget widget;
+       GtkDrawingArea widget;
        GdkGC *gc1;
        GdkGC *gc_s;
        GdkGC *gc_sf;