From f01ef519f3e2c022dd38db5dbaaee7df73e4f1d0 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Mon, 25 Jul 2011 09:33:02 +0200 Subject: [PATCH] Minimized size request. Added silent compilation. --- configure.ac | 4 +++- src/gtkdateentry.c | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5d507b5..b1a387b 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,9 @@ AC_INIT([GtkDateEntry], [0.0.4], [azagli@libero.it]) AC_CONFIG_SRCDIR([src/gtkdateentry.c]) AC_CONFIG_HEADER([config.h]) -AM_INIT_AUTOMAKE +AM_INIT_AUTOMAKE(-Wall) + +m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) AM_MAINTAINER_MODE diff --git a/src/gtkdateentry.c b/src/gtkdateentry.c index b347904..5e913f8 100644 --- a/src/gtkdateentry.c +++ b/src/gtkdateentry.c @@ -189,6 +189,7 @@ gtk_date_entry_init (GtkDateEntry *date) priv->day = gtk_masked_entry_new (); gtk_date_entry_change_mask (date); + gtk_entry_set_width_chars (GTK_ENTRY (priv->day), 10); gtk_box_pack_start (GTK_BOX (priv->hbox), priv->day, TRUE, TRUE, 0); gtk_widget_show (priv->day); @@ -228,10 +229,13 @@ gtk_date_entry_init (GtkDateEntry *date) G_CALLBACK (calendar_on_day_selected_double_click), (gpointer)date); priv->spnHours = gtk_spin_button_new_with_range (0, 23, 1); + gtk_entry_set_width_chars (GTK_ENTRY (priv->spnHours), 2); priv->lblMinutes = gtk_label_new (":"); priv->spnMinutes = gtk_spin_button_new_with_range (0, 59, 1); + gtk_entry_set_width_chars (GTK_ENTRY (priv->spnMinutes), 2); priv->lblSeconds = gtk_label_new (":"); priv->spnSeconds = gtk_spin_button_new_with_range (0, 59, 1); + gtk_entry_set_width_chars (GTK_ENTRY (priv->spnSeconds), 2); gtk_spin_button_set_digits (GTK_SPIN_BUTTON (priv->spnHours), 0); gtk_spin_button_set_digits (GTK_SPIN_BUTTON (priv->spnMinutes), 0); gtk_spin_button_set_digits (GTK_SPIN_BUTTON (priv->spnSeconds), 0); -- 2.49.0