Re: newbie question about g_object unref()

2010-11-19 Thread N James Bridge
On Thu, 2010-11-18 at 22:11 +, N James Bridge wrote: > It seems that g_object_unref (ptr) doesn't set ptr to NULL when it frees > the allocated memory. Have I got something wrong here? Do I have to do > it explicitly? > Thanks for all your contributions. I have now found G_I

newbie question about g_object unref()

2010-11-18 Thread N James Bridge
It seems that g_object_unref (ptr) doesn't set ptr to NULL when it frees the allocated memory. Have I got something wrong here? Do I have to do it explicitly? Thanks, James Bridge ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://ma

Re: bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread N James Bridge
On Sun, 2010-11-14 at 12:48 +, James Morris wrote: > On 14 November 2010 12:40, N James Bridge wrote: > > Thanks for input. I assume you did see the same error in drawing - some > > areas inside the drawing come out solid black? > > Yes. > > > I will have to lo

Re: bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread N James Bridge
On Sun, 2010-11-14 at 11:17 +, James Morris wrote: > On 13 November 2010 22:18, N James Bridge wrote: > > I am hoping someone will have the time to look at this. I have been > > developing a gtk/cairo program to draw views of the Mandelbrot set. ... > > I am using gtk2-2

bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread N James Bridge
I am hoping someone will have the time to look at this. I have been developing a gtk/cairo program to draw views of the Mandelbrot set. I wanted to show how the usual iteration progressed for an arbitrary starting point; it worked but occasionally seemed to misbehave. Below is a cut-back version wh

text on a curved baseline?

2010-07-15 Thread N James Bridge
Hi this is a beginner's question... can you make text follow a curved baseline? Looks like no. James ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Accessor function for application.width ?

2010-07-13 Thread N James Bridge
On Tue, 2010-07-13 at 08:10 +0200, Florian Müllner wrote: > El mar, 13-07-2010 a las 06:56 +0100, N James Bridge escribió: > > It's useful to blank out a drawing area by drawing a filled rectangle > > with the same size as the window. The examples I have seen get the > &

Accessor function for application.width ?

2010-07-12 Thread N James Bridge
It's useful to blank out a drawing area by drawing a filled rectangle with the same size as the window. The examples I have seen get the dimensions from widget->allocation.width but Devhelp says that the GtkAllocation structure is GSEALed. At present the method works but is there an accessor functi

Re: drawing colored lines

2010-06-15 Thread N James Bridge
sorry - wrong code! -- N James Bridge ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: drawing colored lines

2010-06-15 Thread N James Bridge
On Mon, 2010-06-14 at 21:15 +0100, N James Bridge wrote: > Hi all > > I have been experimenting with GtkDrawingArea, drawing mathematical > functions. Can anyone tell me how to change the foreground color (to > red, say)? I have found the answer... gtk_widget_modify_fg ()

drawing colored lines

2010-06-14 Thread N James Bridge
Hi all I have been experimenting with GtkDrawingArea, drawing mathematical functions. Can anyone tell me how to change the foreground color (to red, say)? I want to do this in the program, not with the color chooser widget. It's easy enough with Cairo but I can't figure out how to do it with GDK.

Re: gtk_button_new_from_stock () does not find icons.

2010-06-05 Thread N James Bridge
> > > The settings under GNOME are in GConf's /desktop/gnome/interface/, the > keys buttons_have_incons and menus_have_icons. You can change them with > gconf-editor or using gconftool-2(1). > > Regards, > Colomban > Success! Thanks a lot - very helpful to know about gconf-editor. James __

gtk_button_new_from_stock () does not find icons.

2010-06-04 Thread N James Bridge
the icons either. Any suggestions most welcome! -- N James Bridge ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list