context.window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_container_set_border_width(GTK_CONTAINER(context.window), 5);
g_signal_connect(context.window, "destroy", G_CALLBACK(>k_main_quit), NULL);
- g_signal_connect(context.window, "key-press-event", G_CALLBACK(&key_press), NULL);
box = gtk_vbox_new(FALSE, 5);
gtk_container_add(GTK_CONTAINER(context.window), box);
umount = -1;
}
+ else
+ g_signal_connect(context.window, "key-press-event", G_CALLBACK(&key_press), NULL);
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(context.list));
g_signal_connect(selection, "changed", G_CALLBACK(&selection_changed), &context);