- if (sweep == NULL) continue;
- char *label = g_strdup_printf("Tilt: %.2f (%s)",
- sweep->h.elev, vol->h.type_str);
- button = gtk_radio_button_new_with_label_from_widget(
- GTK_RADIO_BUTTON(button), label);
+ if (sweep == NULL || sweep->h.elev == 0) continue;
+ cols++;
+
+ /* Column label */
+ g_object_get(table, "n-columns", &cur_cols, NULL);
+ if (cols > cur_cols) {
+ g_snprintf(col_label_str, 64, "<b>%.2f°</b>", sweep->h.elev);
+ col_label = gtk_label_new(col_label_str);
+ gtk_label_set_use_markup(GTK_LABEL(col_label), TRUE);
+ gtk_widget_set_size_request(col_label, 40, -1);
+ gtk_table_attach(GTK_TABLE(table), col_label, cols-1,cols, 0,1, GTK_FILL,GTK_FILL, 0,0);
+ }
+
+ /* Button */
+ //g_snprintf(button_str, 64, "%c: %.2f", vol->h.type_str[0], sweep->h.elev);
+ //button = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(button), button_str);
+ button = gtk_radio_button_new_from_widget(GTK_RADIO_BUTTON(button));
+ gtk_widget_set_size_request(button, -1, 22);