Re: Need help with window-state-event

2011-11-20 Thread Dipesh Sudershan
On Sun, 2011-11-20 at 13:00 +0100, Bernhard Schuster wrote: > Attach some output of your code please and offload big code pieces to > pastie.org, susepaste.org or similar to keep this list readable. > > Regards > > Bernhard Schuster Here is the code.. http://pastie.org/2892563. I hope this exp

Re: Need help with window-state-event

2011-11-20 Thread Dipesh Sudershan
On Sun, 2011-11-20 at 12:57 +0100, Bernhard Schuster wrote: > 2011/11/20 Dipesh Sudershan : > > On Sun, 2011-11-20 at 12:29 +0100, Bernhard Schuster wrote: > >> 2011/11/20 Dipesh Sudershan : > >> > On Sun, 2011-11-20 at 11:55 +0100, Bernhard Schuster wrote: > >> >> Screw it, replace the "|" with an

Re: Need help with window-state-event

2011-11-20 Thread Bernhard Schuster
2011/11/20 Dipesh Sudershan : > On Sun, 2011-11-20 at 12:29 +0100, Bernhard Schuster wrote: >> 2011/11/20 Dipesh Sudershan : >> > On Sun, 2011-11-20 at 11:55 +0100, Bernhard Schuster wrote: >> >> Screw it, replace the "|" with an "&". Sorry screwed this up. >> >> >> >> Regards >> > >> > This is wor

Re: Need help with window-state-event

2011-11-20 Thread Bernhard Schuster
Attach some output of your code please and offload big code pieces to pastie.org, susepaste.org or similar to keep this list readable. Regards Bernhard Schuster ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailm

Re: Need help with window-state-event

2011-11-20 Thread Dipesh Sudershan
On Sun, 2011-11-20 at 12:29 +0100, Bernhard Schuster wrote: > 2011/11/20 Dipesh Sudershan : > > On Sun, 2011-11-20 at 11:55 +0100, Bernhard Schuster wrote: > >> Screw it, replace the "|" with an "&". Sorry screwed this up. > >> > >> Regards > > > > This is working fine. But i still can't solve the

Re: Need help with window-state-event

2011-11-20 Thread Bernhard Schuster
2011/11/20 Dipesh Sudershan : > On Sun, 2011-11-20 at 11:55 +0100, Bernhard Schuster wrote: >> Screw it, replace the "|" with an "&". Sorry screwed this up. >> >> Regards > > This is working fine. But i still can't solve the problem i have. > > I have a gtkimage inside an eventbox. the eventbox ins

Re: Need help with window-state-event

2011-11-20 Thread Dipesh Sudershan
On Sun, 2011-11-20 at 11:55 +0100, Bernhard Schuster wrote: > Screw it, replace the "|" with an "&". Sorry screwed this up. > > Regards This is working fine. But i still can't solve the problem i have. I have a gtkimage inside an eventbox. the eventbox inside a gtklayout and finally the gtklayou

Re: Need help with window-state-event

2011-11-20 Thread Bernhard Schuster
Screw it, replace the "|" with an "&". Sorry screwed this up. Regards ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Need help with window-state-event

2011-11-20 Thread Dipesh Sudershan
On Sun, 2011-11-20 at 10:37 +0100, Bernhard Schuster wrote: > 2011/11/20 Dipesh Sudershan : > > GdkEventWindowState > > According to this: > http://developer.gnome.org/gdk/stable/gdk-Event-Structures.html#GdkWindowState > and > http://developer.gnome.org/gdk/stable/gdk-Event-Structures.html#GdkEv

Re: Need help with window-state-event

2011-11-20 Thread Bernhard Schuster
2011/11/20 Dipesh Sudershan : > GdkEventWindowState According to this: http://developer.gnome.org/gdk/stable/gdk-Event-Structures.html#GdkWindowState and http://developer.gnome.org/gdk/stable/gdk-Event-Structures.html#GdkEventWindowState It is as easy as: if (event->new_window_state | GDK_WINDO

Need help with window-state-event

2011-11-19 Thread Dipesh Sudershan
How do i check a window is maximized or not? static gboolean window_state_event_handler(GtkWidget *window, GdkEventWindowState *event) { } GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(window, "window-state-event", G_CALLBACK(window_state_event_handler), NULL); I'm