[gtk+/wip/baedert/drawing: 70/355] spinbutton: Remove call to GtkSpinButton API
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 70/355] spinbutton: Remove call to GtkSpinButton API
- Date: Tue, 11 Jul 2017 16:34:12 +0000 (UTC)
commit 358f2b62435c505de9b54db4d4cb729952c98744
Author: Timm Bäder <mail baedert org>
Date: Thu May 4 18:24:37 2017 +0200
spinbutton: Remove call to GtkSpinButton API
The condition will never be true since spinbuttons aren't entries
anymore.
gtk/gtkentry.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 01d30cd..3e0b611 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -51,7 +51,6 @@
#include "gtkseparatormenuitem.h"
#include "gtkselection.h"
#include "gtksettings.h"
-#include "gtkspinbutton.h"
#include "gtktextutil.h"
#include "gtkwindow.h"
#include "gtktreeview.h"
@@ -3200,13 +3199,9 @@ gtk_entry_measure (GtkCssGadget *gadget,
char_pixels = (MAX (char_width, digit_width) + PANGO_SCALE - 1) / PANGO_SCALE;
if (priv->width_chars < 0)
- {
- min = MIN_ENTRY_WIDTH;
- }
+ min = MIN_ENTRY_WIDTH;
else
- {
- min = char_pixels * priv->width_chars;
- }
+ min = char_pixels * priv->width_chars;
if (priv->max_width_chars < 0)
nat = min;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]