Re: signals for hpaned resize ??
- From: Olexiy Avramchenko <ath beast stu cn ua>
- To: Olivier Sessink <olivier lx student wau nl>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: signals for hpaned resize ??
- Date: Fri, 16 Aug 2002 12:33:04 +0300
Olivier Sessink wrote:
On Thu, 15 Aug 2002 18:58:00 -0400 (EDT) "Owen Taylor"
<otaylor redhat com> wrote:
What you want to connect to (GTK+-2.0 or newer) is:
"notify::position"
these are not in the API documentation, what is the callback prototype for
this signal?
thanks,
Olivier
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Hello, this's want you want:
/* signal handler */
static void position_notify(GObject *object, GParamSpec *pspec, gpointer
data)
{
gint position;
g_object_get(object, psspec->name, &position, NULL);
printf(
"position change report: object=%p, position value=%d,
parameter=%p\n",
object,
position,
data
);
}
...
/* somewhere in code: connecting signal */
g_signal_connect(G_OBJECT(paned_object), "notify::position",
G_CALLBACK(position_notify), NULL);
...
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]