mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-15 10:10:19 +00:00
Added GTK3 expand/alignment setup before attaching widgets in banlist, chanlist, DCC, and main window layouts to mirror legacy table options.
Introduced a servlist table-attach helper and applied it across servlist UI attachments to keep GTK_FILL/GTK_EXPAND confined to GTK2-only paths while setting GTK3 alignment/margins explicitly.
This commit is contained in:
@@ -857,9 +857,11 @@ banlist_opengui (struct session *sess)
|
||||
g_signal_connect (G_OBJECT (banl->checkboxes[i]), "toggled",
|
||||
G_CALLBACK (banlist_toggle), banl);
|
||||
#if HAVE_GTK3
|
||||
gtk_grid_attach (GTK_GRID (table), banl->checkboxes[i], i + 1, 0, 1, 1);
|
||||
gtk_widget_set_hexpand (banl->checkboxes[i], FALSE);
|
||||
gtk_widget_set_vexpand (banl->checkboxes[i], FALSE);
|
||||
gtk_widget_set_halign (banl->checkboxes[i], GTK_ALIGN_START);
|
||||
gtk_widget_set_valign (banl->checkboxes[i], GTK_ALIGN_CENTER);
|
||||
gtk_grid_attach (GTK_GRID (table), banl->checkboxes[i], i + 1, 0, 1, 1);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), banl->checkboxes[i], i+1, i+2, 0, 1, GTK_FILL, GTK_FILL, 0, 0);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user