Permalink
Browse files

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

  • Loading branch information...
1 parent 98e46fe commit 3e53bc73a54d9250ad57d061c2a9d8048db1e94f @jtappin jtappin committed Jan 20, 2013
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

0 comments on commit 3e53bc7

Please sign in to comment.