Re: Change an image on a button
- From: Guillaume Charhon <pub charhon wanadoo fr>
- To: Ed Catmur <ed catmur co uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Change an image on a button
- Date: Wed, 15 Nov 2006 22:40:06 +0100
But I have read everything and it doesn't work ! I've tested all example
from
http://developer.gnome.org/doc/API/2.0/gobject/gobject-The-Base-Object-Type.html#floating-ref
But the result is the same ! ImageTwo is destroyed.
Thanks.
Ed Catmur a Ãcrit :
Tristan Van Berkom writes:
Guillaume Charhon wrote:
Thanks, but how can I "ref it or sink it" ?
Every widget in gtk+ is an object:
e.html#GObject
Specifically, a GInitiallyUnowned; see
http://developer.gnome.org/doc/API/2.0/gobject/gobject-The-Base-Object-Type.html#floating-ref
Please do read up on GObject
(http://le-hacker.org/papers/gobject/index.html); if you're going to
insist on using GTK+ from C (as opposed to a higher-level language),
understanding GObject will save you lots of headaches.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]