comparison src/gui_gtk_x11.c @ 2165:733f0dc510c3

Undo changes that are meant for the Vim 7.3 branch.
author Bram Moolenaar <bram@vim.org>
date Sat, 15 May 2010 21:13:04 +0200
parents 32f25c7ae94b
children b0ebf9d121ff
comparison
equal deleted inserted replaced
2163:00d8ddf20102 2165:733f0dc510c3
4426 4426
4427 #ifndef HAVE_GTK2 4427 #ifndef HAVE_GTK2
4428 /* this will cause the proper resizement to happen too */ 4428 /* this will cause the proper resizement to happen too */
4429 update_window_manager_hints(0, 0); 4429 update_window_manager_hints(0, 0);
4430 4430
4431 #else 4431 #else /* HAVE_GTK2 */
4432 /* this will cause the proper resizement to happen too */ 4432 /* this will cause the proper resizement to happen too */
4433 if (gtk_socket_id == 0) 4433 if (gtk_socket_id == 0)
4434 update_window_manager_hints(0, 0); 4434 update_window_manager_hints(0, 0);
4435 4435
4436 /* With GTK+ 2, changing the size of the form widget doesn't resize 4436 /* With GTK+ 2, changing the size of the form widget doesn't resize
4442 if (gtk_socket_id == 0) 4442 if (gtk_socket_id == 0)
4443 gtk_window_resize(GTK_WINDOW(gui.mainwin), width, height); 4443 gtk_window_resize(GTK_WINDOW(gui.mainwin), width, height);
4444 else 4444 else
4445 update_window_manager_hints(width, height); 4445 update_window_manager_hints(width, height);
4446 4446
4447 # if 0 4447 #if 0
4448 if (!resize_idle_installed) 4448 if (!resize_idle_installed)
4449 { 4449 {
4450 g_idle_add_full(GDK_PRIORITY_EVENTS + 10, 4450 g_idle_add_full(GDK_PRIORITY_EVENTS + 10,
4451 &force_shell_resize_idle, NULL, NULL); 4451 &force_shell_resize_idle, NULL, NULL);
4452 resize_idle_installed = TRUE; 4452 resize_idle_installed = TRUE;
4453 } 4453 }
4454 # endif 4454 #endif
4455 /* 4455 /*
4456 * Wait until all events are processed to prevent a crash because the 4456 * Wait until all events are processed to prevent a crash because the
4457 * real size of the drawing area doesn't reflect Vim's internal ideas. 4457 * real size of the drawing area doesn't reflect Vim's internal ideas.
4458 * 4458 *
4459 * This is a bit of a hack, since Vim is a terminal application with a GUI 4459 * This is a bit of a hack, since Vim is a terminal application with a GUI