Re: Find out if window is active
- From: Matthias Clasen <matthias clasen gmail com>
- To: Lanoxx <lanoxx gmx net>
- Cc: gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: Find out if window is active
- Date: Sun, 14 Apr 2013 20:06:17 -0400
g_signal_connect (window, "notify::is-active",
G_CALLBACK (print_active), NULL);
with
static void
print_active (GtkWindow *window)
{
g_print ("active: %d\n", gtk_window_is_active (window));
}
works as expected here, and prints "active: 1" and "active: 0" as the
window becomes active or inactive.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]