[gtk+] Do not use deprecated API in docs and examples
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Do not use deprecated API in docs and examples
- Date: Wed, 8 Sep 2010 15:11:27 +0000 (UTC)
commit ca3348f8f1a0021317f43dfb92a6179038ad50dd
Author: Javier Jardón <jjardon gnome org>
Date: Wed Sep 8 17:10:07 2010 +0200
Do not use deprecated API in docs and examples
gtk_calendar_display_options() was deprecated and removed. Use
gtk_calendar_set_display_options() instead
docs/tutorial/gtk-tut.sgml | 14 +++-----------
examples/calendar/calendar.c | 2 +-
2 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/docs/tutorial/gtk-tut.sgml b/docs/tutorial/gtk-tut.sgml
index 734fe2e..d9ceab2 100755
--- a/docs/tutorial/gtk-tut.sgml
+++ b/docs/tutorial/gtk-tut.sgml
@@ -5369,8 +5369,8 @@ widget.</para>
the widget both looks and operates by using the function</para>
<programlisting role="C">
-void gtk_calendar_display_options( GtkCalendar *calendar,
- GtkCalendarDisplayOptions flags );
+void gtk_calendar_set_display_options( GtkCalendar *calendar,
+ GtkCalendarDisplayOptions flags );
</programlisting>
<para>The <literal>flags</literal> argument can be formed by combining either of the
@@ -5405,14 +5405,6 @@ number for each week should be displayed down the left side of the
calendar. (eg. Jan 1 = Week 1,Dec 31 = Week 52).</para>
</listitem>
</varlistentry>
-<varlistentry>
-<term><literal>GTK_CALENDAR_WEEK_START_MONDAY</literal></term>
-<listitem><para>this option states that the
-calander week will start on Monday instead of Sunday which is the
-default. This only affects the order in which days are displayed from
-left to right.</para>
-</listitem>
-</varlistentry>
</variablelist>
<para>The following functions are used to set the the currently displayed
@@ -5678,7 +5670,7 @@ static void calendar_set_flags( CalendarData *calendar )
options = options + (1 << i);
}
if (calendar->window)
- gtk_calendar_display_options (GTK_CALENDAR (calendar->window), options);
+ gtk_calendar_set_display_options (GTK_CALENDAR (calendar->window), options);
}
static void calendar_toggle_flag( GtkWidget *toggle,
diff --git a/examples/calendar/calendar.c b/examples/calendar/calendar.c
index f6808aa..b884b25 100644
--- a/examples/calendar/calendar.c
+++ b/examples/calendar/calendar.c
@@ -160,7 +160,7 @@ static void calendar_set_flags( CalendarData *calendar )
options = options + (1 << i);
}
if (calendar->window)
- gtk_calendar_display_options (GTK_CALENDAR (calendar->window), options);
+ gtk_calendar_set_display_options (GTK_CALENDAR (calendar->window), options);
}
static void calendar_toggle_flag( GtkWidget *toggle,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]