From e0bae25136e8a5249430a6415d5b62d145d4b182 Mon Sep 17 00:00:00 2001 From: deepend Date: Fri, 30 Jan 2026 18:56:29 -0700 Subject: [PATCH] =?UTF-8?q?Added=20a=20GTK3-specific=20vertical=20separato?= =?UTF-8?q?r=20in=20the=20channel=20list=20while=20keeping=20the=20GTK2=20?= =?UTF-8?q?separator=20for=20non-GTK3=20builds,=20preserving=20packing=20a?= =?UTF-8?q?nd=20visibility=20behavior.=20Updated=20the=20horizontal=20tab?= =?UTF-8?q?=20separator=20creation=20to=20use=20GTK3=E2=80=99s=20vertical?= =?UTF-8?q?=20separator=20API=20with=20a=20GTK2=20fallback,=20keeping=20th?= =?UTF-8?q?e=20same=20packing=20and=20show=20logic.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fe-gtk/chanlist.c | 4 ++++ src/fe-gtk/chanview-tabs.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/fe-gtk/chanlist.c b/src/fe-gtk/chanlist.c index e8358d43..0957da7a 100644 --- a/src/fe-gtk/chanlist.c +++ b/src/fe-gtk/chanlist.c @@ -1157,7 +1157,11 @@ chanlist_opengui (server *serv, int do_refresh) /* ============================================================= */ +#if HAVE_GTK3 + wid = gtk_separator_new (GTK_ORIENTATION_VERTICAL); +#else wid = gtk_vseparator_new (); +#endif #if HAVE_GTK3 chanlist_grid_attach (table, wid, 2, 0, 1, 5, FALSE, FALSE, GTK_ALIGN_FILL, GTK_ALIGN_FILL); diff --git a/src/fe-gtk/chanview-tabs.c b/src/fe-gtk/chanview-tabs.c index 22caeca8..5407e170 100644 --- a/src/fe-gtk/chanview-tabs.c +++ b/src/fe-gtk/chanview-tabs.c @@ -539,7 +539,11 @@ tab_add_real (chanview *cv, GtkWidget *tab, chan *ch) #elif !HAVE_GTK3 box = gtk_hbox_new (FALSE, 0); #endif +#if HAVE_GTK3 + sep = gtk_separator_new (GTK_ORIENTATION_VERTICAL); +#elif !HAVE_GTK3 sep = gtk_vseparator_new (); +#endif } gtk_box_pack_end (GTK_BOX (box), sep, 0, 0, 4);