[ghex] appwin: Turn on insert mode on new file action



commit fb204d8bac7533a470ae40fa208fb77234767840
Author: Logan Rathbone <poprocks gmail com>
Date:   Fri Dec 10 15:44:34 2021 -0500

    appwin: Turn on insert mode on new file action
    
    This is subject to change on a whim as it could be annoying.
    
    But right now after some "feel" testing, it just feels wrong to me to
    click File->New and not be able to type right away. Although, some
    people (myself included) use a particular editor that behaves this way
    all the time...

 src/ghex-application-window.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/ghex-application-window.c b/src/ghex-application-window.c
index e365aac..d43bf45 100644
--- a/src/ghex-application-window.c
+++ b/src/ghex-application-window.c
@@ -1164,6 +1164,7 @@ new_file (GtkWidget *widget,
        ghex_application_window_add_hex (self, gh);
        ghex_application_window_set_hex (self, gh);
        ghex_application_window_activate_tab (self, gh);
+       ghex_application_window_set_insert_mode (self, TRUE);
 }
 
 /* convenience helper function to build a GtkHex widget pre-loaded with


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]