[gtk+/wip/baedert/drawing: 168/301] 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: 168/301] spinbutton: Remove call to GtkSpinButton API
- Date: Fri, 26 May 2017 10:48:05 +0000 (UTC)
commit af050491259f178b147d680f49fa019dc94799aa
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]