1 2 3 4 5 6 7 8 9 10 11 12 13
| g_object_connect( G_OBJECT( expander ), "notify::expanded",
G_CALLBACK( cb_notify_expanded ), data );
static void
cb_notify_expanded( GObject *expander,
GParamSpec *pspec,
gpointer data )
{
if( gtk_expander_get_expanded( GTK_EXPANDER( expander ) ) )
{
/* Close previously opened expander */
}
} |