Re: builder.ui and GtkDrawingArea size

2018-03-03 Thread Lucky B.C
GtkDrawingArea is a widget, so you just write the property width and height in the builder.ui, done! 😀 On Tue, Feb 27, 2018 at 10:58 AM, Roger Matthews wrote: > How do I set the size, or what are the x and y size of a > GtkDrawingArea in builder.ui, I can't find these in the documentation > any

builder.ui and GtkDrawingArea size

2018-02-27 Thread Roger Matthews
How do I set the size, or what are the x and y size of a GtkDrawingArea in builder.ui, I can't find these in the documentation anywhere, thanks, Roger Matthews ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mai

Re.: GtkDrawingArea size request

2017-06-22 Thread Rúben Rodrigues
Solved. Someone have a example of how to create a custom widget with cairo in C? Thanks Mensagem original Assunto: Fwd: GtkDrawingArea size request De: Rúben Rodrigues Para: gtk-app-devel-list@gnome.org CC: Someone received my question? Thanks Mensagem

Re: GtkDrawingArea size request

2017-06-22 Thread Eric Cashon via gtk-app-devel-list
Hi Ruben, You might consider allowing the gauge to expand with the window size. This makes the gauge a lot more flexible. When drawing a gauge it is useful to get a general coordinate drawing on screen that you can check your gauge drawing with. Both cartesian coordinates and radial coordin

GtkDrawingArea size request

2017-06-22 Thread Rúben Rodrigues
Hi, I create a drawing area to draw a circular gauge with cairo. GtkWidget *drawing_area = gtk_drawing_area_new (); gtk_widget_set_size_request (drawing_area, 100, 100); gtk_box_pack_start (GTK_BOX(gtk_builder_get_object(builder, "box30")),drawing_area,FALSE,TRUE,0); The problem is th

Re: Fwd: GtkDrawingArea size request

2017-06-21 Thread Chris Moller
fill its parent. On 06/21/17 10:11, Rúben Rodrigues wrote: Someone received my question? Thanks Mensagem reencaminhada Assunto:GtkDrawingArea size request Data: Wed, 21 Jun 2017 10:08:15 +0100 De: Rúben Rodrigues <mailto:ruben...@live.com.pt> Para: gtk

Fwd: GtkDrawingArea size request

2017-06-21 Thread Rúben Rodrigues
Someone received my question? Thanks Mensagem reencaminhada Assunto:GtkDrawingArea size request Data: Wed, 21 Jun 2017 10:08:15 +0100 De: Rúben Rodrigues <mailto:ruben...@live.com.pt> Para: gtk-app-devel-list@gnome.org<mailto:gtk-app-devel-list@

Re: GtkDrawingArea size

2012-06-04 Thread Guenther Wutz
Hey if you use Gtk+-3.0 you can use GtkWindow* window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_resizable(window, FALSE); This should prevent the resizing and disables the grip. -- Günther Wutz Student der University of Applied Science Allgemeine Informatik Am Donnerstag, den 08.

Re: GtkDrawingArea size

2012-03-08 Thread Christopher Howard
On 03/08/2012 01:54 AM, Tadej Borovšak wrote: > Hello. > > 2012/3/7 Christopher Howard : >> Hello again. So, I recently started a project to create a certain board >> game (in C) using gtk+, and I just started learning gtk+. I was planning >> to draw the board graphics, pieces, etc. all into one G

Re: GtkDrawingArea size

2012-03-08 Thread Tadej Borovšak
Hello. 2012/3/7 Christopher Howard : > Hello again. So, I recently started a project to create a certain board > game (in C) using gtk+, and I just started learning gtk+. I was planning > to draw the board graphics, pieces, etc. all into one GtkDrawingArea. > So, how do I fix the size of the drawi

Re: GtkDrawingArea size

2012-03-07 Thread Stefan Salewski
On Wed, 2012-03-07 at 09:44 -0900, Christopher Howard wrote: X > > Bump. > > I'm trying to look through some other projects to see how this is done, > but I would appreciate it if anyone happens to know of the top of their > head. I guess you can have a drawingarea of fixed size if you put it in

Re: GtkDrawingArea size

2012-03-07 Thread Christopher Howard
On 03/07/2012 11:37 AM, Bernhard Schuster wrote: > If you did not yet start implementing it, goocanvas might be another > option to the bare stuff. goocanvas allows you to set a fixed "paper" > size. > > I think the halign and valign properties are what I was looking for. It seems that, if I do

Re: GtkDrawingArea size

2012-03-07 Thread Bernhard Schuster
If you did not yet start implementing it, goocanvas might be another option to the bare stuff. goocanvas allows you to set a fixed "paper" size. Am 7. März 2012 19:44 schrieb Christopher Howard : > On 03/06/2012 02:08 PM, Christopher Howard wrote: >> Hello again. So, I recently started a project

Re: GtkDrawingArea size

2012-03-07 Thread Christopher Howard
On 03/06/2012 02:08 PM, Christopher Howard wrote: > Hello again. So, I recently started a project to create a certain board > game (in C) using gtk+, and I just started learning gtk+. I was planning > to draw the board graphics, pieces, etc. all into one GtkDrawingArea. > So, how do I fix the size

GtkDrawingArea size

2012-03-06 Thread Christopher Howard
Hello again. So, I recently started a project to create a certain board game (in C) using gtk+, and I just started learning gtk+. I was planning to draw the board graphics, pieces, etc. all into one GtkDrawingArea. So, how do I fix the size of the drawing area so it doesn't get larger or smaller th