Re: Lucky B.C.'s reply to GtkDrawingArea "width" and "height"

2018-03-06 Thread Roger Matthews
Thanks Lucky B. C. for replying to my email, I have already tried 4000 1000 without success (see code below). I am attempting to draw a Cairo line from two points entered with spin buttons that is built with builder.ui, using C language on Ubuntu 14.04,

Re: Lucky B.C.'s reply to GtkDrawingArea "width" and "height"

2018-03-06 Thread Eric Cashon via gtk-app-devel-list
Hi Roger, Not sure about your builder question and setting the width and height of the drawing area there. For drawing lines though it looks like you are trying to get the width and height of the GtkWindow instead of the drawing area. The drawing area widget is passed to your "draw" callback

Re: Lucky B.C.'s reply to GtkDrawingArea "width" and "height"

2018-03-07 Thread Lucky B.C
Okay, I see you really want to know how to resize the GtkDrawingArea by GtkSpinButton. Here It's my demo about resizing the GtkDrawingArea by 2 width and height GtkSpinButtons. On Wed, Mar 7, 2018 at 6:15 AM, Eric Cashon via gtk-app-devel-list