Then a couple of days ago I accidentally clicked on the window close button and lost all of the tabs
I've been trying to fix that and I am having trouble. First I tried adding a dialog that pops up when I hit the close button to confirm. But it seg faulted when I did the call to gtk_message_dialog_new to create the dialog to confirm the close.
Then I discovered I could just add the following line and then the close button just didn't function at all, and that would work for me:
Code: Select all
g_signal_connect(G_OBJECT(terminal->window), "delete-event", G_CALLBACK(gtk_true), terminal);
Can anybody point me in the right direction?
Thanks,
-Scott
P.S. if anyone is interested in the patch to disable the middle click from closing tabs if they don't have a close button please let me know.