[gtk+] alignment: Remove dead assignment
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] alignment: Remove dead assignment
- Date: Tue, 13 Aug 2013 14:25:47 +0000 (UTC)
commit ed5c35306d6586ab431de31ec08785f8bee44573
Author: Benjamin Otte <otte redhat com>
Date: Sun Aug 4 17:38:53 2013 +0200
alignment: Remove dead assignment
.. and clean up code
gtk/gtkalignment.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkalignment.c b/gtk/gtkalignment.c
index 3f4a0de..cdf5ae3 100644
--- a/gtk/gtkalignment.c
+++ b/gtk/gtkalignment.c
@@ -509,18 +509,15 @@ gtk_alignment_size_allocate (GtkWidget *widget,
GtkWidget *child;
gint width, height;
gint border_width;
- gint padding_horizontal, padding_vertical;
gint baseline;
- padding_horizontal = 0;
- padding_vertical = 0;
-
gtk_widget_set_allocation (widget, allocation);
bin = GTK_BIN (widget);
child = gtk_bin_get_child (bin);
if (child && gtk_widget_get_visible (child))
{
+ gint padding_horizontal, padding_vertical;
gint child_nat_width;
gint child_nat_height;
gint child_width, child_height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]