slight cleanup

This commit is contained in:
Daniel Micay 2012-05-22 11:50:01 -04:00
parent 0a8725bf35
commit 27544b4031
1 changed files with 2 additions and 5 deletions

View File

@ -148,9 +148,7 @@ int main(int argc, char **argv) {
gtk_init(&argc, &argv); gtk_init(&argc, &argv);
GtkWidget *window; GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
/*gtk_window_set_default_size(GTK_WINDOW(window), 400, 400);*/ /*gtk_window_set_default_size(GTK_WINDOW(window), 400, 400);*/
GtkWidget *vte = vte_terminal_new(); GtkWidget *vte = vte_terminal_new();
@ -217,8 +215,6 @@ int main(int argc, char **argv) {
vte_terminal_set_colors(VTE_TERMINAL(vte), &foreground, &background, palette, 16); vte_terminal_set_colors(VTE_TERMINAL(vte), &foreground, &background, palette, 16);
gtk_widget_grab_focus(vte);
g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), NULL); g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), NULL);
g_signal_connect(vte, "button-press-event", G_CALLBACK(button_press_cb), NULL); g_signal_connect(vte, "button-press-event", G_CALLBACK(button_press_cb), NULL);
g_signal_connect(vte, "key-press-event", G_CALLBACK(key_press_cb), NULL); g_signal_connect(vte, "key-press-event", G_CALLBACK(key_press_cb), NULL);
@ -234,6 +230,7 @@ int main(int argc, char **argv) {
g_signal_connect(vte, "window-title-changed", G_CALLBACK(window_title_cb), window); g_signal_connect(vte, "window-title-changed", G_CALLBACK(window_title_cb), window);
#endif #endif
gtk_widget_grab_focus(vte);
gtk_widget_show_all(window); gtk_widget_show_all(window);
gtk_main(); gtk_main();
return 0; return 0;