Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added slider tooltips to slider labels as well as to sliders themselves

  • Loading branch information...
commit bb6c80ed50de225ff5ccafba402044b1ff54e764 1 parent a356368
@smcameron authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 gexplodomatica.c
View
4 gexplodomatica.c
@@ -249,8 +249,10 @@ static void add_slider(GtkWidget *container, int row,
gtk_label_set_justify(GTK_LABEL(s->label), GTK_JUSTIFY_RIGHT);
s->slider = gtk_hscale_new_with_range(r1, r2, inc);
gtk_range_set_value(GTK_RANGE(s->slider), initial_value);
- if (tooltiptext)
+ if (tooltiptext) {
gtk_widget_set_tooltip_text(s->slider, tooltiptext);
+ gtk_widget_set_tooltip_text(s->label, tooltiptext);
+ }
gtk_table_attach(GTK_TABLE(container), s->label, 0, 1, row, row + 1, 0, 0, 5, 1);
gtk_table_attach(GTK_TABLE(container), s->slider, 1, 2, row, row + 1,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 5, 1);
Please sign in to comment.
Something went wrong with that request. Please try again.