[gtk+] spinbutton: expand the entry
- From: Matthias Clasen <matthiasc src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+] spinbutton: expand the entry
 
- Date: Thu, 20 Jul 2017 01:59:56 +0000 (UTC)
 
commit bd446c48e9e7f8f45d0ce9743de229ff6c56db93
Author: Timm Bäder <mail baedert org>
Date:   Sat Jul 15 08:44:09 2017 +0200
    spinbutton: expand the entry
    
    It's supposed to fill the entire spinbutton allocation apart from the
    buttons
 gtk/gtkspinbutton.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 71498d9..464ca93 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -870,6 +870,8 @@ gtk_spin_button_init (GtkSpinButton *spin_button)
   priv->entry = gtk_entry_new ();
   gtk_entry_set_width_chars (GTK_ENTRY (priv->entry), 0);
   gtk_entry_set_max_width_chars (GTK_ENTRY (priv->entry), 0);
+  gtk_widget_set_hexpand (priv->entry, TRUE);
+  gtk_widget_set_vexpand (priv->entry, TRUE);
   g_signal_connect (priv->entry, "activate", G_CALLBACK (gtk_spin_button_activate), spin_button);
   gtk_container_add (GTK_CONTAINER (priv->box), priv->entry);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]