This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

unable to maximize gtk window


$ gcc -o simple simple.c `pkg-config --libs --cflags gtk+-2.0`
$ ./simple.exe

The window fails to maximize on startup
I've found this out when using gnome terminator on cygwin, which fails to maximize on startup, and strangely is only able to maximize when opening up a new tab

My setup:
Windows 7 professional x64
$ uname -r
1.7.17(0.262/5/3)

Censored parts of cygcheck for privacy reasons


Attachment: cygcheck.out.txt
Description: Text document

#include <gtk/gtk.h>

//gcc -o simple simple.c `pkg-config --libs --cflags gtk+-2.0`

//pygtk:
//	win = gtk.Window()
//	win.maximize()
//	win.show()

int main(int argc, char *argv[]){
	/**
	doesn't work under cygwin
	*/
	GtkWidget *window;
	
	gtk_init(&argc, &argv);
	
	window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
	g_signal_connect(window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
	gtk_window_maximize(GTK_WINDOW(window));
	gtk_widget_show(window);
	
	gtk_main();
	
	return 0;
}

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]