[gtk+/wip/baedert/drawing: 178/183] button: Don't care about sizing if no child is set
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 178/183] button: Don't care about sizing if no child is set
- Date: Sat, 20 May 2017 13:31:27 +0000 (UTC)
commit 35b055aaf0c88b4b39a5957d8dc92562599b5d66
Author: Timm Bäder <mail baedert org>
Date: Thu May 18 10:09:39 2017 +0200
button: Don't care about sizing if no child is set
We don't need to care in this case since the default values should
always be assumed to be 0, and setting a baseline of 0 is just wrong
when orientation == HORIZONTAL, it should be -1 (or unset).
gtk/gtkbutton.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 90f3083..cc140c6 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -1024,15 +1024,6 @@ gtk_button_measure_ (GtkWidget *widget,
minimum, natural,
minimum_baseline, natural_baseline);
}
- else
- {
- *minimum = 0;
- *natural = 0;
- if (minimum_baseline)
- *minimum_baseline = 0;
- if (natural_baseline)
- *natural_baseline = 0;
- }
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]