From b3a0288fd9e4c5d18c0f17393d698e23f1040ed4 Mon Sep 17 00:00:00 2001 From: deepend Date: Wed, 25 Feb 2026 02:01:11 -0700 Subject: [PATCH] Cleaned up stale inline comments in the tab scrolling handlers by removing outdated explanatory text while keeping behavior unchanged (tab_left_is_moving / tab_right_is_moving reset paths). Removed an old commented-out gtk_container_set_border_width(...) line that was dead/commented code in cv_tabs_init. Simplified the tab-switch condition by removing a legacy commented expression from if (is_switching). --- src/fe-gtk/chanview-tabs.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/fe-gtk/chanview-tabs.c b/src/fe-gtk/chanview-tabs.c index d174ba96..60643cef 100644 --- a/src/fe-gtk/chanview-tabs.c +++ b/src/fe-gtk/chanview-tabs.c @@ -190,11 +190,11 @@ tab_scroll_left_up_clicked (GtkWidget *widget, chanview *cv) gtk_adjustment_set_value (adj, new_value); - tab_left_is_moving = 0; /* hSP: set to false in case we didnt get stopped (the normal case) */ + tab_left_is_moving = 0; } else { - tab_left_is_moving = 0; /* hSP: jump directly to next element if user is clicking faster than we can scroll.. */ + tab_left_is_moving = 0; } } @@ -239,11 +239,11 @@ tab_scroll_right_down_clicked (GtkWidget *widget, chanview *cv) gtk_adjustment_set_value (adj, new_value); - tab_right_is_moving = 0; /* hSP: set to false in case we didnt get stopped (the normal case) */ + tab_right_is_moving = 0; } else { - tab_right_is_moving = 0; /* hSP: jump directly to next element if user is clicking faster than we can scroll.. */ + tab_right_is_moving = 0; } } @@ -332,7 +332,6 @@ cv_tabs_init (chanview *cv) ((tabview *)cv)->outer = outer; g_signal_connect (G_OBJECT (outer), "size_allocate", G_CALLBACK (cv_tabs_sizealloc), cv); -/* gtk_container_set_border_width (GTK_CONTAINER (outer), 2);*/ gtk_widget_show (outer); viewport = gtk_viewport_new (0, 0); @@ -574,7 +573,7 @@ tab_pressed_cb (GtkToggleButton *tab, chan *ch) ignore_toggle = FALSE; cv->focused = ch; - if (/*tab->active*/is_switching) + if (is_switching) /* call the focus callback */ cv->cb_focus (cv, ch, ch->tag, ch->userdata); }