GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Sep 18, 2014 7:40 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Need help with window-state-event
PostPosted: Sun Nov 20, 2011 4:37 am 
Offline
Familiar Face

Joined: Sat May 14, 2011 9:18 am
Posts: 16
How do i check a window is maximized or not?

Code:
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 completely lost with what to code in the handler function to check whether a window is maximized or not.
Any help is appreciated..


Top
 Profile  
 
 Post subject: Re: Need help with window-state-event
PostPosted: Sun Nov 27, 2011 9:58 am 
Offline

Joined: Sun Nov 27, 2011 8:29 am
Posts: 3
I replied to your message on the list.
http://mail.gnome.org/archives/gtk-app- ... 00065.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group