RE: Scrolling a Cairo drawing-area or Gtk layout

2015-07-27 Thread Roger Matthews
n, 27 Jul 2015 10:10:27 +0200 > From: damien.cali...@cea.fr > To: gtk-app-devel-list@gnome.org > Subject: Re: Scrolling a Cairo drawing-area or Gtk layout > > Hello, > > Le 21/07/2015, Roger Matthews a écrit : > > which results from a simple straight line equation,

Re: Scrolling a Cairo drawing-area or Gtk layout

2015-07-27 Thread Jim Charlton
I did some testing of the code and also found that getting scroll bars to appear was not so easy. The only way that I could get them to appear was to modify the code with a container layout of: layout2->viewport->scrolled window->window2. Here is the section of the code that I altered. ***

Re: Scrolling a Cairo drawing-area or Gtk layout

2015-07-27 Thread Damien Caliste
Hello, Le 21/07/2015, Roger Matthews a écrit : > which results from a simple straight line equation, and*/ /* that > extends beyond the bounds of the window. Reading your code quickly, it seems to me that, you're drawing indeed the line outside the drawing area, *but* the drawing area has the siz

Scrolling a Cairo drawing-area or Gtk layout

2015-07-25 Thread Roger Matthews
/*Hello, if there is anybody willing to help with this problem I would be very appreciative and thanks in advance. Here is some code and my problem is this: */ /*I create two windows, one with spinbuttons for parameter entry, and the other shows a cairo line which results from a simple straight