Merge pull request #100 from JosephMcc/close-focus
Focus a tab when attempting to close it with unsaved changes
This commit is contained in:
commit
331e0e5824
|
@ -47,7 +47,6 @@
|
||||||
#include "xed-file-chooser-dialog.h"
|
#include "xed-file-chooser-dialog.h"
|
||||||
#include "xed-close-confirmation-dialog.h"
|
#include "xed-close-confirmation-dialog.h"
|
||||||
|
|
||||||
|
|
||||||
/* Defined constants */
|
/* Defined constants */
|
||||||
#define XED_OPEN_DIALOG_KEY "xed-open-dialog-key"
|
#define XED_OPEN_DIALOG_KEY "xed-open-dialog-key"
|
||||||
#define XED_TAB_TO_SAVE_AS "xed-tab-to-save-as"
|
#define XED_TAB_TO_SAVE_AS "xed-tab-to-save-as"
|
||||||
|
@ -1537,6 +1536,8 @@ tab_can_close (XedTab *tab,
|
||||||
{
|
{
|
||||||
GtkWidget *dlg;
|
GtkWidget *dlg;
|
||||||
|
|
||||||
|
xed_window_set_active_tab (XED_WINDOW (window), tab);
|
||||||
|
|
||||||
dlg = xed_close_confirmation_dialog_new_single (window, doc, FALSE);
|
dlg = xed_close_confirmation_dialog_new_single (window, doc, FALSE);
|
||||||
|
|
||||||
g_signal_connect (dlg, "response",
|
g_signal_connect (dlg, "response",
|
||||||
|
|
Loading…
Reference in New Issue