Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make cairo surface 1x1 initially if drawing area is freely sized.

  • Loading branch information...
commit 3e53bc73a54d9250ad57d061c2a9d8048db1e94f 1 parent 98e46fe
@jtappin jtappin authored
Showing with 5 additions and 5 deletions.
  1. +2 −2 src/gtk-draw-hl-tmpl.f90
  2. +3 −3 src/gtk-draw-hl.f90
View
4 src/gtk-draw-hl-tmpl.f90
@@ -230,8 +230,8 @@ function hl_gtk_drawing_area_new(scroll, size, ssize, expose_event, &
szy = size(2)
else
call gtk_widget_set_size_request(plota, -1_c_int, -1_c_int)
- szx = -1
- szy = -1
+ szx = 1 ! Negative values give a cairo error
+ szy = 1
end if
! Add it to a scrolling window if one is requested
View
6 src/gtk-draw-hl.f90
@@ -27,7 +27,7 @@
! --------------------------------------------------------
! gtk-draw-hl.f90
-! Generated: Sat Jan 12 23:36:32 2013 GMT
+! Generated: Sun Jan 20 02:49:28 2013 GMT
! Please do not edit this file directly,
! Edit gtk-draw-hl-tmpl.f90, and use ./mk_gtk_hl.pl to regenerate.
! Generated for GTK+ version: 2.24.0.
@@ -229,8 +229,8 @@ function hl_gtk_drawing_area_new(scroll, size, ssize, expose_event, &
szy = size(2)
else
call gtk_widget_set_size_request(plota, -1_c_int, -1_c_int)
- szx = -1
- szy = -1
+ szx = 1 ! Negative values give a cairo error
+ szy = 1
end if
! Add it to a scrolling window if one is requested
Please sign in to comment.
Something went wrong with that request. Please try again.