mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Cleaned up redundant/outdated inline comments in the text frontend argument/config and GUI control paths while leaving behavior unchanged (comment-only cleanup).
This commit is contained in:
@@ -533,7 +533,7 @@ fe_args (int argc, char *argv[])
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arg_cfgdir) /* we want filesystem encoding */
|
if (arg_cfgdir)
|
||||||
{
|
{
|
||||||
g_free (xdir);
|
g_free (xdir);
|
||||||
xdir = g_strdup(arg_cfgdir);
|
xdir = g_strdup(arg_cfgdir);
|
||||||
@@ -548,10 +548,8 @@ fe_args (int argc, char *argv[])
|
|||||||
void
|
void
|
||||||
fe_init (void)
|
fe_init (void)
|
||||||
{
|
{
|
||||||
/* the following should be default generated, not enfoced in binary */
|
|
||||||
prefs.hex_gui_tab_server = 0;
|
prefs.hex_gui_tab_server = 0;
|
||||||
prefs.hex_gui_autoopen_dialog = 0;
|
prefs.hex_gui_autoopen_dialog = 0;
|
||||||
/* except for these, there is no lag meter, there is no server list */
|
|
||||||
prefs.hex_gui_lagometer = 0;
|
prefs.hex_gui_lagometer = 0;
|
||||||
prefs.hex_gui_slist_skip = 1;
|
prefs.hex_gui_slist_skip = 1;
|
||||||
}
|
}
|
||||||
@@ -563,7 +561,6 @@ fe_main (void)
|
|||||||
|
|
||||||
main_loop = g_main_loop_new(NULL, FALSE);
|
main_loop = g_main_loop_new(NULL, FALSE);
|
||||||
|
|
||||||
/* Keyboard Entry Setup */
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
keyboard_input = g_io_channel_win32_new_fd(STDIN_FILENO);
|
keyboard_input = g_io_channel_win32_new_fd(STDIN_FILENO);
|
||||||
#else
|
#else
|
||||||
@@ -832,10 +829,8 @@ fe_idle_add (void *func, void *data)
|
|||||||
void
|
void
|
||||||
fe_ctrl_gui (session *sess, fe_gui_action action, int arg)
|
fe_ctrl_gui (session *sess, fe_gui_action action, int arg)
|
||||||
{
|
{
|
||||||
/* only one action type handled for now, but could add more */
|
|
||||||
switch (action)
|
switch (action)
|
||||||
{
|
{
|
||||||
/* gui focus is really the only case zoitechat-text needs to worry about */
|
|
||||||
case FE_GUI_FOCUS:
|
case FE_GUI_FOCUS:
|
||||||
current_sess = sess;
|
current_sess = sess;
|
||||||
current_tab = sess;
|
current_tab = sess;
|
||||||
|
|||||||
Reference in New Issue
Block a user