gtk/gtkcalendar.c: examples/calendar/gcalendar.c: remove HAVE_FEATURES

Sun Sep 27 22:02:48 CDT 1998 Shawn T. Amundson <amundson@gtk.org>

        * gtk/gtkcalendar.h:
          gtk/gtkcalendar.c:
          examples/calendar/gcalendar.c: remove HAVE_FEATURES stuff
This commit is contained in:
CDT 1998 Shawn T. Amundson 1998-09-28 03:20:03 +00:00 committed by Shawn Amundson
parent 31045ef4f2
commit 3261e656e5
9 changed files with 42 additions and 19 deletions

View File

@ -1,3 +1,9 @@
Sun Sep 27 22:02:48 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:
gtk/gtkcalendar.c:
examples/calendar/gcalendar.c: remove HAVE_FEATURES stuff
Sun Sep 27 02:18:06 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:

View File

@ -1,3 +1,9 @@
Sun Sep 27 22:02:48 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:
gtk/gtkcalendar.c:
examples/calendar/gcalendar.c: remove HAVE_FEATURES stuff
Sun Sep 27 02:18:06 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:

View File

@ -1,3 +1,9 @@
Sun Sep 27 22:02:48 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:
gtk/gtkcalendar.c:
examples/calendar/gcalendar.c: remove HAVE_FEATURES stuff
Sun Sep 27 02:18:06 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:

View File

@ -1,3 +1,9 @@
Sun Sep 27 22:02:48 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:
gtk/gtkcalendar.c:
examples/calendar/gcalendar.c: remove HAVE_FEATURES stuff
Sun Sep 27 02:18:06 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:

View File

@ -1,3 +1,9 @@
Sun Sep 27 22:02:48 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:
gtk/gtkcalendar.c:
examples/calendar/gcalendar.c: remove HAVE_FEATURES stuff
Sun Sep 27 02:18:06 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:

View File

@ -1,3 +1,9 @@
Sun Sep 27 22:02:48 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:
gtk/gtkcalendar.c:
examples/calendar/gcalendar.c: remove HAVE_FEATURES stuff
Sun Sep 27 02:18:06 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:

View File

@ -1,3 +1,9 @@
Sun Sep 27 22:02:48 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:
gtk/gtkcalendar.c:
examples/calendar/gcalendar.c: remove HAVE_FEATURES stuff
Sun Sep 27 02:18:06 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:

View File

@ -140,7 +140,6 @@ calendar_toggle_flag(GtkWidget * toggle, CalendarData *calendar)
calendar_set_flags(calendar);
}
#ifdef GTK_HAVE_FEATURES_1_1_0
void
calendar_font_selection_ok(GtkWidget * button, CalendarData *calendar)
{
@ -193,7 +192,6 @@ calendar_select_font(GtkWidget * button, CalendarData *calendar)
gtk_widget_destroy (window);
}
#endif /* GTK_HAVE_FEATURES_1_1_0 */
void
create_calendar()
@ -299,7 +297,6 @@ create_calendar()
gtk_box_pack_start (GTK_BOX (vbox3), toggle, TRUE, TRUE, 0);
calendar_data.flag_checkboxes[i]=toggle;
}
#ifdef GTK_HAVE_FEATURES_1_1_0
/* Build the right font-button */
button = gtk_button_new_with_label("Font...");
gtk_signal_connect (GTK_OBJECT (button),
@ -307,7 +304,6 @@ create_calendar()
GTK_SIGNAL_FUNC(calendar_select_font),
&calendar_data);
gtk_box_pack_start (GTK_BOX (vbox2), button, FALSE, FALSE, 0);
#endif /* GTK_HAVE_FEATURES_1_1_0 */
/*
* Build the Signal-event part.

View File

@ -1022,13 +1022,11 @@ gtk_calendar_size_request (GtkWidget *widget,
gint day_font_lbearing;
gint day_font_rbearing;
gint day_font_width;
#ifdef GTK_HAVE_FEATURES_1_1_0
gint lbearing;
gint rbearing;
gint ascent;
gint descent;
gint width;
#endif /* GTK_HAVE_FEATURES_1_1_0 */
calendar = GTK_CALENDAR (widget);
@ -1084,7 +1082,6 @@ gtk_calendar_size_request (GtkWidget *widget,
if (calendar->display_flags & GTK_CALENDAR_SHOW_DAY_NAMES)
for (i = 0; i < 7; i++)
{
#ifdef GTK_HAVE_FEATURES_1_1_0
gdk_text_extents (LABEL_FONT (widget),
default_abbreviated_dayname[i],
strlen(default_abbreviated_dayname[i]),
@ -1098,13 +1095,6 @@ gtk_calendar_size_request (GtkWidget *widget,
ascent);
calendar->max_label_char_descent = MAX (calendar->max_label_char_descent
, descent);
#else /* not GTK_HAVE_FEATURES_1_1_0 */
calendar->min_day_width = MAX (calendar->min_day_width,
gdk_string_measure (LABEL_FONT (widget),
default_abbreviated_dayname[i]));
calendar->max_label_char_ascent = LABEL_FONT (widget)->ascent;
calendar->max_label_char_descent = LABEL_FONT (widget)->descent;
#endif /* not GTK_HAVE_FEATURES_1_1_0 */
}
calendar->max_week_char_width = 0;
@ -1145,7 +1135,6 @@ gtk_calendar_size_request (GtkWidget *widget,
else
calendar->day_name_h = 0;
#ifdef GTK_HAVE_FEATURES_1_1_0
gdk_text_extents (DAY_FONT (widget),
"0123456789",
10,
@ -1154,10 +1143,6 @@ gtk_calendar_size_request (GtkWidget *widget,
&width,
&calendar->max_day_char_ascent,
&calendar->max_day_char_descent);
#else /* not GTK_HAVE_FEATURES_1_1_0 */
calendar->max_day_char_ascent = DAY_FONT (widget)->ascent;
calendar->max_day_char_descent = DAY_FONT (widget)->descent;
#endif /* not GTK_HAVE_FEATURES_1_1_0 */
calendar->main_h = (CALENDAR_MARGIN + calendar_margin
+ 6 * (calendar->max_day_char_ascent