Commit 67274bb2958148faf38ac790a1d8bdba372c3ad7
1 parent
1c49b810
Exists in
master
and in
1 other branch
Fixing toglle checkbox tooltips.
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
src/dialogs/hostselect.c
| ... | ... | @@ -462,7 +462,9 @@ static void V3270HostSelectWidget_init(V3270HostSelectWidget *widget) |
| 462 | 462 | { |
| 463 | 463 | widget->input.toggles[toggle] = GTK_TOGGLE_BUTTON(gtk_check_button_new_with_label(gettext(descriptor->label))); |
| 464 | 464 | |
| 465 | - if(descriptor->summary) | |
| 465 | + if(descriptor->description && *descriptor->description) | |
| 466 | + gtk_widget_set_tooltip_text(GTK_WIDGET(widget->input.toggles[toggle]),gettext(descriptor->description)); | |
| 467 | + else if(descriptor->summary && *descriptor->summary) | |
| 466 | 468 | gtk_widget_set_tooltip_text(GTK_WIDGET(widget->input.toggles[toggle]),gettext(descriptor->summary)); |
| 467 | 469 | |
| 468 | 470 | gtk_widget_set_halign(GTK_WIDGET(widget->input.toggles[toggle]),GTK_ALIGN_START); | ... | ... |