mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Cleaned up redundant comments in src/fe-gtk/fkeys.c by removing section-divider noise and a stale XXX line near key-action helpers, while keeping useful function-level documentation.
Removed repetitive inline comments from return 2; statements in tab-move/history key actions, since behavior is already clear from the surrounding code. Removed an unnecessary separator comment before replace_handle() for a cleaner transition between functions.
This commit is contained in:
@@ -1199,11 +1199,6 @@ corrupt_file:
|
||||
return 5;
|
||||
}
|
||||
|
||||
/* ***** Key actions start here *********** */
|
||||
|
||||
/* See the NOTES above --AGL */
|
||||
|
||||
/* "Run command" */
|
||||
static int
|
||||
key_action_handle_command (GtkWidget * wid, GdkEventKey * evt, char *d1,
|
||||
char *d2, struct session *sess)
|
||||
@@ -1224,7 +1219,6 @@ key_action_handle_command (GtkWidget * wid, GdkEventKey * evt, char *d1,
|
||||
/*
|
||||
* Check if the given session is inside the main window. This predicate
|
||||
* is passed to lastact_getfirst() as a way to filter out detached sessions.
|
||||
* XXX: Consider moving this in a different file?
|
||||
*/
|
||||
static int
|
||||
session_check_is_tab(session *sess)
|
||||
@@ -1806,7 +1800,7 @@ key_action_move_tab_left (GtkWidget * wid, GdkEventKey * ent, char *d1,
|
||||
char *d2, struct session *sess)
|
||||
{
|
||||
mg_move_tab (sess, +1);
|
||||
return 2; /* don't allow default action */
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -1814,7 +1808,7 @@ key_action_move_tab_right (GtkWidget * wid, GdkEventKey * ent, char *d1,
|
||||
char *d2, struct session *sess)
|
||||
{
|
||||
mg_move_tab (sess, -1);
|
||||
return 2; /* -''- */
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -1822,7 +1816,7 @@ key_action_move_tab_family_left (GtkWidget * wid, GdkEventKey * ent, char *d1,
|
||||
char *d2, struct session *sess)
|
||||
{
|
||||
mg_move_tab_family (sess, +1);
|
||||
return 2; /* don't allow default action */
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -1830,7 +1824,7 @@ key_action_move_tab_family_right (GtkWidget * wid, GdkEventKey * ent, char *d1,
|
||||
char *d2, struct session *sess)
|
||||
{
|
||||
mg_move_tab_family (sess, -1);
|
||||
return 2; /* -''- */
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -1839,12 +1833,9 @@ key_action_put_history (GtkWidget * wid, GdkEventKey * ent, char *d1,
|
||||
{
|
||||
history_add (&sess->history, SPELL_ENTRY_GET_TEXT (wid));
|
||||
SPELL_ENTRY_SET_TEXT (wid, "");
|
||||
return 2; /* -''- */
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
/* -------- */
|
||||
|
||||
static void
|
||||
replace_handle (GtkWidget *t)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user