Fix scale length

The vertical scales should really be of the same length, so
add an empty value to be drawn by the other scale.
This commit is contained in:
Matthias Clasen 2016-05-10 15:41:03 -04:00
parent 49d5c9ed14
commit f8bc35b9a6
2 changed files with 9 additions and 1 deletions

View File

@ -1625,6 +1625,12 @@ reset_icon_size (GtkWidget *iv)
gtk_widget_queue_resize (iv);
}
static gchar *
scale_format_value (GtkScale *scale, gdouble value)
{
return g_strdup (" ");
}
static void
activate (GApplication *app)
{
@ -1690,6 +1696,7 @@ activate (GApplication *app)
gtk_builder_add_callback_symbol (builder, "increase_icon_size", (GCallback)increase_icon_size);
gtk_builder_add_callback_symbol (builder, "decrease_icon_size", (GCallback)decrease_icon_size);
gtk_builder_add_callback_symbol (builder, "reset_icon_size", (GCallback)reset_icon_size);
gtk_builder_add_callback_symbol (builder, "scale_format_value", (GCallback)scale_format_value);
gtk_builder_connect_signals (builder, NULL);

View File

@ -1254,7 +1254,8 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="adjustment">adjustment1</property>
<property name="restrict_to_fill_level">0</property>
<property name="fill_level">75</property>
<property name="draw_value">0</property>
<property name="draw_value">1</property>
<signal name="format-value" handler="scale_format_value"/>
</object>
<packing>
<property name="position">1</property>