ui/gtk/button.c

changeset 838
934534c367a4
parent 823
1e1df80772ed
child 840
f74250eda598
--- a/ui/gtk/button.c	Sun Oct 12 08:03:34 2025 +0200
+++ b/ui/gtk/button.c	Sun Oct 12 08:07:27 2025 +0200
@@ -104,7 +104,7 @@
 }
 
 UIWIDGET ui_button_create(UiObject *obj, UiButtonArgs *args) {
-    GtkWidget *button = ui_create_button(obj, args->label, args->icon, NULL/*tooltip*/, args->onclick, args->onclickdata, 0, FALSE);
+    GtkWidget *button = ui_create_button(obj, args->label, args->icon, args->tooltip, args->onclick, args->onclickdata, 0, FALSE);
     ui_set_name_and_style(button, args->name, args->style_class);
     ui_set_widget_groups(obj->ctx, button, args->groups);
     UiContainerPrivate *ct = (UiContainerPrivate*)obj->container_end;
@@ -303,7 +303,7 @@
             widget,
             args->label,
             args->icon,
-            NULL, // tooltip
+            args->tooltip,
             args->varname,
             args->value,
             args->onchange,

mercurial