From 5b1a58195e2bde513d754705294d342573e145a7 Mon Sep 17 00:00:00 2001 From: deepend Date: Fri, 23 Jan 2026 21:16:43 -0700 Subject: [PATCH] Verified the requested #if HAVE_GTK3 / #if !HAVE_GTK3 alignment branches are already present across the noted src/fe-gtk/ files, then refined the GTK3 join dialog icon alignment by adding a small top margin to better approximate the legacy y = 0.06 alignment behavior. Removed a lingering commented-out gtk_misc_set_alignment call in servlistgui.c so the remaining legacy alignment calls surfaced by search are all active and guarded. --- src/fe-gtk/joind.c | 1 + src/fe-gtk/servlistgui.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fe-gtk/joind.c b/src/fe-gtk/joind.c index 632f4211..6aa9f2a4 100644 --- a/src/fe-gtk/joind.c +++ b/src/fe-gtk/joind.c @@ -155,6 +155,7 @@ joind_show_dialog (server *serv) #if HAVE_GTK3 gtk_widget_set_halign (image1, GTK_ALIGN_CENTER); gtk_widget_set_valign (image1, GTK_ALIGN_START); + gtk_widget_set_margin_top (image1, 2); #elif !HAVE_GTK3 gtk_misc_set_alignment (GTK_MISC (image1), 0.5f, 0.06f); #endif diff --git a/src/fe-gtk/servlistgui.c b/src/fe-gtk/servlistgui.c index 58579888..8bcaaf0c 100644 --- a/src/fe-gtk/servlistgui.c +++ b/src/fe-gtk/servlistgui.c @@ -2107,7 +2107,7 @@ servlist_open_networks (void) gtk_table_attach (GTK_TABLE (table1), label7, 0, 1, 4, 5, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); - gtk_misc_set_alignment (GTK_MISC (label7), 0, 0.5);*/ + */ entry_nick1 = entry1 = gtk_entry_new (); gtk_entry_set_text (GTK_ENTRY (entry1), prefs.hex_irc_nick1);