cvs: php-gtk-doc /en/reference/gdk gdk-functions.xml gdkfont.xml /en/reference/gtk gtk-functions.xml gtkarrow.xml gtkcalendar.xml gtkeditable.xml
gtktext.xml

From: Date: Thu, 21 Feb 2002 01:08:43 +0000
Subject: cvs: php-gtk-doc /en/reference/gdk gdk-functions.xml gdkfont.xml /en/reference/gtk gtk-functions.xml gtkarrow.xml gtkcalendar.xml gtkeditable.xml
gtktext.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-415@lists.php.net to get a copy of this message
sfox Wed Feb 20 20:08:43 2002 EDT Modified files: /php-gtk-doc/en/reference/gdk gdk-functions.xml gdkfont.xml /php-gtk-doc/en/reference/gtk gtk-functions.xml gtkarrow.xml gtkcalendar.xml gtkeditable.xml gtktext.xml Log: GtkCalendar, and some typos etc

Index: php-gtk-doc/en/reference/gdk/gdk-functions.xml diff -u php-gtk-doc/en/reference/gdk/gdk-functions.xml:1.4 php-gtk-doc/en/reference/gdk/gdk-functions.xml:1.5 --- php-gtk-doc/en/reference/gdk/gdk-functions.xml:1.4 Mon Feb 4 01:15:49 2002 +++ php-gtk-doc/en/reference/gdk/gdk-functions.xml Wed Feb 20 20:08:40 2002 @@ -597,6 +597,12 @@ <classname>GtkFontSelectionDialog</classname> widgets. </simpara> </note> + <simpara> + Note that there are sizing issues in <classname>GdkFont</classname> in + the version of GTK+ currently used in PHP-GTK under win32. As a result, + <emphasis>the point size should always be set in win32</emphasis> - + using the pixel size may give unexpected results. + </simpara> </desc> </method> @@ -627,8 +633,8 @@ use the first font in the set that achieves a match. </simpara> <simpara> - In win32 currently, the <function>fontset_load()</function> method is - used internally regardless of whether this or + In win32, the <function>fontset_load()</function> method is used + internally regardless of whether this or <function>gdk::font_load()</function> is called. </simpara> </desc> Index: php-gtk-doc/en/reference/gdk/gdkfont.xml diff -u php-gtk-doc/en/reference/gdk/gdkfont.xml:1.3 php-gtk-doc/en/reference/gdk/gdkfont.xml:1.4 --- php-gtk-doc/en/reference/gdk/gdkfont.xml:1.3 Wed Feb 6 09:10:47 2002 +++ php-gtk-doc/en/reference/gdk/gdkfont.xml Wed Feb 20 20:08:40 2002 @@ -38,7 +38,7 @@ <funcsynopsis> <funcprototype> <funcdef>array <function>extents</function></funcdef> - <paramdef>void</paramdef> + <paramdef>string <parameter>text_string</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -64,15 +64,15 @@ </simpara> <simpara> The ascent and descent are the pixel measurements of the extents of - the font above and below the baseline. + the current string above and below the baseline. </simpara> <simpara> If you're working with unix, all the above should be correct. If you're using win32, the left bearing will always be <literal>0</literal>, the right bearing will match the width, the ascent is actually the - line-height + 1 pixel, and the descent - even more strangely - is the - descent + 1 pixel. Use <classname>GdkFont</classname> properties if you - need the <propname class="GdkFont">ascent</propname> and + line-height + 1 pixel, and the descent is the descent + 1 pixel. Use + <classname>GdkFont</classname> properties if you need the + <propname class="GdkFont">ascent</propname> and <propname class="GdkFont">descent</propname> values under win32. </simpara> </desc> @@ -82,7 +82,7 @@ <funcsynopsis> <funcprototype> <funcdef>int <function>measure</function></funcdef> - <paramdef>void</paramdef> + <paramdef>string <parameter>text_string</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -107,27 +107,26 @@ <funcsynopsis> <funcprototype> <funcdef>int <function>height</function></funcdef> - <paramdef>void</paramdef> + <paramdef>string <parameter>text_string</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - The <function class="GdkFont">height()</function> method is a - particularly useful one. It returns the line height, measured - in pixels. + Returns the line height, measured in pixels. </shortdesc> <desc> <simpara> The return value of <function class="GdkFont">height()</function> is arrived at by summing the values of <parameter>ascent</parameter> and <parameter>descent</parameter> returned by - <function class="GdkFont">extents()</function>. + <function class="GdkFont">extents()</function> and relating to the + current string. </simpara> <simpara> Under win32, this is a bogus value. Add the values returned by the <classname>GdkFont</classname> properties <propname class="GdkFont">ascent</propname> and - <propname class="GdkFont">descent</propname> to get the correct value - for logical height if you are using or intending to port to Windows. + <propname class="GdkFont">descent</propname> to get the value of the + font's height. </simpara> <simpara> The value of the height is the line-height, given in pixels, and @@ -142,7 +141,7 @@ <funcsynopsis> <funcprototype> <funcdef>int <function>width</function></funcdef> - <paramdef>void</paramdef> + <paramdef>string <parameter>text_string</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -180,7 +179,9 @@ </simpara> <simpara> Note that under win32 this property will always have a value of - <literal>1</literal>, as all fonts are loaded as fontsets. + <literal>1</literal>, as all fonts are loaded as fontsets in order + to provide support for the wide characters used by the operating + system. </simpara> </desc> </property> @@ -199,7 +200,7 @@ </simpara> <simpara> Add this to the <propname class="GdkFont">descent</propname> to - obtain the full line-height value in pixels. + obtain the full font height value in pixels. </simpara> </desc> </property> Index: php-gtk-doc/en/reference/gtk/gtk-functions.xml diff -u php-gtk-doc/en/reference/gtk/gtk-functions.xml:1.5 php-gtk-doc/en/reference/gtk/gtk-functions.xml:1.6 --- php-gtk-doc/en/reference/gtk/gtk-functions.xml:1.5 Fri Feb 1 07:23:31 2002 +++ php-gtk-doc/en/reference/gtk/gtk-functions.xml Wed Feb 20 20:08:41 2002 @@ -2273,10 +2273,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the current default style. </shortdesc> <desc> - + <simpara> + Returns the default <classname>GtkStyle</classname> that is currently + being used throughout an application. + </simpara> + <simpara> + Use <function>gtk::widget_set_default_style()</function> to change + aspects of the default style. + </simpara> </desc> </method> @@ -2433,7 +2440,8 @@ <funcsynopsis> <funcprototype> <funcdef>void -<function>gtk::widget_set_default_colormap</function></funcdef> + <function>gtk::widget_set_default_colormap</function> + </funcdef> <paramdef> <classname>GdkColormap</classname> <parameter>colormap</parameter> @@ -2452,7 +2460,8 @@ <funcsynopsis> <funcprototype> <funcdef>void -<function>gtk::widget_set_default_style</function></funcdef> + <function>gtk::widget_set_default_style</function> + </funcdef> <paramdef> <classname>GtkStyle</classname> <parameter>style</parameter> @@ -2460,7 +2469,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets default widget style across an application. </shortdesc> <desc> @@ -2471,7 +2480,8 @@ <funcsynopsis> <funcprototype> <funcdef>void -<function>gtk::widget_set_default_visual</function></funcdef> + <function>gtk::widget_set_default_visual</function> + </funcdef> <paramdef> <classname>GdkVisual</classname> <parameter>visual</parameter> Index: php-gtk-doc/en/reference/gtk/gtkarrow.xml diff -u php-gtk-doc/en/reference/gtk/gtkarrow.xml:1.5 php-gtk-doc/en/reference/gtk/gtkarrow.xml:1.6 --- php-gtk-doc/en/reference/gtk/gtkarrow.xml:1.5 Wed Jan 23 01:30:28 2002 +++ php-gtk-doc/en/reference/gtk/gtkarrow.xml Wed Feb 20 20:08:41 2002 @@ -8,9 +8,9 @@ </shortdesc> <desc> <simpara> - The <classname>GtkArrow</classname> widget is a representation of an - isosceles triangle with its &quot;nose&quot; pointing in the specified - direction. The look of the arrow is varied through the choice + The <classname>GtkArrow</classname> widget is a drawn triangle that + has its &quot;nose&quot; pointing in the direction specified during + construction. The look of the arrow is varied through the choice of <enumname>GtkShadowType</enumname>, and it inherits from the <classname>GtkMisc</classname> class the ability to have its own padding and alignment properties altered directly, both of which Index: php-gtk-doc/en/reference/gtk/gtkcalendar.xml diff -u php-gtk-doc/en/reference/gtk/gtkcalendar.xml:1.4 php-gtk-doc/en/reference/gtk/gtkcalendar.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkcalendar.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkcalendar.xml Wed Feb 20 20:08:41 2002 @@ -4,10 +4,34 @@ <classtitle>GtkCalendar</classtitle> <classparent>GtkWidget</classparent> <shortdesc> - Display a calendar and allows to select a date. + A calendar offering dates that can be selected and marked. </shortdesc> <desc> - + <simpara> + A <classname>GtkCalendar</classname> is a widget consisting of a grid + container displaying a calendar, with an optional label allowing + month/year navigation and an optional header giving abbreviated day names. + </simpara> + <simpara> + Both the day and the month names are supplied by the system locale, and + cannot be overwritten. Unfortunately, under win32 there are severe + problems with internationalization in the GDK source currently used by + PHP-GTK. Non-standard ISO8859-1/2 characters cannot be drawn in this + widget as a result of a wide character conversion failure under Windows. + Multibyte characters are not recognised, and as they are supplied directly + by the system to the widget there is no option to convert them using PHP. + This issue is gradually being addressed by the PHP-GTK development team on + a widget-by-widget basis. + </simpara> + <simpara> + Assuming that your locale and your operating system will allow you to use + this widget's headers, the only other point to keep in mind is that a + <literal>marked</literal> date is differentiated from the other dates by + being drawn on a slightly bigger base rectangle, making it appear bold + while actually using the same font as the rest of the widget. This is + less effective in some fonts than in others, and can become a very + negligable distinction. + </simpara> </desc> </classmeta> @@ -19,10 +43,47 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a calendar widget. </shortdesc> <desc> - + <simpara> + Creates a calendar widget, set to display the current month and year. + </simpara> + <para> + <example> + <title>Changing the style of a GtkCalendar</title> + <programlisting role="php"> +dl(&quot;php_gtk.&quot; . (strstr(PHP_OS, &quot;WIN&quot;) ? &quot;dll&quot; : +&quot;so&quot;)); + +$window = &amp;new GtkWindow(); +$window-&gt;set_position(GTK_WIN_POS_CENTER); +$window-&gt;connect_object(&quot;destroy&quot;, array(&quot;gtk&quot;, +&quot;main_quit&quot;)); + +/* create the calendar and add it to the window. */ +$calendar = &amp;new GtkCalendar(); +$window-&gt;add($calendar); + +/* create a new style for the calendar, based on the old one */ +$oldstyle = $calendar-&gt;style; +$newstyle = $oldstyle-&gt;copy(); +$font = +gdk::font_load('-unknown-Arial-normal-r-normal--*-160-*-*-p-0-iso8859-1'); +$red = &amp;new GdkColor(255*255, 0, 0); +$newstyle-&gt;font = $font; +$newstyle-&gt;fg[GTK_STATE_SELECTED] = $red; +$calendar-&gt;set_style($newstyle); + +/* have today's date highlighted on opening */ +$calendar-&gt;select_day(date('d')); + +$window-&gt;show_all(); + +gtk::main(); + </programlisting> + </example> + </para> </desc> </constructor> @@ -37,10 +98,25 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines the month and year displayed. </shortdesc> <desc> - + <simpara> + This method determines the month and year displayed on opening. The + default setting is the current month and year, taken from the operating + system. + </simpara> + <simpara> + If the display option flag + <literal>GTK_CALENDAR_NO_MONTH_CHANGE</literal> is set, the user will be + unable to switch from the month and year passed as parameters. + </simpara> + <simpara> + Note that the month must be in the range <literal>0</literal> to + <literal>11</literal>, similar to PHP's <literal>date('m')</literal>. + The year is in 4-digit format, as in <literal>2002</literal> + the format returned by <literal>date('Y')</literal>. + </simpara> </desc> </method> @@ -52,10 +128,24 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines the selected day. </shortdesc> <desc> - + <simpara> + <function class="GtkCalendar">select_day()</function> specifies the + day number that will be selected (i.e. highlighted). + </simpara> + <simpara> + Note that if there are no further instructions, the same day will be + highlighted throughout the months and years in the calendar. + </simpara> + <simpara> + The default selected day is <literal>1</literal>, with the range + being <literal>1</literal> to <literal>31</literal>. Selecting an + impossible day within that range - e.g. February 30th - does not + return an error message, as the day number is not associated with the + month and year information in this method. + </simpara> </desc> </method> @@ -67,10 +157,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Marks the given day. </shortdesc> <desc> - + <simpara> + Switches the appropriate + <propname class="GtkCalendar">marked_date</propname> to + <literal>true</literal> and marks the day number by making it appear + bold. If no further instructions are given, the same day number will + be marked throughout the calendar. + </simpara> + <simpara> + There is no limit to the number of marked days in a month. There is + also no limit to the range. + </simpara> </desc> </method> @@ -82,10 +182,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Unmarks the given day, if marked. </shortdesc> <desc> - + <simpara> + Switches the appropriate + <propname class="GtkCalendar">marked_date</propname> to + <literal>false</literal>, if it is <literal>true</literal>, and + unmarks the day. + </simpara> + <simpara> + If the day was not marked, this method has no effect whatever. + </simpara> </desc> </method> @@ -97,10 +205,36 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Clears all marked dates. </shortdesc> <desc> - + <para> + Given that marked dates are identical on every calendar page, you will + probably need to clear them and set a new bunch of marked dates when the + month is changed. These are best stored in a file or files, e.g. + <informalexample> + <programlisting code="php"> +function new_month($calendar) { + $calendar-&gt;clear_marks(); + $selected = $calendar-&gt;get_date(); + $month = ($selected[1]+1); + $year = $selected[0]; + if(file_exists(&quot;diary/$year/marked_dates_$month.txt&quot;)) { + $dates = fopen(&quot;diary/$year/marked_dates_$month.txt&quot;, 'r'); + $string = explode(',', fgets($dates)); + $calendar-&gt;freeze(); + for($i = 0; $i &lt; 31; $i++) { + if($string[$i]==true) $calendar-&gt;mark_day($i+1); + } + $calendar-&gt;thaw(); + fclose($dates); + } +} + +$calendar-&gt;connect('month-changed', 'new_month'); + </programlisting> + </informalexample> + </para> </desc> </method> @@ -108,29 +242,52 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>display_options</function></funcdef> - <paramdef><enumname>GtkCalendarDisplayOptions</enumname> <parameter>flags</parameter></paramdef> + <paramdef> + <enumname>GtkCalendarDisplayOptions</enumname> + <parameter>flags</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Sets flags determining the appearance of the calendar. </shortdesc> <desc> - + <simpara> + Use <function class="GtkCalendar">display_options()</function> to + choose which elements of the calendar should be displayed via + <enumname>GtkCalendarDisplayOptions</enumname>. + </simpara> + <simpara> + The default setting is <literal>GTK_CALENDAR_SHOW_HEADING | + GTK_CALENDAR_SHOW_DAY_NAMES</literal>. + </simpara> </desc> </method> <method id="gtk.gtkcalendar.method.get_date"> <funcsynopsis> <funcprototype> - <funcdef>XXX <function>get_date</function></funcdef> - <paramdef>XXX</paramdef> + <funcdef>array <function>get_date</function></funcdef> + <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns currently selected date. </shortdesc> <desc> - + <simpara> + <function class="GtkCalendar">get_date()</function> returns the + currently selected calendar date as an array. The contents are the year + (e.g. 2002), the month (1 - 12), and the day (1 - 31), in that order. + </simpara> + <note> + <simpara> + The range for the month is <literal>1 - 12</literal> here, but + <literal>0 - 11</literal> in the + <function class="GtkCalendar">select_month()</function> method. Marked + dates also run from <literal>0</literal>. Beware! + </simpara> + </note> </desc> </method> @@ -142,10 +299,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Freezes the display to allow updates. </shortdesc> <desc> - + <simpara> + <function class="GtkCalendar">freeze()</function> is used to prevent the + screen flickering during an update as each string in the monthly array + is evaluated and redrawn. Place it before an update loop. + </simpara> + <simpara> + See also: <function classname="GtkCalendar">thaw()</function>. + </simpara> </desc> </method> @@ -157,13 +321,267 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Thaws the display following updates. </shortdesc> <desc> - + <simpara> + <function class="GtkCalendar">thaw()</function> is the corollary to + <function class="GtkCalendar">freeze()</function>, and is placed after + an update routine. + </simpara> </desc> </method> </methods> + + <signals> + + <signal id="gtk.gtkcalendar.signal.month-changed"> + <signalname>month-changed</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkCalendar</classname> calendar</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted whenever the displayed month is changed. + </shortdesc> + <desc> + <simpara> + The <signalname class="GtkCalendar">month-changed</signalname> signal is + emitted whenever the month on display changes, regardless of the way in + which this is achieved. As the month and year information are tied, + January 2002 is not the same month as January 2003 - the signal will be + fired for a year change, too. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkcalendar.signal.day-selected"> + <signalname>day-selected</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkCalendar</classname> calendar</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when a day is selected. + </shortdesc> + <desc> + <simpara> + The <signalname class="GtkCalendar">day-selected</signalname> signal is + emitted when a day has been selected, regardless of the way in which this + is achieved. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkcalendar.signal.day-selected-double-click"> + <signalname>day-selected-double-click</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkCalendar</classname> calendar</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when the mouse is clicked twice on a day. + </shortdesc> + <desc> + <simpara> + The + <signalname class="GtkCalendar">day-selected-double-click</signalname> + signal is fired when the user clicks the mouse on a day number twice in + quick succession. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkcalendar.signal.prev-month"> + <signalname>prev-month</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkCalendar</classname> calendar</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when user chooses to go back one month. + </shortdesc> + <desc> + <simpara> + The <signalname class="GtkCalendar">prev-month</signalname> signal is + emitted when the user either clicks on the month arrow back, or when + the user selects a greyed-out day from the previous month. It cannot + be emitted through the program itself; use + <signalname class="GtkCalendar">month-changed</signalname> if you need + to do this. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkcalendar.signal.next-month"> + <signalname>next-month</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkCalendar</classname> calendar</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when user chooses to go forward one month. + </shortdesc> + <desc> + <simpara> + The <signalname class="GtkCalendar">next-month</signalname> signal is + emitted when the user either clicks on the month arrow forward, or when + the user selects a greyed-out day from the following month. It cannot + be emitted through the program itself; use + <signalname class="GtkCalendar">month-changed</signalname> if you need + to do this. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkcalendar.signal.prev-year"> + <signalname>prev-year</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkCalendar</classname> calendar</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when user chooses to go back one year. + </shortdesc> + <desc> + <simpara> + The <signalname class="GtkCalendar">prev-year</signalname> signal is + emitted when the user either clicks on the year arrow back, or when + the user selects a greyed-out day from the previous December when + January is currently displayed. It cannot be emitted through the + program itself; use + <signalname class="GtkCalendar">month-changed</signalname> if you need + to do this. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkcalendar.signal.next-year"> + <signalname>next-year</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkCalendar</classname> calendar</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when user chooses to go forward one year. + </shortdesc> + <desc> + <simpara> + The <signalname class="GtkCalendar">next-year</signalname> signal is + emitted when the user either clicks on the year arrow forward, or when + the user selects a greyed-out day from the following January when + December is currently displayed. It cannot be emitted through the + program itself; use + <signalname class="GtkCalendar">month-changed</signalname> if you need + to do this. + </simpara> + </desc> + </signal> + + </signals> + + <properties> + + <property id="gtk.gtkcalendar.property.month" type="ro"> + <propname>month</propname> + <proptype>int</proptype> + <shortdesc> + Currently selected month. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkCalendar">month</propname> property is an + integer representing the currently selected month. This will be in the + range <literal>0 - 11</literal>. + </simpara> + </desc> + </property> + + <property id="gtk.gtkcalendar.property.year" type="ro"> + <propname>year</propname> + <proptype>int</proptype> + <shortdesc> + Currently selected year. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkCalendar">year</propname> property is an + integer representing the currently selected year. This is in the + 4-digit format, i.e. <literal>2002</literal>. + </simpara> + </desc> + </property> + + <property id="gtk.gtkcalendar.property.selected_day" type="ro"> + <propname>selected_day</propname> + <proptype>int</proptype> + <shortdesc> + Currently selected day. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkCalendar">selected_day</propname> property is + an integer representing the currently selected day. This will be in + the range <literal>1 - 31</literal>. + </simpara> + </desc> + </property> + + <property id="gtk.gtkcalendar.property.num_marked_dates" type="ro"> + <propname>num_marked_dates</propname> + <proptype>int</proptype> + <shortdesc> + Number of marked dates held. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkCalendar">num_marked_dates</propname> property is + an integer representing the number of marked dates set to + <literal>true</literal> in the current + <propname class="GtkCalendar">marked_date</propname> array. If you are + using <classname>GtkCalendar</classname> fully, you are likely to have + several of these arrays - one for each month, at a minimum. This + property is tied to the array. + </simpara> + </desc> + </property> + + <property id="gtk.gtkcalendar.property.marked_date" type="ro"> + <propname>marked_date</propname> + <proptype>array</proptype> + <shortdesc> + Array of marked dates. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkCalendar">marked_date</propname> property is + an array of 31 comma-separated values, all of which are either the + default <literal>false</literal> or, if marked, <literal>true</literal>. + </simpara> + <simpara> + The array count begins at <literal>zero</literal>, whereas the days in + the calendar begins at <literal>1</literal>. You will need to add + <literal>1</literal> to an integer representing the position of a + marked date, to compensate for this mismatch. + </simpara> + </desc> + </property> + + </properties> </classentry> Index: php-gtk-doc/en/reference/gtk/gtkeditable.xml diff -u php-gtk-doc/en/reference/gtk/gtkeditable.xml:1.6 php-gtk-doc/en/reference/gtk/gtkeditable.xml:1.7 --- php-gtk-doc/en/reference/gtk/gtkeditable.xml:1.6 Thu Feb 7 00:47:19 2002 +++ php-gtk-doc/en/reference/gtk/gtkeditable.xml Wed Feb 20 20:08:42 2002 @@ -151,6 +151,12 @@ <function class="GtkText">insert()</function>, which gives greater control over the appearance of the text, amongst other things. </simpara> + <note> + <simpara> + This method does not support internationalization under win32. Use + <function class="GtkText">insert()</function>. + </simpara> + </note> <simpara> The <function class="GtkEditable">insert_text()</function> method also causes the signal of the same name to be emitted. Index: php-gtk-doc/en/reference/gtk/gtktext.xml diff -u php-gtk-doc/en/reference/gtk/gtktext.xml:1.7 php-gtk-doc/en/reference/gtk/gtktext.xml:1.8 --- php-gtk-doc/en/reference/gtk/gtktext.xml:1.7 Mon Feb 4 01:15:50 2002 +++ php-gtk-doc/en/reference/gtk/gtktext.xml Wed Feb 20 20:08:42 2002 @@ -381,7 +381,9 @@ This is a complex method offering more control over the appearance of the text in a <classname>GtkText</classname> widget than the alternative <function class="GtkEditable">insert_text()</function> inherited from - <classname>GtkEditable</classname>. + <classname>GtkEditable</classname>. It also has the bonus that it allows + some support for internationalization on all platforms, although + multibyte conversion under win32 is not currently included in this. </simpara> <simpara> Any of the first three parameters can be passed as @@ -412,6 +414,14 @@ by a user. The default length <literal>-1</literal> will allow the entire string. </simpara> + <para> + You can use the current default style with: + <informalexample> + <programlisting role="php"> +$text-&gt;insert(null, null, null, &quot;A string of text.&quot;); + </programlisting> + </informalexample> + </para> </desc> </method>
« previous php.gtk.doc (#415) next »