Updated the join dialog to use gtkutil stock helpers for the network image and OK button with an explicit label.

Clarified GTK2-specific stock widget handling with explicit #elif !HAVE_GTK3 guards in the helper implementations.
This commit is contained in:
2026-01-30 08:21:55 -07:00
parent 2d3e1f8122
commit a2b35c289c
2 changed files with 5 additions and 4 deletions

View File

@@ -128,7 +128,7 @@ gtkutil_image_new_from_stock (const char *stock, GtkIconSize size)
const char *icon_name = gtkutil_icon_name_from_stock (stock);
return gtk_image_new_from_icon_name (icon_name, size);
#else
#elif !HAVE_GTK3
return gtk_image_new_from_stock (stock, size);
#endif
}
@@ -151,7 +151,7 @@ gtkutil_button_new_from_stock (const char *stock, const char *label)
}
return button;
#else
#elif !HAVE_GTK3
if (stock)
return gtk_button_new_from_stock (stock);
if (label)