cvs: php-gtk-doc /en/reference/gdk gdkenum.xml /en/reference/gtk gtkhscale.xml gtkrange.xml gtkscale.xml gtkstatusbar.xml gtkvscale.xml gtkwidget.xml
| From: | Steph Fox | Date: | Sat, 09 Feb 2002 15:27:11 +0000 |
| Subject: | cvs: php-gtk-doc /en/reference/gdk gdkenum.xml /en/reference/gtk gtkhscale.xml gtkrange.xml gtkscale.xml gtkstatusbar.xml gtkvscale.xml gtkwidget.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-388@lists.php.net to get a copy of this message | ||
sfox Sat Feb 9 10:27:11 2002 EDT
Modified files:
/php-gtk-doc/en/reference/gdk gdkenum.xml
/php-gtk-doc/en/reference/gtk gtkhscale.xml gtkrange.xml
gtkscale.xml gtkstatusbar.xml
gtkvscale.xml gtkwidget.xml
Log:
Statusbar, Scale(s), and a few more widget bits
Index: php-gtk-doc/en/reference/gdk/gdkenum.xml diff -u php-gtk-doc/en/reference/gdk/gdkenum.xml:1.7 php-gtk-doc/en/reference/gdk/gdkenum.xml:1.8 --- php-gtk-doc/en/reference/gdk/gdkenum.xml:1.7 Wed Feb 6 09:10:47 2002 +++ php-gtk-doc/en/reference/gdk/gdkenum.xml Sat Feb 9 10:27:11 2002 @@ -66,7 +66,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_EXPOSE</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This causes the widget to emit the <signalname class="GtkWidget">expose-event</signalname> signal. </shortdesc> </enumoption> @@ -76,7 +76,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_MOTION_NOTIFY</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">motion-notify-event</signalname> signal. </shortdesc> </enumoption> @@ -88,35 +88,56 @@ <literal>GDK_POINTER_MOTION_MASK</literal> functionality. This can be necessary to avoid a time-lag in processing caused by the sheer volume of <literal>GDK_MOTION_NOTIFY</literal> events produced by - mouse movement. + mouse movement, each once of which causes a + <signalname class="GtkWidget">motion-notify-event</signalname> signal + to be fired by the widget. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON_MOTION_MASK</optionname> <shortdesc> - + Allows the <literal>GDK_MOTION_NOTIFY</literal> events to be picked up + by the widget's <classname>GdkWindow</classname> only while a mouse-button + (any) is pressed down. This is a way of limiting the widget's + <signalname class="GtkWidget">motion-notify-event</signalname> signal + emissions. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON1_MOTION_MASK</optionname> <shortdesc> - + Allows the <literal>GDK_MOTION_NOTIFY</literal> events to be picked up + by the widget's <classname>GdkWindow</classname> only while mouse-button + <literal>1</literal> is pressed down - usually that's the left button. + This is a way of limiting the widget's + <signalname class="GtkWidget">motion-notify-event</signalname> signal + emissions. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON2_MOTION_MASK</optionname> <shortdesc> - + Allows the <literal>GDK_MOTION_NOTIFY</literal> events to be picked up + by the widget's <classname>GdkWindow</classname> only while mouse-button + <literal>2</literal> is pressed down - usually that's the center button, + where it exists. This is a way of limiting the widget's + <signalname class="GtkWidget">motion-notify-event</signalname> signal + emissions. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON3_MOTION_MASK</optionname> <shortdesc> - + Allows the <literal>GDK_MOTION_NOTIFY</literal> events to be picked up + by the widget's <classname>GdkWindow</classname> only while mouse-button + <literal>3</literal> is pressed down - usually that's the right button. + This is a way of limiting the widget's + <signalname class="GtkWidget">motion-notify-event</signalname> signal + emissions. </shortdesc> </enumoption> @@ -125,7 +146,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_BUTTON_PRESS</literal> events to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">button-press-event</signalname> signal. </shortdesc> </enumoption> @@ -135,7 +156,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_BUTTON_RELEASE</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">button-release-event</signalname> signal. </shortdesc> </enumoption> @@ -145,7 +166,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_KEY_PRESS</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">key-press-event</signalname> signal. </shortdesc> </enumoption> @@ -155,7 +176,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_KEY_RELEASE</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">key-release-event</signalname> signal. </shortdesc> </enumoption> @@ -165,7 +186,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_ENTER_NOTIFY</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This causes the widget to emit the <signalname class="GtkWidget">enter-notify-event</signalname> signal. </shortdesc> </enumoption> @@ -175,7 +196,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_LEAVE_NOTIFY</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">leave-notify-event</signalname> signal. </shortdesc> </enumoption> @@ -185,7 +206,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_FOCUS_CHANGE</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">focus-in-event</signalname> or <signalname class="GtkWidget">focus-out-event</signalname> signal as appropriate. @@ -195,42 +216,61 @@ <enumoption> <optionname>GDK_STRUCTURE_MASK</optionname> <shortdesc> - + This flag is set on all new instances of <classname>GdkWindow</classname>. + It allows map, unmap, destroy and configure events to be captured, + causing <signalname class="GtkWidget">map-event</signalname>, + <signalname class="GtkWidget">unmap-event</signalname>, + <signalname class="GtkWidget">destroy-event</signalname> and + <signalname class="GtkWidget">configure-event</signalname> signals to be + emitted from all windowed widgets. </shortdesc> </enumoption> <enumoption> <optionname>GDK_PROPERTY_CHANGE_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_PROPERTY_NOTIFY</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This makes the widget emit the + <signalname class="GtkWidget">property-notify-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_VISIBILITY_NOTIFY_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_VISIBILITY_NOTIFY</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This causes the widget to emit the + <signalname class="GtkWidget">visibility-notify-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_PROXIMITY_IN_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_PROXIMITY_IN</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This causes the widget to emit the + <signalname class="GtkWidget">proximity-in-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_PROXIMITY_OUT_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_PROXIMITY_OUT</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This makes the widget emit the + <signalname class="GtkWidget">proximity-out-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_SUBSTRUCTURE_MASK</optionname> <shortdesc> - + Enables the widget's <classname>GdkWindow</classname> to capture + <literal>GDK_STRUCTURE_MASK</literal> events on any child windows. </shortdesc> </enumoption> Index: php-gtk-doc/en/reference/gtk/gtkhscale.xml diff -u php-gtk-doc/en/reference/gtk/gtkhscale.xml:1.4 php-gtk-doc/en/reference/gtk/gtkhscale.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkhscale.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkhscale.xml Sat Feb 9 10:27:11 2002 @@ -7,7 +7,15 @@ Horizontal slider widget for selecting a value from a range. </shortdesc> <desc> - + <simpara> + A <classname>GtkHScale</classname> is a horizontal scrollbar-like widget + that is able to display its adjustment value as text. + </simpara> + <simpara> + There are some configuration issues with this widget when it is used + in such a way; please refer to <classname>GtkScale</classname> for + further information. + </simpara> </desc> </classmeta> @@ -15,14 +23,23 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkHScale</function></funcdef> - <paramdef><classname>GtkAdjustment</classname> <parameter>adjustment</parameter></paramdef> + <paramdef> + <classname>GtkAdjustment</classname> + <parameter>adjustment</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a horizontal slider. </shortdesc> <desc> - + <simpara> + A <classname>GtkHScale</classname> that can be given its own + <classname>GtkAdjustment</classname> settings or simply not display + the text value has no configuration issues whatever. However, please + note that even a <classname>GtkHScale</classname> with no displayed + value is not able to scroll a <classname>GtkText</classname> widget. + </simpara> </desc> </constructor> Index: php-gtk-doc/en/reference/gtk/gtkrange.xml diff -u php-gtk-doc/en/reference/gtk/gtkrange.xml:1.3 php-gtk-doc/en/reference/gtk/gtkrange.xml:1.4 --- php-gtk-doc/en/reference/gtk/gtkrange.xml:1.3 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkrange.xml Sat Feb 9 10:27:11 2002 @@ -16,7 +16,10 @@ <method id="gtk.gtkrange.method.get_adjustment"> <funcsynopsis> <funcprototype> - <funcdef><classname>GtkAdjustment</classname> <function>get_adjustment</function></funcdef> + <funcdef> + <classname>GtkAdjustment</classname> + <function>get_adjustment</function> + </funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> @@ -32,7 +35,10 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_update_policy</function></funcdef> - <paramdef><enumname>GtkUpdateType</enumname> <parameter>policy</parameter></paramdef> + <paramdef> + <enumname>GtkUpdateType</enumname> + <parameter>policy</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -47,7 +53,10 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_adjustment</function></funcdef> - <paramdef><classname>GtkAdjustment</classname> <parameter>adjustment</parameter></paramdef> + <paramdef> + <classname>GtkAdjustment</classname> + <parameter>adjustment</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> Index: php-gtk-doc/en/reference/gtk/gtkscale.xml diff -u php-gtk-doc/en/reference/gtk/gtkscale.xml:1.5 php-gtk-doc/en/reference/gtk/gtkscale.xml:1.6 --- php-gtk-doc/en/reference/gtk/gtkscale.xml:1.5 Thu Feb 7 00:47:19 2002 +++ php-gtk-doc/en/reference/gtk/gtkscale.xml Sat Feb 9 10:27:11 2002 @@ -8,7 +8,34 @@ <classname>GtkVScale</classname>. </shortdesc> <desc> - + <simpara> + A <classname>GtkScale</classname> is a widget that looks very like a + <classname>GtkScrollbar</classname> without the arrow buttons at either + end and with the ability to display the current value as text. + </simpara> + <simpara> + There are some issues with the value display, in that scrolling-aware + container widgets will not allow their child's + <classname>GtkAdjustment</classname> to be overwritten, which means that + the <classname>GtkScale</classname> cannot have focus unless it takes + the values given by the container to the scrollable widget. This in turn + misconfigures the display area, which is calculated with regard to the + upper value of the associated adjustment object. When a container sets + an adjustment, each value is <literal>0</literal> at the start, and the + later values are calculated on the fly after the widgets have been drawn. + </simpara> + <simpara> + Although it is possible to use the <classname>GtkWidget</classname> method + <function class="GtkWidget">queue_resize()</function> to force the text + area to resize according to the width of the new adjustment values, the + widget does not fully redraw unless it has a configure event - that is, + you need to manually resize it and then restore it. + </simpara> + <simpara> + For all these reasons, it is unadvisable to use the draw-value feature + where the <classname>GtkScale</classname> is associated with a scrollable + widget. + </simpara> </desc> </classmeta> @@ -25,7 +52,13 @@ Sets number of decimal places. </shortdesc> <desc> - + <simpara> + This method sets the number of places to the right of the decimal + point in the displayed value. + </simpara> + <simpara> + The default number of decimal places is <literal>1</literal>. + </simpara> </desc> </method> @@ -37,10 +70,16 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Toggles whether value is displayed. </shortdesc> <desc> - + <simpara> + <function class="GtkScale">set_draw_value()</function> simply + toggles whether the value is displayed as text or not. + </simpara> + <simpara> + The default setting is <literal>true</literal>. + </simpara> </desc> </method> @@ -55,10 +94,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets position of numeric text. </shortdesc> <desc> - + <simpara> + This method determines the position of the text, when it is displayed. + The default value is <literal>GTK_POS_TOP</literal>. + </simpara> </desc> </method> @@ -70,27 +112,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns string width of numeric text. </shortdesc> <desc> - + <simpara> + <function class="GtkScale">get_value_width()</function> returns the + width of the numeric text string in a <classname>GtkScale</classname>. + The value is given in pixels. + </simpara> </desc> </method> - <method id="gtk.gtkscale.method.draw_value"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>draw_value</function></funcdef> - <paramdef>void</paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - - </desc> - </method> + <!--DELETED draw_value() which is an internal method that generates the + draw_value property in the struct - sf feb 02 --> </methods> Index: php-gtk-doc/en/reference/gtk/gtkstatusbar.xml diff -u php-gtk-doc/en/reference/gtk/gtkstatusbar.xml:1.4 php-gtk-doc/en/reference/gtk/gtkstatusbar.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkstatusbar.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkstatusbar.xml Sat Feb 9 10:27:11 2002 @@ -7,7 +7,26 @@ Widget that provides a way to report messages of minor importance. </shortdesc> <desc> - + <simpara> + A <classname>GtkStatusbar</classname> is a framed label, usually added + to the bottom of a window, that provides a way to report messages of + minor importance. It is usually updated fairly frequently. + </simpara> + <simpara> + There are two indices in the structure of a statusbar; one is an + associative array of message information, and the other is a stack of + uniquely-indexed message arrays. The message at the top of the stack is + the one currently on display. + </simpara> + <note> + <simpara> + Where a routine requires a lot of processing, the statusbar may + be unable to update during the time taken to do so. Using + <function>gtk::events_pending()</function> will allow updating + throughout. + </simpara> + <!-- thanks Markus :) - sf --> + </note> </desc> </classmeta> @@ -19,10 +38,85 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a status bar. </shortdesc> <desc> - + <para> + Creating a status bar is very straightforward; creating and updating + messages marginally less so. + <example> + <title>Setting up a status bar.</title> + <programlisting role="php"> +dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')); + +function focusback($entry) { + $entry->set_text(''); + $entry->grab_focus(); + } + +function change_status($entry, $event, $status, $stuff, &$i) { + $value = $event->keyval; + $string = $event->string; + $popcontext = $status->get_context_id($stuff[$i]); + $status->pop($popcontext); + switch($value) { + case ($value >= GDK_KEY__a && $value <= GDK_KEY__z): + $i = 1; + break; + case ($value >= GDK_KEY_A && $value <= GDK_KEY_Z): + $i = 2; + break; + case ($value >= GDK_KEY_0 && $value <= GDK_KEY_9): + $i = 3; + break; + case GDK_KEY_Return: + $i = 4; + break; + case GDK_KEY_space: + $i = 5; + break; + default: + $i = 6; + } + $pushcontext = $status->get_context_id($stuff[$i]); + if($string && $string!==' ') { + $status->push($pushcontext, $string." is a ".$stuff[$i]." +character"); + } + else $status->push($pushcontext, $stuff[$i]); + if($i == 4) focusback($entry); +} + +$window = &new GtkWindow(); +$window->set_position(GTK_WIN_POS_CENTER); +$window->connect_object('destroy', array('gtk', 'main_quit')); + +$vbox = &new GtkVBox(); +$window->add($vbox); + +$status = &new GtkStatusbar(); +$i = 1; +$stuff = array("Here we go...", "lower case alpha", +"UPPER CASE ALPHA", "numeric", "return", +"spacebar", "non-alphanumeric"); +$status->push($i, $stuff[0]); +$vbox->pack_end($status, false); +$status->show(); + +$entry = &new GtkEntry(); +$entry->set_usize(400,20); +$entry->connect('key-press-event','change_status', $status, $stuff, +&$i); +$vbox->pack_start($entry, false); +$entry->show(); + +$window->show_all(); + +focusback($entry); +gtk::main(); + </programlisting> + </example> + </para> </desc> </constructor> @@ -36,10 +130,28 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the context id from the description. </shortdesc> <desc> - + <simpara> + The <classname>GtkStatusbar</classname> sets up an internal array of + the messages that have been used, as they are being called. The + <literal>context_id</literal> is the array index position that a + given message holds. + </simpara> + <simpara> + As the message array is created on the fly, it is never the same + twice running. The messages that are displayed most frequently during + the status bar's lifetime will have low numbers, and a message that is + never called will not be added to the array. It is far more efficient + to use <function class="GtkStatusbar">get_context_id()</function> to + generate a context id for a message than it is to allocate your own + integer value. + </simpara> + <simpara> + The <parameter>context_description</parameter> is actually the text + string used in the statusbar label. + </simpara> </desc> </method> @@ -52,10 +164,29 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Adds message to top of stack. </shortdesc> <desc> - + <simpara> + <function class="GtkStatusbar">push()</function> prepends the given + message to an internal stack in the statusbar, along with its + associated <parameter>context_id</parameter>. It is best to allow + the statusbar to generate the <parameter>context_id</parameter> for + itself, as the value can then change from one run to another to respond + to the user's pattern of interaction with the application. Use + <function class="GtkStatusbar">get_context_id()</function> to do this. + </simpara> + <simpara> + The returned value is a unique <literal>message_id</literal>, which is + needed as a parameter in the + <function class="GtkStatusbar">remove()</function> method. This is + simply an incremented value, beginning at <literal>1</literal>. + </simpara> + <simpara> + This method causes the + <signalname class="GtkStatusbar">text-pushed</signalname> signal to be + emitted. + </simpara> </desc> </method> @@ -67,10 +198,26 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Removes message from top of stack. </shortdesc> <desc> - + <simpara> + <function class="GtkStatusbar">pop()</function> removes the message + that is currently at the top of the statusbar's stack, using the + <parameter>context_id</parameter> to identify the message. + </simpara> + <simpara> + When a message is removed from the stack, the memory that was allocated + to it is freed. Given that all messages are generated uniquely, it is + good practice to <function class="GtkStatusbar">pop()</function> the + current message before appending the next. Allowing the stack to build + up can add considerably to processing time. + </simpara> + <simpara> + This method causes the + <signalname class="GtkStatusbar">text-popped</signalname> signal to be + emitted. + </simpara> </desc> </method> @@ -83,13 +230,89 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Removes designated message from stack. </shortdesc> <desc> - + <simpara> + This method removes a targeted message from anywhere in the stack. + </simpara> + <simpara> + Both the <parameter>context_id</parameter> and the + <parameter>message_id</parameter> can be generated by the statusbar + comfortably here as elsewhere in the <classname>GtkStatusbar</classname> + methods. + </simpara> + <simpara> + If you use this simply to replace a working + <function class="GtkStatusbar">pop()</function> function you should see + no difference in behaviour; the + <function class="GtkStatusbar">remove()</function> method even + causes the <signalname class="GtkStatusbar">text-popped</signalname> + signal to be emitted when it removes a message from the top of the stack. + Note that no signal is emitted when messages are taken from elsewhere in + the stack. + </simpara> + <simpara> + As there is no way to add a message anywhere other than the top of + the statusbar's stack - thereby immediately displaying it - this method + is basically a way of preventing a stack build-up where the pop/push + procedure has proved inappropriate. + </simpara> </desc> </method> </methods> + + <signals> + + <signal id="gtk.gtkstatusbar.signal.text-pushed"> + <signalname>text-pushed</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkStatusbar</classname> statusbar</paramdef> + <paramdef>int context_id</paramdef> + <paramdef>string text</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when a message is prepended to the stack. + </shortdesc> + <desc> + <simpara> + This signal is fired by a <classname>GtkStatusbar</classname> when the + <function class="GtkStatusbar">push()</function> method is called. It + carries with it the <literal>context_id</literal> and the text content + of the message. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkstatusbar.signal.text-popped"> + <signalname>text-popped</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkStatusbar</classname> statusbar</paramdef> + <paramdef>int context_id</paramdef> + <paramdef>string text</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when a message is popped from the top of the stack. + </shortdesc> + <desc> + <simpara> + This signal is fired by a <classname>GtkStatusbar</classname> when the + <function class="GtkStatusbar">pop()</function> method is called, and + also when when the topmost message in the stack is removed using the + <function class="GtkStatusbar">remove()</function> method . The signal + carries with it the <literal>context_id</literal> and the text content + of the message. + </simpara> + </desc> + </signal> + + </signals> </classentry> Index: php-gtk-doc/en/reference/gtk/gtkvscale.xml diff -u php-gtk-doc/en/reference/gtk/gtkvscale.xml:1.4 php-gtk-doc/en/reference/gtk/gtkvscale.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkvscale.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkvscale.xml Sat Feb 9 10:27:11 2002 @@ -7,7 +7,15 @@ Vertical slider widget for selecting a value from a range. </shortdesc> <desc> - + <simpara> + A <classname>GtkVScale</classname> is a vertical scrollbar-like widget + that is able to display its adjustment value as text. + </simpara> + <simpara> + There are some configuration issues with this widget when it is used + in such a way; please refer to <classname>GtkScale</classname> for + further information. + </simpara> </desc> </classmeta> @@ -15,14 +23,34 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkVScale</function></funcdef> - <paramdef><classname>GtkAdjustment</classname> <parameter><optional>adjustment = NULL</optional></parameter></paramdef> + <paramdef> + <classname>GtkAdjustment</classname> + <parameter><optional>adjustment = NULL</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a vertical slider. </shortdesc> <desc> - + <simpara> + A <classname>GtkVScale</classname> that can be given its own + <classname>GtkAdjustment</classname> settings has no configuration + issues whatever. + </simpara> + <para> + Reasonable settings on an adjustment object for a + <classname>GtkVScale</classname> on a single full page might look + something like this: + <informalexample> + <programlisting role="php"> +$adjustment = &new GtkAdjustment(0, 0, 100, 1, 25, 0); +$vscale = &new GtkVScale($adjustment); + </programlisting> + </informalexample> + This would give a scale of 0 to 100 along the height of the page, and + no overlap. + </para> </desc> </constructor> Index: php-gtk-doc/en/reference/gtk/gtkwidget.xml diff -u php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.12 php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.13 --- php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.12 Mon Feb 4 01:15:51 2002 +++ php-gtk-doc/en/reference/gtk/gtkwidget.xml Sat Feb 9 10:27:11 2002 @@ -468,7 +468,14 @@ Queues widget's resize requests. </shortdesc> <desc> - + <simpara> + Use this method to force a widget to resize. See + <classname>GtkScale</classname> for a working example. + </simpara> + <simpara> + <function class="GtkWidget">queue_resize()</function> is used + extensively within GTK+ internals. + </simpara> </desc> </method> @@ -806,10 +813,22 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gives grab and focus to the calling widget. </shortdesc> <desc> - + <simpara> + This method sets the initial grab and focus on the calling widget so + that, for example, if a <classname>GtkText</classname> were to call it, + any keyboard events would be picked up immediately by the text widget. + </simpara> + <simpara> + <function class="GtkWidget">grab_focus()</function> can only be called + when the widget in question has the <literal>GTK_CAN_FOCUS</literal> + flag set. Some will have this set at source, others will not, and will + generate an error message to that effect when the method is called. + Use <function class="GtkObject">set_flags()</function> to override the + source settings. + </simpara> </desc> </method> @@ -821,10 +840,23 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gives grab and default to the calling widget. </shortdesc> <desc> - + <simpara> + This method sets the keyboard grab and default status on the calling + widget. + </simpara> + <simpara> + The single most likely scenario where you might use this would be to + set up a <classname>GtkButton</classname> so that the user could + activate it by immediately pressing the return key. + </simpara> + <simpara> + In order to make this possible, you will need to set the + <literal>GTK_CAN_DEFAULT</literal> widget flag on the button. See + also: <function class="GtkObject">set_flags()</function>. + </simpara> </desc> </method> @@ -836,10 +868,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets widget name. </shortdesc> <desc> - + <simpara> + You may give a widget a unique name. This is mainly intended for + use when creating a derived object, but it can also be useful for + identifying individual widgets, for example, when an array of + buttons is going to be queried at a later point in the script. + </simpara> + <simpara> + See also: <function class="GtkWidget">get_name()</function>. + </simpara> </desc> </method> @@ -851,10 +891,23 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns name of widget. </shortdesc> <desc> - + <simpara> + This method returns the name of the calling widget. If no name + has been set for the widget, this will be in the format + <literal>GtkWidget</literal>. + </simpara> + <simpara> + <function class="GtkWidget">get_name()</function> is very useful + where the widget could be one of many, e.g. in a callback that is + used by several different widgets. + </simpara> + <simpara> + See also: <function class="GtkObject">get_type()</function>, + <function class="GtkWidget">set_name()</function>. + </simpara> </desc> </method> @@ -869,10 +922,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets widget's state. </shortdesc> <desc> - + <simpara> + Sets the initial <enumname>GtkStateType</enumname> for the calling + widget. Note that this will be overridden when the user interacts + with the widget, and is primarily useful for offering visual cues. + </simpara> + <simpara> + A widget's current state can be queried using the + <propname class="GtkWidget">state</propname> property. + </simpara> </desc> </method> @@ -884,10 +945,25 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Toggles sensitivity. </shortdesc> <desc> - + <simpara> + Use this function to toggle whether or not the user can interact + with a widget. Setting it to <literal>false</literal> sets the + widget's state to <literal>GTK_STATE_INSENSITIVE</literal>, which + 'greys out' the widget. + </simpara> + <simpara> + You might use this if, for instance, you wanted to prevent a button + from being pressed in certain situations. + </simpara> + <note> + <simpara> + Setting a container as 'insensitive' will make all that container's + children insensitive too. + </simpara> + </note> </desc> </method> @@ -1164,7 +1240,7 @@ <method id="gtk.gtkwidget.method.is_ancestor"> <funcsynopsis> <funcprototype> - <funcdef>int <function>is_ancestor</function></funcdef> + <funcdef>bool <function>is_ancestor</function></funcdef> <paramdef> <classname>GtkWidget</classname> <parameter>ancestor</parameter> @@ -1172,10 +1248,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Tests relationship with other widgets. </shortdesc> <desc> - + <simpara> + <function class="GtkWidget">is_ancestor()</function> tests whether the + widget named in the <parameter>ancestor</parameter> parameter is an + ancestor of the calling widget, in the packing hierarchy rather than + in the GTK object hierarchy. + </simpara> + <simpara> + This method is used extensively in GTK+ internals, but can also be + useful in PHP-GTK, particularly for debugging purposes. + </simpara> </desc> </method> @@ -1708,26 +1793,46 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> event</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when any event is captured. </shortdesc> <desc> <simpara> - + The <signalname class="GtkWidget">event</signalname> signal is emitted + when any <classname>GdkEvent</classname> is captured by the connected + widget's underlying <classname>GdkWindow</classname>. + </simpara> + <simpara> + All event signals return <literal>false</literal> until the event has + been propagated to the widget that will handle it, at which point they + return <literal>true</literal>, the event is no longer propagated and + the signal is no longer fired. + </simpara> + <note> + <simpara> + Each event causes two signal emissions; the generic event signal + described here, and the specific event signal that is being called, + such as the <signalname class="GtkWidget">key-press-event</signalname> + signal. The <signalname class="GtkWidget">event</signalname> signal + itself is unlikely to be used directly on its own account very often. + </simpara> + </note> + <simpara> + All event signals carry the event that caused the signal to be fired as + the first parameter after the connecting widget. You may add as many + parameters as you like that contain data specific to your application. + </simpara> + <simpara> + You can limit or extend the events that are captured by a windowed widget + by setting one or more <enumname>GdkEventMask</enumname> flags for the + widget. See <function class="GtkWidget">add_events()</function>, and + <function class="GtkWidget">set_events()</function>. </simpara> </desc> </signal> -<!-- widget_signals[EVENT] = - gtk_signal_new ("event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.button-press-event"> <signalname>button-press-event</signalname> @@ -1735,26 +1840,46 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> button_press</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_BUTTON_PRESS</literal> event is captured. </shortdesc> <desc> - <simpara> - + <para> + This is an event signal, fired when the connected widget picks up a + <literal>GDK_BUTTON_PRESS</literal> event. Button press events are + generated by any of the mouse buttons being pressed. You can distinguish + between the mouse buttons in the callback by using an + <literal>if</literal> or <literal>switch</literal> statement: + <informalexample> + <programlisting role="php"> +function on_click($widget, $event, $data) { +switch($event->button) { +case 1: +/* do something appropriate to a left click */ +break; +case 2: +/* do something appropriate to a middle click */ +break; +case 3: +/* do something appropriate to a right click */ +break; +}} + +$widget->connect('button-press-event', 'on_click', $data); + </programlisting> + </informalexample> + </para> + <simpara> + See also: + <signalname class="GtkWidget">button-release-event</signalname>, + <signalname class="GtkWidget">event</signalname>, + <signalname class="GtkWidget">key-press-event</signalname>. </simpara> </desc> </signal> -<!-- widget_signals[BUTTON_PRESS_EVENT] = - gtk_signal_new ("button_press_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, button_press_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.button-release-event"> <signalname>button-release-event</signalname> @@ -1762,26 +1887,28 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> button_release</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_BUTTON_RELEASE</literal> event is captured. </shortdesc> <desc> <simpara> - + This is an event signal, fired when the connected widget picks up a + <literal>GDK_BUTTON_RELEASE</literal> event. Button release events are + generated by any of the mouse buttons being released. You can + distinguish between the mouse buttons in the callback by using + <literal>$event->button</literal>. + </simpara> + <simpara> + See also: + <signalname class="GtkWidget">button-press-event</signalname>, + <signalname class="GtkWidget">event</signalname>, + <signalname class="GtkWidget">key-press-event</signalname>. </simpara> </desc> </signal> -<!-- widget_signals[BUTTON_RELEASE_EVENT] = - gtk_signal_new ("button_release_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, button_release_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.motion-notify-event"> <signalname>motion-notify-event</signalname> @@ -1789,26 +1916,26 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> motion_notify</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_MOTION_NOTIFY</literal> event is captured. </shortdesc> <desc> <simpara> - + This is an event signal, fired when the connected widget picks up a + <literal>GDK_MOTION_NOTIFY</literal> event. Motion notify events are + triggered when the mouse pointer moves across the screen. There are + a great many of them, which has given rise to several different kinds + of <enumname>GdkEventMask</enumname> aiming to minimise the amount + that are captured. + </simpara> + <simpara> + See also: <signalname class="GtkWidget">event</signalname>. </simpara> </desc> </signal> -<!-- widget_signals[MOTION_NOTIFY_EVENT] = - gtk_signal_new ("motion_notify_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, motion_notify_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.delete-event"> <signalname>delete-event</signalname> @@ -1816,26 +1943,35 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> delete</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_DELETE</literal> event is captured. </shortdesc> <desc> <simpara> - + This is an event signal, fired when the window manager requests that + a widget be deleted. This is generally when a user clicks the + <literal>X</literal> close button on a toplevel window. + </simpara> + <simpara> + The delete event is not propagated. If you want to prevent the + end user from using the window decorations to close your application, + returning <literal>true</literal> from the + <signalname class="GtkWindow">delete-event</signalname> signal will do + just that. Allowing it to return <literal>false</literal> - which it + does by default - will cause its default handler to be called. This + happens to be the <function class="GtkObject">destroy()</function> + method, which in turns fires the + <signalname class="GtkObject">destroy</signalname> signal. In most + cases, it's simpler to connect directly to the latter. + </simpara> + <simpara> + See also: <signalname class="GtkWidget">event</signalname>. </simpara> </desc> </signal> -<!-- widget_signals[DELETE_EVENT] = - gtk_signal_new ("delete_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, delete_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.destroy-event"> <signalname>destroy-event</signalname> @@ -1843,26 +1979,26 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> destroy</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_DESTROY</literal> event is captured. </shortdesc> <desc> <simpara> - + You really shouldn't ever find a widget that emits this signal. The + destroy event is triggered by the destruction of a widget's underlying + <classname>GdkWindow</classname>, so if that widget is still capable of + emitting the <signalname class="GtkWidget">destroy-event</signalname> + signal something has gone badly awry. + </simpara> + <simpara> + See also: <signalname class="GtkWidget">delete-event</signalname>, + <signalname class="GtkWidget">event</signalname>. </simpara> </desc> </signal> -<!-- widget_signals[DESTROY_EVENT] = - gtk_signal_new ("destroy_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, destroy_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.expose-event"> <signalname>expose-event</signalname> @@ -1870,26 +2006,38 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> expose</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_EXPOSE</literal> event is captured. </shortdesc> <desc> <simpara> - + This is an event signal, initially emitted when the connected widget + becomes fully visible on screen. Every widget can capture expose + events; they are even synthesized for widgets that don't have + a <classname>GdkWindow</classname>. + </simpara> + <simpara> + Expose events are also generated when a widget has been partially + or fully covered by another widget, and is re-exposed. These events + trigger a redraw internally; a <classname>GdkWindow</classname> + that is not currently exposed is not currently drawn, and the same + applies to any unexposed area of a window. + </simpara> + <simpara> + Following suit, the most likely reason to connect to an + <signalname class="GtkWidget">expose-event</signalname> signal is + that you have a drawing function in the callback. + </simpara> + <simpara> + See also: <signalname class="GtkWidget">event</signalname>, + <classname>GtkDrawingArea</classname>, <classname>GdkWindow</classname>, + and the numerous GTK and GDK drawing functions filed under 'Misc'. </simpara> </desc> </signal> -<!-- widget_signals[EXPOSE_EVENT] = - gtk_signal_new ("expose_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, expose_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.key-press-event"> <signalname>key-press-event</signalname> @@ -1897,26 +2045,41 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> key_press</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_KEY_PRESS</literal> event is captured. </shortdesc> <desc> - <simpara> - - </simpara> + <para> + This is an event signal, fired when the connected widget picks up a + <literal>GDK_KEY_PRESS</literal> event. Key press events are + generated by any of the keys on a keyboard being pressed. You can + distinguish between the key values in the callback using an + <literal>if</literal> or <literal>switch</literal> statement: + <informalexample> + <programlisting role="php"> +function on_click($widget, $event, $data) { +if($event->keyval==GDK_KEY_Return) { +/*do something appropriate for the return key being pressed*/ +} +elseif($event->keyval > GDK_KEY__a) { +/*we can reach the character strings, too*/ +echo $event->string."\n"; +}} + </programlisting> + </informalexample> + </para> + <note> + <simpara> + Yes, we have hard-coded keysyms. The full list of PHP-GTK keysymbol + constants is in the source code in the file + <filename>php-gtk/ext/gtk+/php_gdk.c</filename>. + </simpara> + </note> </desc> </signal> -<!-- widget_signals[KEY_PRESS_EVENT] = - gtk_signal_new ("key_press_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, key_press_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.key-release-event"> <signalname>key-release-event</signalname> @@ -1924,11 +2087,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> key_release</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_KEY_RELEASE</literal> event is captured. </shortdesc> <desc> <simpara> @@ -1936,14 +2099,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[KEY_RELEASE_EVENT] = - gtk_signal_new ("key_release_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, key_release_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.enter-notify-event"> <signalname>enter-notify-event</signalname> @@ -1951,11 +2106,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> enter_notify</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_ENTER_NOTIFY</literal> event is captured. </shortdesc> <desc> <simpara> @@ -1963,14 +2118,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[ENTER_NOTIFY_EVENT] = - gtk_signal_new ("enter_notify_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, enter_notify_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.leave-notify-event"> <signalname>leave-notify-event</signalname> @@ -1978,11 +2125,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> leave_notify</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_LEAVE_NOTIFY</literal> event is captured. </shortdesc> <desc> <simpara> @@ -1990,14 +2137,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[LEAVE_NOTIFY_EVENT] = - gtk_signal_new ("leave_notify_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, leave_notify_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.configure-event"> <signalname>configure-event</signalname> @@ -2005,11 +2144,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> configure</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_CONFIGURE</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2017,14 +2156,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[CONFIGURE_EVENT] = - gtk_signal_new ("configure_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, configure_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.focus-in-event"> <signalname>focus-in-event</signalname> @@ -2032,11 +2163,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> focus_change</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_FOCUS_CHANGE</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2044,14 +2175,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[FOCUS_IN_EVENT] = - gtk_signal_new ("focus_in_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, focus_in_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.focus-out-event"> <signalname>focus-out-event</signalname> @@ -2059,11 +2182,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> focus_change</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_FOCUS_CHANGE</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2071,14 +2194,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[FOCUS_OUT_EVENT] = - gtk_signal_new ("focus_out_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, focus_out_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.map-event"> <signalname>map-event</signalname> @@ -2086,11 +2201,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> map</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_MAP</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2098,14 +2213,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[MAP_EVENT] = - gtk_signal_new ("map_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, map_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.unmap-event"> <signalname>unmap-event</signalname> @@ -2113,11 +2220,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> unmap</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_UNMAP</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2125,14 +2232,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[UNMAP_EVENT] = - gtk_signal_new ("unmap_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, unmap_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.property-notify-event"> <signalname>property-notify-event</signalname> @@ -2140,11 +2239,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> property_notify</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_PROPERTY_NOTIFY</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2152,14 +2251,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[PROPERTY_NOTIFY_EVENT] = - gtk_signal_new ("property_notify_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, property_notify_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.selection-clear-event"> <signalname>selection-clear-event</signalname> @@ -2167,11 +2258,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> selection_clear</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_SELECTION_CLEAR</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2179,14 +2270,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[SELECTION_CLEAR_EVENT] = - gtk_signal_new ("selection_clear_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, selection_clear_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.selection-request-event"> <signalname>selection-request-event</signalname> @@ -2194,11 +2277,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> selection_request</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_SELECTION_REQUEST</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2206,14 +2289,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[SELECTION_REQUEST_EVENT] = - gtk_signal_new ("selection_request_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, selection_request_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.selection-notify-event"> <signalname>selection-notify-event</signalname> @@ -2221,11 +2296,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> selection_notify</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_SELECTION_NOTIFY</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2233,14 +2308,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[SELECTION_NOTIFY_EVENT] = - gtk_signal_new ("selection_notify_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, selection_notify_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.selection-received"> <signalname>selection-received</signalname> @@ -2308,11 +2375,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> proximity_in</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_PROXIMITY_IN</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2320,14 +2387,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[PROXIMITY_IN_EVENT] = - gtk_signal_new ("proximity_in_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, proximity_in_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.proximity-out-event"> <signalname>proximity-out-event</signalname> @@ -2335,11 +2394,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> proximity_out</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_PROXIMITY_OUT</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2347,14 +2406,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[PROXIMITY_OUT_EVENT] = - gtk_signal_new ("proximity_out_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, proximity_out_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.drag-leave"> <signalname>drag-leave</signalname> @@ -2367,7 +2418,7 @@ </funcprototype> </callback> <shortdesc> - + </shortdesc> <desc> <simpara> @@ -2395,7 +2446,7 @@ </funcprototype> </callback> <shortdesc> - + </shortdesc> <desc> <simpara> @@ -2422,7 +2473,7 @@ </funcprototype> </callback> <shortdesc> - + </shortdesc> <desc> <simpara> @@ -2479,7 +2530,7 @@ </funcprototype> </callback> <shortdesc> - + </shortdesc> <desc> <simpara> @@ -2608,11 +2659,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> visibility_notify</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_VISIBILITY_NOTIFY</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2620,14 +2671,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[VISIBILITY_NOTIFY_EVENT] = - gtk_signal_new ("visibility_notify_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, visibility_notify_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.client-event"> <signalname>client-event</signalname> @@ -2635,11 +2678,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> client_event</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_CLIENT_EVENT</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2647,14 +2690,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[CLIENT_EVENT] = - gtk_signal_new ("client_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, client_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.no-expose-event"> <signalname>no-expose-event</signalname> @@ -2662,7 +2697,7 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> no_expose</paramdef> </funcprototype> </callback> <shortdesc> @@ -2670,18 +2705,10 @@ </shortdesc> <desc> <simpara> - + Emitted when a <literal>GDK_NO_EXPOSE</literal> event is captured. </simpara> </desc> </signal> -<!-- widget_signals[NO_EXPOSE_EVENT] = - gtk_signal_new ("no_expose_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, no_expose_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.debug-msg"> <signalname>debug-msg</signalname> @@ -2717,8 +2744,7 @@ <propname>style</propname> <proptype>GtkStyle</proptype> <shortdesc> - Style associated with a widget's - <propname class="GtkWidget">window</propname>. + Style associated with a widget. </shortdesc> <desc> <simpara>
Index: php-gtk-doc/en/reference/gdk/gdkenum.xml diff -u php-gtk-doc/en/reference/gdk/gdkenum.xml:1.7 php-gtk-doc/en/reference/gdk/gdkenum.xml:1.8 --- php-gtk-doc/en/reference/gdk/gdkenum.xml:1.7 Wed Feb 6 09:10:47 2002 +++ php-gtk-doc/en/reference/gdk/gdkenum.xml Sat Feb 9 10:27:11 2002 @@ -66,7 +66,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_EXPOSE</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This causes the widget to emit the <signalname class="GtkWidget">expose-event</signalname> signal. </shortdesc> </enumoption> @@ -76,7 +76,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_MOTION_NOTIFY</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">motion-notify-event</signalname> signal. </shortdesc> </enumoption> @@ -88,35 +88,56 @@ <literal>GDK_POINTER_MOTION_MASK</literal> functionality. This can be necessary to avoid a time-lag in processing caused by the sheer volume of <literal>GDK_MOTION_NOTIFY</literal> events produced by - mouse movement. + mouse movement, each once of which causes a + <signalname class="GtkWidget">motion-notify-event</signalname> signal + to be fired by the widget. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON_MOTION_MASK</optionname> <shortdesc> - + Allows the <literal>GDK_MOTION_NOTIFY</literal> events to be picked up + by the widget's <classname>GdkWindow</classname> only while a mouse-button + (any) is pressed down. This is a way of limiting the widget's + <signalname class="GtkWidget">motion-notify-event</signalname> signal + emissions. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON1_MOTION_MASK</optionname> <shortdesc> - + Allows the <literal>GDK_MOTION_NOTIFY</literal> events to be picked up + by the widget's <classname>GdkWindow</classname> only while mouse-button + <literal>1</literal> is pressed down - usually that's the left button. + This is a way of limiting the widget's + <signalname class="GtkWidget">motion-notify-event</signalname> signal + emissions. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON2_MOTION_MASK</optionname> <shortdesc> - + Allows the <literal>GDK_MOTION_NOTIFY</literal> events to be picked up + by the widget's <classname>GdkWindow</classname> only while mouse-button + <literal>2</literal> is pressed down - usually that's the center button, + where it exists. This is a way of limiting the widget's + <signalname class="GtkWidget">motion-notify-event</signalname> signal + emissions. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON3_MOTION_MASK</optionname> <shortdesc> - + Allows the <literal>GDK_MOTION_NOTIFY</literal> events to be picked up + by the widget's <classname>GdkWindow</classname> only while mouse-button + <literal>3</literal> is pressed down - usually that's the right button. + This is a way of limiting the widget's + <signalname class="GtkWidget">motion-notify-event</signalname> signal + emissions. </shortdesc> </enumoption> @@ -125,7 +146,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_BUTTON_PRESS</literal> events to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">button-press-event</signalname> signal. </shortdesc> </enumoption> @@ -135,7 +156,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_BUTTON_RELEASE</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">button-release-event</signalname> signal. </shortdesc> </enumoption> @@ -145,7 +166,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_KEY_PRESS</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">key-press-event</signalname> signal. </shortdesc> </enumoption> @@ -155,7 +176,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_KEY_RELEASE</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">key-release-event</signalname> signal. </shortdesc> </enumoption> @@ -165,7 +186,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_ENTER_NOTIFY</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This causes the widget to emit the <signalname class="GtkWidget">enter-notify-event</signalname> signal. </shortdesc> </enumoption> @@ -175,7 +196,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_LEAVE_NOTIFY</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">leave-notify-event</signalname> signal. </shortdesc> </enumoption> @@ -185,7 +206,7 @@ <shortdesc> Setting this flag allows the <literal>GDK_FOCUS_CHANGE</literal> event to be captured by a widget's <classname>GdkWindow</classname>. - This enables the widget to emit the + This makes the widget emit the <signalname class="GtkWidget">focus-in-event</signalname> or <signalname class="GtkWidget">focus-out-event</signalname> signal as appropriate. @@ -195,42 +216,61 @@ <enumoption> <optionname>GDK_STRUCTURE_MASK</optionname> <shortdesc> - + This flag is set on all new instances of <classname>GdkWindow</classname>. + It allows map, unmap, destroy and configure events to be captured, + causing <signalname class="GtkWidget">map-event</signalname>, + <signalname class="GtkWidget">unmap-event</signalname>, + <signalname class="GtkWidget">destroy-event</signalname> and + <signalname class="GtkWidget">configure-event</signalname> signals to be + emitted from all windowed widgets. </shortdesc> </enumoption> <enumoption> <optionname>GDK_PROPERTY_CHANGE_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_PROPERTY_NOTIFY</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This makes the widget emit the + <signalname class="GtkWidget">property-notify-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_VISIBILITY_NOTIFY_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_VISIBILITY_NOTIFY</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This causes the widget to emit the + <signalname class="GtkWidget">visibility-notify-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_PROXIMITY_IN_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_PROXIMITY_IN</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This causes the widget to emit the + <signalname class="GtkWidget">proximity-in-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_PROXIMITY_OUT_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_PROXIMITY_OUT</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This makes the widget emit the + <signalname class="GtkWidget">proximity-out-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_SUBSTRUCTURE_MASK</optionname> <shortdesc> - + Enables the widget's <classname>GdkWindow</classname> to capture + <literal>GDK_STRUCTURE_MASK</literal> events on any child windows. </shortdesc> </enumoption> Index: php-gtk-doc/en/reference/gtk/gtkhscale.xml diff -u php-gtk-doc/en/reference/gtk/gtkhscale.xml:1.4 php-gtk-doc/en/reference/gtk/gtkhscale.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkhscale.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkhscale.xml Sat Feb 9 10:27:11 2002 @@ -7,7 +7,15 @@ Horizontal slider widget for selecting a value from a range. </shortdesc> <desc> - + <simpara> + A <classname>GtkHScale</classname> is a horizontal scrollbar-like widget + that is able to display its adjustment value as text. + </simpara> + <simpara> + There are some configuration issues with this widget when it is used + in such a way; please refer to <classname>GtkScale</classname> for + further information. + </simpara> </desc> </classmeta> @@ -15,14 +23,23 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkHScale</function></funcdef> - <paramdef><classname>GtkAdjustment</classname> <parameter>adjustment</parameter></paramdef> + <paramdef> + <classname>GtkAdjustment</classname> + <parameter>adjustment</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a horizontal slider. </shortdesc> <desc> - + <simpara> + A <classname>GtkHScale</classname> that can be given its own + <classname>GtkAdjustment</classname> settings or simply not display + the text value has no configuration issues whatever. However, please + note that even a <classname>GtkHScale</classname> with no displayed + value is not able to scroll a <classname>GtkText</classname> widget. + </simpara> </desc> </constructor> Index: php-gtk-doc/en/reference/gtk/gtkrange.xml diff -u php-gtk-doc/en/reference/gtk/gtkrange.xml:1.3 php-gtk-doc/en/reference/gtk/gtkrange.xml:1.4 --- php-gtk-doc/en/reference/gtk/gtkrange.xml:1.3 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkrange.xml Sat Feb 9 10:27:11 2002 @@ -16,7 +16,10 @@ <method id="gtk.gtkrange.method.get_adjustment"> <funcsynopsis> <funcprototype> - <funcdef><classname>GtkAdjustment</classname> <function>get_adjustment</function></funcdef> + <funcdef> + <classname>GtkAdjustment</classname> + <function>get_adjustment</function> + </funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> @@ -32,7 +35,10 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_update_policy</function></funcdef> - <paramdef><enumname>GtkUpdateType</enumname> <parameter>policy</parameter></paramdef> + <paramdef> + <enumname>GtkUpdateType</enumname> + <parameter>policy</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -47,7 +53,10 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_adjustment</function></funcdef> - <paramdef><classname>GtkAdjustment</classname> <parameter>adjustment</parameter></paramdef> + <paramdef> + <classname>GtkAdjustment</classname> + <parameter>adjustment</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> Index: php-gtk-doc/en/reference/gtk/gtkscale.xml diff -u php-gtk-doc/en/reference/gtk/gtkscale.xml:1.5 php-gtk-doc/en/reference/gtk/gtkscale.xml:1.6 --- php-gtk-doc/en/reference/gtk/gtkscale.xml:1.5 Thu Feb 7 00:47:19 2002 +++ php-gtk-doc/en/reference/gtk/gtkscale.xml Sat Feb 9 10:27:11 2002 @@ -8,7 +8,34 @@ <classname>GtkVScale</classname>. </shortdesc> <desc> - + <simpara> + A <classname>GtkScale</classname> is a widget that looks very like a + <classname>GtkScrollbar</classname> without the arrow buttons at either + end and with the ability to display the current value as text. + </simpara> + <simpara> + There are some issues with the value display, in that scrolling-aware + container widgets will not allow their child's + <classname>GtkAdjustment</classname> to be overwritten, which means that + the <classname>GtkScale</classname> cannot have focus unless it takes + the values given by the container to the scrollable widget. This in turn + misconfigures the display area, which is calculated with regard to the + upper value of the associated adjustment object. When a container sets + an adjustment, each value is <literal>0</literal> at the start, and the + later values are calculated on the fly after the widgets have been drawn. + </simpara> + <simpara> + Although it is possible to use the <classname>GtkWidget</classname> method + <function class="GtkWidget">queue_resize()</function> to force the text + area to resize according to the width of the new adjustment values, the + widget does not fully redraw unless it has a configure event - that is, + you need to manually resize it and then restore it. + </simpara> + <simpara> + For all these reasons, it is unadvisable to use the draw-value feature + where the <classname>GtkScale</classname> is associated with a scrollable + widget. + </simpara> </desc> </classmeta> @@ -25,7 +52,13 @@ Sets number of decimal places. </shortdesc> <desc> - + <simpara> + This method sets the number of places to the right of the decimal + point in the displayed value. + </simpara> + <simpara> + The default number of decimal places is <literal>1</literal>. + </simpara> </desc> </method> @@ -37,10 +70,16 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Toggles whether value is displayed. </shortdesc> <desc> - + <simpara> + <function class="GtkScale">set_draw_value()</function> simply + toggles whether the value is displayed as text or not. + </simpara> + <simpara> + The default setting is <literal>true</literal>. + </simpara> </desc> </method> @@ -55,10 +94,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets position of numeric text. </shortdesc> <desc> - + <simpara> + This method determines the position of the text, when it is displayed. + The default value is <literal>GTK_POS_TOP</literal>. + </simpara> </desc> </method> @@ -70,27 +112,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns string width of numeric text. </shortdesc> <desc> - + <simpara> + <function class="GtkScale">get_value_width()</function> returns the + width of the numeric text string in a <classname>GtkScale</classname>. + The value is given in pixels. + </simpara> </desc> </method> - <method id="gtk.gtkscale.method.draw_value"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>draw_value</function></funcdef> - <paramdef>void</paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - - </desc> - </method> + <!--DELETED draw_value() which is an internal method that generates the + draw_value property in the struct - sf feb 02 --> </methods> Index: php-gtk-doc/en/reference/gtk/gtkstatusbar.xml diff -u php-gtk-doc/en/reference/gtk/gtkstatusbar.xml:1.4 php-gtk-doc/en/reference/gtk/gtkstatusbar.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkstatusbar.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkstatusbar.xml Sat Feb 9 10:27:11 2002 @@ -7,7 +7,26 @@ Widget that provides a way to report messages of minor importance. </shortdesc> <desc> - + <simpara> + A <classname>GtkStatusbar</classname> is a framed label, usually added + to the bottom of a window, that provides a way to report messages of + minor importance. It is usually updated fairly frequently. + </simpara> + <simpara> + There are two indices in the structure of a statusbar; one is an + associative array of message information, and the other is a stack of + uniquely-indexed message arrays. The message at the top of the stack is + the one currently on display. + </simpara> + <note> + <simpara> + Where a routine requires a lot of processing, the statusbar may + be unable to update during the time taken to do so. Using + <function>gtk::events_pending()</function> will allow updating + throughout. + </simpara> + <!-- thanks Markus :) - sf --> + </note> </desc> </classmeta> @@ -19,10 +38,85 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a status bar. </shortdesc> <desc> - + <para> + Creating a status bar is very straightforward; creating and updating + messages marginally less so. + <example> + <title>Setting up a status bar.</title> + <programlisting role="php"> +dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')); + +function focusback($entry) { + $entry->set_text(''); + $entry->grab_focus(); + } + +function change_status($entry, $event, $status, $stuff, &$i) { + $value = $event->keyval; + $string = $event->string; + $popcontext = $status->get_context_id($stuff[$i]); + $status->pop($popcontext); + switch($value) { + case ($value >= GDK_KEY__a && $value <= GDK_KEY__z): + $i = 1; + break; + case ($value >= GDK_KEY_A && $value <= GDK_KEY_Z): + $i = 2; + break; + case ($value >= GDK_KEY_0 && $value <= GDK_KEY_9): + $i = 3; + break; + case GDK_KEY_Return: + $i = 4; + break; + case GDK_KEY_space: + $i = 5; + break; + default: + $i = 6; + } + $pushcontext = $status->get_context_id($stuff[$i]); + if($string && $string!==' ') { + $status->push($pushcontext, $string." is a ".$stuff[$i]." +character"); + } + else $status->push($pushcontext, $stuff[$i]); + if($i == 4) focusback($entry); +} + +$window = &new GtkWindow(); +$window->set_position(GTK_WIN_POS_CENTER); +$window->connect_object('destroy', array('gtk', 'main_quit')); + +$vbox = &new GtkVBox(); +$window->add($vbox); + +$status = &new GtkStatusbar(); +$i = 1; +$stuff = array("Here we go...", "lower case alpha", +"UPPER CASE ALPHA", "numeric", "return", +"spacebar", "non-alphanumeric"); +$status->push($i, $stuff[0]); +$vbox->pack_end($status, false); +$status->show(); + +$entry = &new GtkEntry(); +$entry->set_usize(400,20); +$entry->connect('key-press-event','change_status', $status, $stuff, +&$i); +$vbox->pack_start($entry, false); +$entry->show(); + +$window->show_all(); + +focusback($entry); +gtk::main(); + </programlisting> + </example> + </para> </desc> </constructor> @@ -36,10 +130,28 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the context id from the description. </shortdesc> <desc> - + <simpara> + The <classname>GtkStatusbar</classname> sets up an internal array of + the messages that have been used, as they are being called. The + <literal>context_id</literal> is the array index position that a + given message holds. + </simpara> + <simpara> + As the message array is created on the fly, it is never the same + twice running. The messages that are displayed most frequently during + the status bar's lifetime will have low numbers, and a message that is + never called will not be added to the array. It is far more efficient + to use <function class="GtkStatusbar">get_context_id()</function> to + generate a context id for a message than it is to allocate your own + integer value. + </simpara> + <simpara> + The <parameter>context_description</parameter> is actually the text + string used in the statusbar label. + </simpara> </desc> </method> @@ -52,10 +164,29 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Adds message to top of stack. </shortdesc> <desc> - + <simpara> + <function class="GtkStatusbar">push()</function> prepends the given + message to an internal stack in the statusbar, along with its + associated <parameter>context_id</parameter>. It is best to allow + the statusbar to generate the <parameter>context_id</parameter> for + itself, as the value can then change from one run to another to respond + to the user's pattern of interaction with the application. Use + <function class="GtkStatusbar">get_context_id()</function> to do this. + </simpara> + <simpara> + The returned value is a unique <literal>message_id</literal>, which is + needed as a parameter in the + <function class="GtkStatusbar">remove()</function> method. This is + simply an incremented value, beginning at <literal>1</literal>. + </simpara> + <simpara> + This method causes the + <signalname class="GtkStatusbar">text-pushed</signalname> signal to be + emitted. + </simpara> </desc> </method> @@ -67,10 +198,26 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Removes message from top of stack. </shortdesc> <desc> - + <simpara> + <function class="GtkStatusbar">pop()</function> removes the message + that is currently at the top of the statusbar's stack, using the + <parameter>context_id</parameter> to identify the message. + </simpara> + <simpara> + When a message is removed from the stack, the memory that was allocated + to it is freed. Given that all messages are generated uniquely, it is + good practice to <function class="GtkStatusbar">pop()</function> the + current message before appending the next. Allowing the stack to build + up can add considerably to processing time. + </simpara> + <simpara> + This method causes the + <signalname class="GtkStatusbar">text-popped</signalname> signal to be + emitted. + </simpara> </desc> </method> @@ -83,13 +230,89 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Removes designated message from stack. </shortdesc> <desc> - + <simpara> + This method removes a targeted message from anywhere in the stack. + </simpara> + <simpara> + Both the <parameter>context_id</parameter> and the + <parameter>message_id</parameter> can be generated by the statusbar + comfortably here as elsewhere in the <classname>GtkStatusbar</classname> + methods. + </simpara> + <simpara> + If you use this simply to replace a working + <function class="GtkStatusbar">pop()</function> function you should see + no difference in behaviour; the + <function class="GtkStatusbar">remove()</function> method even + causes the <signalname class="GtkStatusbar">text-popped</signalname> + signal to be emitted when it removes a message from the top of the stack. + Note that no signal is emitted when messages are taken from elsewhere in + the stack. + </simpara> + <simpara> + As there is no way to add a message anywhere other than the top of + the statusbar's stack - thereby immediately displaying it - this method + is basically a way of preventing a stack build-up where the pop/push + procedure has proved inappropriate. + </simpara> </desc> </method> </methods> + + <signals> + + <signal id="gtk.gtkstatusbar.signal.text-pushed"> + <signalname>text-pushed</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkStatusbar</classname> statusbar</paramdef> + <paramdef>int context_id</paramdef> + <paramdef>string text</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when a message is prepended to the stack. + </shortdesc> + <desc> + <simpara> + This signal is fired by a <classname>GtkStatusbar</classname> when the + <function class="GtkStatusbar">push()</function> method is called. It + carries with it the <literal>context_id</literal> and the text content + of the message. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkstatusbar.signal.text-popped"> + <signalname>text-popped</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkStatusbar</classname> statusbar</paramdef> + <paramdef>int context_id</paramdef> + <paramdef>string text</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when a message is popped from the top of the stack. + </shortdesc> + <desc> + <simpara> + This signal is fired by a <classname>GtkStatusbar</classname> when the + <function class="GtkStatusbar">pop()</function> method is called, and + also when when the topmost message in the stack is removed using the + <function class="GtkStatusbar">remove()</function> method . The signal + carries with it the <literal>context_id</literal> and the text content + of the message. + </simpara> + </desc> + </signal> + + </signals> </classentry> Index: php-gtk-doc/en/reference/gtk/gtkvscale.xml diff -u php-gtk-doc/en/reference/gtk/gtkvscale.xml:1.4 php-gtk-doc/en/reference/gtk/gtkvscale.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkvscale.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkvscale.xml Sat Feb 9 10:27:11 2002 @@ -7,7 +7,15 @@ Vertical slider widget for selecting a value from a range. </shortdesc> <desc> - + <simpara> + A <classname>GtkVScale</classname> is a vertical scrollbar-like widget + that is able to display its adjustment value as text. + </simpara> + <simpara> + There are some configuration issues with this widget when it is used + in such a way; please refer to <classname>GtkScale</classname> for + further information. + </simpara> </desc> </classmeta> @@ -15,14 +23,34 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkVScale</function></funcdef> - <paramdef><classname>GtkAdjustment</classname> <parameter><optional>adjustment = NULL</optional></parameter></paramdef> + <paramdef> + <classname>GtkAdjustment</classname> + <parameter><optional>adjustment = NULL</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a vertical slider. </shortdesc> <desc> - + <simpara> + A <classname>GtkVScale</classname> that can be given its own + <classname>GtkAdjustment</classname> settings has no configuration + issues whatever. + </simpara> + <para> + Reasonable settings on an adjustment object for a + <classname>GtkVScale</classname> on a single full page might look + something like this: + <informalexample> + <programlisting role="php"> +$adjustment = &new GtkAdjustment(0, 0, 100, 1, 25, 0); +$vscale = &new GtkVScale($adjustment); + </programlisting> + </informalexample> + This would give a scale of 0 to 100 along the height of the page, and + no overlap. + </para> </desc> </constructor> Index: php-gtk-doc/en/reference/gtk/gtkwidget.xml diff -u php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.12 php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.13 --- php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.12 Mon Feb 4 01:15:51 2002 +++ php-gtk-doc/en/reference/gtk/gtkwidget.xml Sat Feb 9 10:27:11 2002 @@ -468,7 +468,14 @@ Queues widget's resize requests. </shortdesc> <desc> - + <simpara> + Use this method to force a widget to resize. See + <classname>GtkScale</classname> for a working example. + </simpara> + <simpara> + <function class="GtkWidget">queue_resize()</function> is used + extensively within GTK+ internals. + </simpara> </desc> </method> @@ -806,10 +813,22 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gives grab and focus to the calling widget. </shortdesc> <desc> - + <simpara> + This method sets the initial grab and focus on the calling widget so + that, for example, if a <classname>GtkText</classname> were to call it, + any keyboard events would be picked up immediately by the text widget. + </simpara> + <simpara> + <function class="GtkWidget">grab_focus()</function> can only be called + when the widget in question has the <literal>GTK_CAN_FOCUS</literal> + flag set. Some will have this set at source, others will not, and will + generate an error message to that effect when the method is called. + Use <function class="GtkObject">set_flags()</function> to override the + source settings. + </simpara> </desc> </method> @@ -821,10 +840,23 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gives grab and default to the calling widget. </shortdesc> <desc> - + <simpara> + This method sets the keyboard grab and default status on the calling + widget. + </simpara> + <simpara> + The single most likely scenario where you might use this would be to + set up a <classname>GtkButton</classname> so that the user could + activate it by immediately pressing the return key. + </simpara> + <simpara> + In order to make this possible, you will need to set the + <literal>GTK_CAN_DEFAULT</literal> widget flag on the button. See + also: <function class="GtkObject">set_flags()</function>. + </simpara> </desc> </method> @@ -836,10 +868,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets widget name. </shortdesc> <desc> - + <simpara> + You may give a widget a unique name. This is mainly intended for + use when creating a derived object, but it can also be useful for + identifying individual widgets, for example, when an array of + buttons is going to be queried at a later point in the script. + </simpara> + <simpara> + See also: <function class="GtkWidget">get_name()</function>. + </simpara> </desc> </method> @@ -851,10 +891,23 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns name of widget. </shortdesc> <desc> - + <simpara> + This method returns the name of the calling widget. If no name + has been set for the widget, this will be in the format + <literal>GtkWidget</literal>. + </simpara> + <simpara> + <function class="GtkWidget">get_name()</function> is very useful + where the widget could be one of many, e.g. in a callback that is + used by several different widgets. + </simpara> + <simpara> + See also: <function class="GtkObject">get_type()</function>, + <function class="GtkWidget">set_name()</function>. + </simpara> </desc> </method> @@ -869,10 +922,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets widget's state. </shortdesc> <desc> - + <simpara> + Sets the initial <enumname>GtkStateType</enumname> for the calling + widget. Note that this will be overridden when the user interacts + with the widget, and is primarily useful for offering visual cues. + </simpara> + <simpara> + A widget's current state can be queried using the + <propname class="GtkWidget">state</propname> property. + </simpara> </desc> </method> @@ -884,10 +945,25 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Toggles sensitivity. </shortdesc> <desc> - + <simpara> + Use this function to toggle whether or not the user can interact + with a widget. Setting it to <literal>false</literal> sets the + widget's state to <literal>GTK_STATE_INSENSITIVE</literal>, which + 'greys out' the widget. + </simpara> + <simpara> + You might use this if, for instance, you wanted to prevent a button + from being pressed in certain situations. + </simpara> + <note> + <simpara> + Setting a container as 'insensitive' will make all that container's + children insensitive too. + </simpara> + </note> </desc> </method> @@ -1164,7 +1240,7 @@ <method id="gtk.gtkwidget.method.is_ancestor"> <funcsynopsis> <funcprototype> - <funcdef>int <function>is_ancestor</function></funcdef> + <funcdef>bool <function>is_ancestor</function></funcdef> <paramdef> <classname>GtkWidget</classname> <parameter>ancestor</parameter> @@ -1172,10 +1248,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Tests relationship with other widgets. </shortdesc> <desc> - + <simpara> + <function class="GtkWidget">is_ancestor()</function> tests whether the + widget named in the <parameter>ancestor</parameter> parameter is an + ancestor of the calling widget, in the packing hierarchy rather than + in the GTK object hierarchy. + </simpara> + <simpara> + This method is used extensively in GTK+ internals, but can also be + useful in PHP-GTK, particularly for debugging purposes. + </simpara> </desc> </method> @@ -1708,26 +1793,46 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> event</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when any event is captured. </shortdesc> <desc> <simpara> - + The <signalname class="GtkWidget">event</signalname> signal is emitted + when any <classname>GdkEvent</classname> is captured by the connected + widget's underlying <classname>GdkWindow</classname>. + </simpara> + <simpara> + All event signals return <literal>false</literal> until the event has + been propagated to the widget that will handle it, at which point they + return <literal>true</literal>, the event is no longer propagated and + the signal is no longer fired. + </simpara> + <note> + <simpara> + Each event causes two signal emissions; the generic event signal + described here, and the specific event signal that is being called, + such as the <signalname class="GtkWidget">key-press-event</signalname> + signal. The <signalname class="GtkWidget">event</signalname> signal + itself is unlikely to be used directly on its own account very often. + </simpara> + </note> + <simpara> + All event signals carry the event that caused the signal to be fired as + the first parameter after the connecting widget. You may add as many + parameters as you like that contain data specific to your application. + </simpara> + <simpara> + You can limit or extend the events that are captured by a windowed widget + by setting one or more <enumname>GdkEventMask</enumname> flags for the + widget. See <function class="GtkWidget">add_events()</function>, and + <function class="GtkWidget">set_events()</function>. </simpara> </desc> </signal> -<!-- widget_signals[EVENT] = - gtk_signal_new ("event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.button-press-event"> <signalname>button-press-event</signalname> @@ -1735,26 +1840,46 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> button_press</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_BUTTON_PRESS</literal> event is captured. </shortdesc> <desc> - <simpara> - + <para> + This is an event signal, fired when the connected widget picks up a + <literal>GDK_BUTTON_PRESS</literal> event. Button press events are + generated by any of the mouse buttons being pressed. You can distinguish + between the mouse buttons in the callback by using an + <literal>if</literal> or <literal>switch</literal> statement: + <informalexample> + <programlisting role="php"> +function on_click($widget, $event, $data) { +switch($event->button) { +case 1: +/* do something appropriate to a left click */ +break; +case 2: +/* do something appropriate to a middle click */ +break; +case 3: +/* do something appropriate to a right click */ +break; +}} + +$widget->connect('button-press-event', 'on_click', $data); + </programlisting> + </informalexample> + </para> + <simpara> + See also: + <signalname class="GtkWidget">button-release-event</signalname>, + <signalname class="GtkWidget">event</signalname>, + <signalname class="GtkWidget">key-press-event</signalname>. </simpara> </desc> </signal> -<!-- widget_signals[BUTTON_PRESS_EVENT] = - gtk_signal_new ("button_press_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, button_press_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.button-release-event"> <signalname>button-release-event</signalname> @@ -1762,26 +1887,28 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> button_release</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_BUTTON_RELEASE</literal> event is captured. </shortdesc> <desc> <simpara> - + This is an event signal, fired when the connected widget picks up a + <literal>GDK_BUTTON_RELEASE</literal> event. Button release events are + generated by any of the mouse buttons being released. You can + distinguish between the mouse buttons in the callback by using + <literal>$event->button</literal>. + </simpara> + <simpara> + See also: + <signalname class="GtkWidget">button-press-event</signalname>, + <signalname class="GtkWidget">event</signalname>, + <signalname class="GtkWidget">key-press-event</signalname>. </simpara> </desc> </signal> -<!-- widget_signals[BUTTON_RELEASE_EVENT] = - gtk_signal_new ("button_release_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, button_release_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.motion-notify-event"> <signalname>motion-notify-event</signalname> @@ -1789,26 +1916,26 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> motion_notify</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_MOTION_NOTIFY</literal> event is captured. </shortdesc> <desc> <simpara> - + This is an event signal, fired when the connected widget picks up a + <literal>GDK_MOTION_NOTIFY</literal> event. Motion notify events are + triggered when the mouse pointer moves across the screen. There are + a great many of them, which has given rise to several different kinds + of <enumname>GdkEventMask</enumname> aiming to minimise the amount + that are captured. + </simpara> + <simpara> + See also: <signalname class="GtkWidget">event</signalname>. </simpara> </desc> </signal> -<!-- widget_signals[MOTION_NOTIFY_EVENT] = - gtk_signal_new ("motion_notify_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, motion_notify_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.delete-event"> <signalname>delete-event</signalname> @@ -1816,26 +1943,35 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> delete</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_DELETE</literal> event is captured. </shortdesc> <desc> <simpara> - + This is an event signal, fired when the window manager requests that + a widget be deleted. This is generally when a user clicks the + <literal>X</literal> close button on a toplevel window. + </simpara> + <simpara> + The delete event is not propagated. If you want to prevent the + end user from using the window decorations to close your application, + returning <literal>true</literal> from the + <signalname class="GtkWindow">delete-event</signalname> signal will do + just that. Allowing it to return <literal>false</literal> - which it + does by default - will cause its default handler to be called. This + happens to be the <function class="GtkObject">destroy()</function> + method, which in turns fires the + <signalname class="GtkObject">destroy</signalname> signal. In most + cases, it's simpler to connect directly to the latter. + </simpara> + <simpara> + See also: <signalname class="GtkWidget">event</signalname>. </simpara> </desc> </signal> -<!-- widget_signals[DELETE_EVENT] = - gtk_signal_new ("delete_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, delete_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.destroy-event"> <signalname>destroy-event</signalname> @@ -1843,26 +1979,26 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> destroy</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_DESTROY</literal> event is captured. </shortdesc> <desc> <simpara> - + You really shouldn't ever find a widget that emits this signal. The + destroy event is triggered by the destruction of a widget's underlying + <classname>GdkWindow</classname>, so if that widget is still capable of + emitting the <signalname class="GtkWidget">destroy-event</signalname> + signal something has gone badly awry. + </simpara> + <simpara> + See also: <signalname class="GtkWidget">delete-event</signalname>, + <signalname class="GtkWidget">event</signalname>. </simpara> </desc> </signal> -<!-- widget_signals[DESTROY_EVENT] = - gtk_signal_new ("destroy_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, destroy_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.expose-event"> <signalname>expose-event</signalname> @@ -1870,26 +2006,38 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> expose</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_EXPOSE</literal> event is captured. </shortdesc> <desc> <simpara> - + This is an event signal, initially emitted when the connected widget + becomes fully visible on screen. Every widget can capture expose + events; they are even synthesized for widgets that don't have + a <classname>GdkWindow</classname>. + </simpara> + <simpara> + Expose events are also generated when a widget has been partially + or fully covered by another widget, and is re-exposed. These events + trigger a redraw internally; a <classname>GdkWindow</classname> + that is not currently exposed is not currently drawn, and the same + applies to any unexposed area of a window. + </simpara> + <simpara> + Following suit, the most likely reason to connect to an + <signalname class="GtkWidget">expose-event</signalname> signal is + that you have a drawing function in the callback. + </simpara> + <simpara> + See also: <signalname class="GtkWidget">event</signalname>, + <classname>GtkDrawingArea</classname>, <classname>GdkWindow</classname>, + and the numerous GTK and GDK drawing functions filed under 'Misc'. </simpara> </desc> </signal> -<!-- widget_signals[EXPOSE_EVENT] = - gtk_signal_new ("expose_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, expose_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.key-press-event"> <signalname>key-press-event</signalname> @@ -1897,26 +2045,41 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> key_press</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_KEY_PRESS</literal> event is captured. </shortdesc> <desc> - <simpara> - - </simpara> + <para> + This is an event signal, fired when the connected widget picks up a + <literal>GDK_KEY_PRESS</literal> event. Key press events are + generated by any of the keys on a keyboard being pressed. You can + distinguish between the key values in the callback using an + <literal>if</literal> or <literal>switch</literal> statement: + <informalexample> + <programlisting role="php"> +function on_click($widget, $event, $data) { +if($event->keyval==GDK_KEY_Return) { +/*do something appropriate for the return key being pressed*/ +} +elseif($event->keyval > GDK_KEY__a) { +/*we can reach the character strings, too*/ +echo $event->string."\n"; +}} + </programlisting> + </informalexample> + </para> + <note> + <simpara> + Yes, we have hard-coded keysyms. The full list of PHP-GTK keysymbol + constants is in the source code in the file + <filename>php-gtk/ext/gtk+/php_gdk.c</filename>. + </simpara> + </note> </desc> </signal> -<!-- widget_signals[KEY_PRESS_EVENT] = - gtk_signal_new ("key_press_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, key_press_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.key-release-event"> <signalname>key-release-event</signalname> @@ -1924,11 +2087,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> key_release</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_KEY_RELEASE</literal> event is captured. </shortdesc> <desc> <simpara> @@ -1936,14 +2099,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[KEY_RELEASE_EVENT] = - gtk_signal_new ("key_release_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, key_release_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.enter-notify-event"> <signalname>enter-notify-event</signalname> @@ -1951,11 +2106,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> enter_notify</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_ENTER_NOTIFY</literal> event is captured. </shortdesc> <desc> <simpara> @@ -1963,14 +2118,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[ENTER_NOTIFY_EVENT] = - gtk_signal_new ("enter_notify_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, enter_notify_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.leave-notify-event"> <signalname>leave-notify-event</signalname> @@ -1978,11 +2125,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> leave_notify</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_LEAVE_NOTIFY</literal> event is captured. </shortdesc> <desc> <simpara> @@ -1990,14 +2137,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[LEAVE_NOTIFY_EVENT] = - gtk_signal_new ("leave_notify_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, leave_notify_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.configure-event"> <signalname>configure-event</signalname> @@ -2005,11 +2144,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> configure</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_CONFIGURE</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2017,14 +2156,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[CONFIGURE_EVENT] = - gtk_signal_new ("configure_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, configure_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.focus-in-event"> <signalname>focus-in-event</signalname> @@ -2032,11 +2163,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> focus_change</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_FOCUS_CHANGE</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2044,14 +2175,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[FOCUS_IN_EVENT] = - gtk_signal_new ("focus_in_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, focus_in_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.focus-out-event"> <signalname>focus-out-event</signalname> @@ -2059,11 +2182,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> focus_change</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_FOCUS_CHANGE</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2071,14 +2194,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[FOCUS_OUT_EVENT] = - gtk_signal_new ("focus_out_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, focus_out_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.map-event"> <signalname>map-event</signalname> @@ -2086,11 +2201,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> map</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_MAP</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2098,14 +2213,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[MAP_EVENT] = - gtk_signal_new ("map_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, map_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.unmap-event"> <signalname>unmap-event</signalname> @@ -2113,11 +2220,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> unmap</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_UNMAP</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2125,14 +2232,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[UNMAP_EVENT] = - gtk_signal_new ("unmap_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, unmap_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.property-notify-event"> <signalname>property-notify-event</signalname> @@ -2140,11 +2239,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> property_notify</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_PROPERTY_NOTIFY</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2152,14 +2251,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[PROPERTY_NOTIFY_EVENT] = - gtk_signal_new ("property_notify_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, property_notify_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.selection-clear-event"> <signalname>selection-clear-event</signalname> @@ -2167,11 +2258,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> selection_clear</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_SELECTION_CLEAR</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2179,14 +2270,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[SELECTION_CLEAR_EVENT] = - gtk_signal_new ("selection_clear_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, selection_clear_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.selection-request-event"> <signalname>selection-request-event</signalname> @@ -2194,11 +2277,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> selection_request</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_SELECTION_REQUEST</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2206,14 +2289,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[SELECTION_REQUEST_EVENT] = - gtk_signal_new ("selection_request_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, selection_request_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.selection-notify-event"> <signalname>selection-notify-event</signalname> @@ -2221,11 +2296,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> selection_notify</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_SELECTION_NOTIFY</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2233,14 +2308,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[SELECTION_NOTIFY_EVENT] = - gtk_signal_new ("selection_notify_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, selection_notify_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.selection-received"> <signalname>selection-received</signalname> @@ -2308,11 +2375,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> proximity_in</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_PROXIMITY_IN</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2320,14 +2387,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[PROXIMITY_IN_EVENT] = - gtk_signal_new ("proximity_in_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, proximity_in_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.proximity-out-event"> <signalname>proximity-out-event</signalname> @@ -2335,11 +2394,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> proximity_out</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_PROXIMITY_OUT</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2347,14 +2406,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[PROXIMITY_OUT_EVENT] = - gtk_signal_new ("proximity_out_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, proximity_out_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.drag-leave"> <signalname>drag-leave</signalname> @@ -2367,7 +2418,7 @@ </funcprototype> </callback> <shortdesc> - + </shortdesc> <desc> <simpara> @@ -2395,7 +2446,7 @@ </funcprototype> </callback> <shortdesc> - + </shortdesc> <desc> <simpara> @@ -2422,7 +2473,7 @@ </funcprototype> </callback> <shortdesc> - + </shortdesc> <desc> <simpara> @@ -2479,7 +2530,7 @@ </funcprototype> </callback> <shortdesc> - + </shortdesc> <desc> <simpara> @@ -2608,11 +2659,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> visibility_notify</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_VISIBILITY_NOTIFY</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2620,14 +2671,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[VISIBILITY_NOTIFY_EVENT] = - gtk_signal_new ("visibility_notify_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, visibility_notify_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.client-event"> <signalname>client-event</signalname> @@ -2635,11 +2678,11 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> client_event</paramdef> </funcprototype> </callback> <shortdesc> - + Emitted when a <literal>GDK_CLIENT_EVENT</literal> event is captured. </shortdesc> <desc> <simpara> @@ -2647,14 +2690,6 @@ </simpara> </desc> </signal> -<!-- widget_signals[CLIENT_EVENT] = - gtk_signal_new ("client_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, client_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.no-expose-event"> <signalname>no-expose-event</signalname> @@ -2662,7 +2697,7 @@ <funcprototype> <funcdef>bool <function>callback</function></funcdef> <paramdef><classname>GtkWidget</classname> widget</paramdef> - <paramdef> </paramdef> + <paramdef><classname>GdkEvent</classname> no_expose</paramdef> </funcprototype> </callback> <shortdesc> @@ -2670,18 +2705,10 @@ </shortdesc> <desc> <simpara> - + Emitted when a <literal>GDK_NO_EXPOSE</literal> event is captured. </simpara> </desc> </signal> -<!-- widget_signals[NO_EXPOSE_EVENT] = - gtk_signal_new ("no_expose_event", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, no_expose_event), - gtk_marshal_BOOL__POINTER, - GTK_TYPE_BOOL, 1, - GTK_TYPE_GDK_EVENT); --> <signal id="gtk.gtkwidget.signal.debug-msg"> <signalname>debug-msg</signalname> @@ -2717,8 +2744,7 @@ <propname>style</propname> <proptype>GtkStyle</proptype> <shortdesc> - Style associated with a widget's - <propname class="GtkWidget">window</propname>. + Style associated with a widget. </shortdesc> <desc> <simpara>