fix toolbar togglebutton tooltip (GTK)

Sun, 12 Oct 2025 08:30:29 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 12 Oct 2025 08:30:29 +0200
changeset 839
f1b5e7dd27b9
parent 838
934534c367a4
child 840
f74250eda598

fix toolbar togglebutton tooltip (GTK)

ui/gtk/headerbar.c file | annotate | diff | comparison | revisions
--- a/ui/gtk/headerbar.c	Sun Oct 12 08:07:27 2025 +0200
+++ b/ui/gtk/headerbar.c	Sun Oct 12 08:30:29 2025 +0200
@@ -179,7 +179,7 @@
     GtkWidget *button = gtk_toggle_button_new();
     ui_set_widget_groups(obj->ctx, button, item->args.groups);
     WIDGET_ADD_CSS_CLASS(button, "flat");
-    ui_setup_togglebutton(obj, button, item->args.label, item->args.icon, NULL/*tooltip*/, item->args.varname, NULL, item->args.onchange, item->args.onchangedata, 0);
+    ui_setup_togglebutton(obj, button, item->args.label, item->args.icon, item->args.tooltip, item->args.varname, NULL, item->args.onchange, item->args.onchangedata, 0);
     headerbar_add(headerbar, box, button, pos);
 }
 

mercurial