[gtk/wip/baedert/for-master: 2/15] scale: Make a function shorter
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 2/15] scale: Make a function shorter
- Date: Sat, 10 Aug 2019 17:53:17 +0000 (UTC)
commit 42e6630c3e89367d4334f5a7a4d1e0c866bcfab7
Author: Timm Bäder <mail baedert org>
Date: Fri Aug 9 19:24:32 2019 +0200
scale: Make a function shorter
gtk/gtkscale.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 9a51d1eafb..538b86ac59 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -1185,17 +1185,15 @@ gtk_scale_set_value_pos (GtkScale *scale,
GtkPositionType pos)
{
GtkScalePrivate *priv = gtk_scale_get_instance_private (scale);
- GtkWidget *widget;
g_return_if_fail (GTK_IS_SCALE (scale));
if (priv->value_pos != pos)
{
priv->value_pos = pos;
- widget = GTK_WIDGET (scale);
update_value_position (scale);
- gtk_widget_queue_resize (widget);
+ gtk_widget_queue_resize (GTK_WIDGET (scale));
g_object_notify_by_pspec (G_OBJECT (scale), properties[PROP_VALUE_POS]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]