]> err.no Git - mapper/commitdiff
Fix type switch redraw.
authorKaj-Michael Lang <milang@angel.tal.org>
Fri, 19 Oct 2007 09:49:25 +0000 (12:49 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Fri, 19 Oct 2007 09:49:25 +0000 (12:49 +0300)
src/gtkgps.c

index 730e7b2a8378159d8861e793dd0d9acd2ec19236..ad90a690adaf600f99a20dd14247bd68c74c4650 100644 (file)
@@ -123,7 +123,7 @@ if (event->button==1) {
        break;
        }
 }
-gtk_gps_paint_by_mode(gps);
+gtk_widget_queue_draw_area(widget, 0, 0, gps->width, gps->height);
 return FALSE;
 }
 
@@ -408,12 +408,6 @@ yoffset=0;
 /* Bootom margin - 12% */
 bymargin = gps->height * 0.88f;
 
-gtk_paint_flat_box (widget->style,
-       widget->window,
-       GTK_STATE_NORMAL, GTK_SHADOW_NONE,
-       NULL, widget, "trough", 0, 0, 
-       gps->width, gps->height);
-
 /* Bottom line */
 gdk_draw_line(widget->window,
              widget->style->fg_gc[GTK_WIDGET_STATE(widget)],