cvs: php-gtk-doc /es language-defs.ent /es/reference/gdk gdk-functions.xml gdkcolor.xml /es/reference/gtk gtk-functions.xml gtkaccelgroup.xml
gtkadjustment.xml /es/tutorials hellow.xml /es/userguide/chapters signals.xml

From: Date: Sun, 03 Aug 2003 17:46:11 +0000
Subject: cvs: php-gtk-doc /es language-defs.ent /es/reference/gdk gdk-functions.xml gdkcolor.xml /es/reference/gtk gtk-functions.xml gtkaccelgroup.xml
gtkadjustment.xml /es/tutorials hellow.xml /es/userguide/chapters signals.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-819@lists.php.net to get a copy of this message
sfox Sun Aug 3 13:46:11 2003 EDT Modified files: /php-gtk-doc/es language-defs.ent /php-gtk-doc/es/reference/gdk gdk-functions.xml gdkcolor.xml /php-gtk-doc/es/reference/gtk gtk-functions.xml gtkaccelgroup.xml gtkadjustment.xml /php-gtk-doc/es/tutorials hellow.xml /php-gtk-doc/es/userguide/chapters signals.xml Log: CDATA and co updates for es

Index: php-gtk-doc/es/language-defs.ent diff -u php-gtk-doc/es/language-defs.ent:1.3 php-gtk-doc/es/language-defs.ent:1.4 --- php-gtk-doc/es/language-defs.ent:1.3 Wed Jun 18 13:08:49 2003 +++ php-gtk-doc/es/language-defs.ent Sun Aug 3 13:46:11 2003 @@ -23,10 +23,14 @@ <!ENTITY GdkClassesDesc "<para>Las clases que provee la bibilioteca GDK</para>"> <!ENTITY GtkEnums "GTK Enums"> -<!ENTITY GtkEnumsDesc "Todo lo querias saber acerca de los GTK Enums esta aqui!"> +<!ENTITY GtkEnumsDesc "Enumerated values can be any one of the + values listed. Flags can be a combination of any of the values listed. + Both enums and flags have a numeric value and a key which is human-readable."> <!ENTITY GdkEnums "GDK Enums"> -<!ENTITY GdkEnumsDesc "Todo lo querias saber acerca de los GDK Enums esta aqui!"> +<!ENTITY GdkEnumsDesc "Enumerated values can be any one of the + values listed. Flags can be a combination of any of the values listed. + Both enums and flags have a numeric value and a key which is human-readable."> <!ENTITY LibGladeClasses "Clases Glade"> <!ENTITY LibGladeClassesDesc "<para>Las clases que provee la bibilioteca Glade</para>"> Index: php-gtk-doc/es/reference/gdk/gdk-functions.xml diff -u php-gtk-doc/es/reference/gdk/gdk-functions.xml:1.4 php-gtk-doc/es/reference/gdk/gdk-functions.xml:1.5 --- php-gtk-doc/es/reference/gdk/gdk-functions.xml:1.4 Wed Jun 18 13:08:50 2003 +++ php-gtk-doc/es/reference/gdk/gdk-functions.xml Sun Aug 3 13:46:11 2003 @@ -753,9 +753,9 @@ <![CDATA[ <?php -$gdkpixmap = gdk::pixmap_create_from_xpm($main_window-&gt;window, null, +$gdkpixmap = gdk::pixmap_create_from_xpm($main_window->window, null, 'test.xpm'); -$image = &amp;new GtkPixmap($gdkpixmap[0], $gdkpixmap[1]); +$image = &new GtkPixmap($gdkpixmap[0], $gdkpixmap[1]); ?> ]]> @@ -769,7 +769,7 @@ list ($gdkpixmap, $mask) = gdk::pixmap_create_from_xpm($gdkwindow, $transparent_color, 'test.xpm'); -$image = &amp;new GtkPixmap($gdkpixmap, $mask); +$image = &new GtkPixmap($gdkpixmap, $mask); ?> ]]> @@ -801,7 +801,7 @@ <desc> <simpara> <literal> - $gdkpixmap = gdk::pixmap_create_from_xpm_d($main_window-&gt;window, + $gdkpixmap = gdk::pixmap_create_from_xpm_d($main_window->window, $transparent_color, $data); </literal> <!-- No I am NOT going to leave it like this.. sf mar 02 --> Index: php-gtk-doc/es/reference/gdk/gdkcolor.xml diff -u php-gtk-doc/es/reference/gdk/gdkcolor.xml:1.3 php-gtk-doc/es/reference/gdk/gdkcolor.xml:1.4 --- php-gtk-doc/es/reference/gdk/gdkcolor.xml:1.3 Wed Jun 18 13:08:50 2003 +++ php-gtk-doc/es/reference/gdk/gdkcolor.xml Sun Aug 3 13:46:11 2003 @@ -67,13 +67,13 @@ <?php /* XcmsRGB values, expressed as three integers */ -$cyan = &amp;new GdkColor(0, 65535, 65535); +$cyan = &new GdkColor(0, 65535, 65535); /* hex triples expressed as a single string */ -$cyan = &amp;new GdkColor('#00FFFF'); +$cyan = &new GdkColor('#00FFFF'); /* a color name expressed as a single string */ -$cyan = &amp;new GdkColor('cyan'); +$cyan = &new GdkColor('cyan'); ?> ]]> Index: php-gtk-doc/es/reference/gtk/gtk-functions.xml diff -u php-gtk-doc/es/reference/gtk/gtk-functions.xml:1.4 php-gtk-doc/es/reference/gtk/gtk-functions.xml:1.5 --- php-gtk-doc/es/reference/gtk/gtk-functions.xml:1.4 Wed Jun 18 22:14:31 2003 +++ php-gtk-doc/es/reference/gtk/gtk-functions.xml Sun Aug 3 13:46:11 2003 @@ -1377,9 +1377,15 @@ <literal>null</literal>, o como un string cualquier esta bien. </simpara> <para> -$rectangle = &amp;new GdkRectangle($x, $y, $width, $height); + <informalexample> + <programlisting role="php"> +<![CDATA[ +$rectangle = &new GdkRectangle($x, $y, $width, $height); gtk::paint_flat_box($style, $gdkwindow, GTK_STATE_ACTIVE, GTK_SHADOW_NONE, $rectangle, $drawingarea, null, $x, $y, $width, $height); +]]> + </programlisting> + </informalexample> </para> </desc> </method> Index: php-gtk-doc/es/reference/gtk/gtkaccelgroup.xml diff -u php-gtk-doc/es/reference/gtk/gtkaccelgroup.xml:1.3 php-gtk-doc/es/reference/gtk/gtkaccelgroup.xml:1.4 --- php-gtk-doc/es/reference/gtk/gtkaccelgroup.xml:1.3 Wed Jun 18 13:08:50 2003 +++ php-gtk-doc/es/reference/gtk/gtkaccelgroup.xml Sun Aug 3 13:46:11 2003 @@ -43,12 +43,18 @@ acelerada. </shortdesc> <desc> - <simpara> + <para> Aunque no sea parte de la jerarquia de objetos GTK, <classname>GtkAccelGroup</classname> puede contruirse de la misma forma como la mayoria de las clases GTK, e.j. - <literal>$accelgroup = &amp;new GtkAccelGroup();</literal> - </simpara> + <informalexample> + <programlisting> +<![CDATA[ +$accelgroup = &new GtkAccelGroup(); +]]> + </programlisting> + </informalexample> + </para> <simpara> En la mayoria de los casos, la nueva contruida <classname>GtkAccelGroup</classname> Index: php-gtk-doc/es/reference/gtk/gtkadjustment.xml diff -u php-gtk-doc/es/reference/gtk/gtkadjustment.xml:1.3 php-gtk-doc/es/reference/gtk/gtkadjustment.xml:1.4 --- php-gtk-doc/es/reference/gtk/gtkadjustment.xml:1.3 Wed Jun 18 13:08:50 2003 +++ php-gtk-doc/es/reference/gtk/gtkadjustment.xml Sun Aug 3 13:46:11 2003 @@ -197,12 +197,12 @@ <signal id="gtk.gtkadjustment.signal.changed"> <signalname>changed</signalname> - <callback> + <funcsynopsis> <funcprototype> - <funcdef>void <function>callback</function></funcdef> + <funcdef>void <cbfunction>callback</cbfunction></funcdef> <paramdef><classname>GtkAdjustment</classname> button</paramdef> </funcprototype> - </callback> + </funcsynopsis> <shortdesc> Emitted when a property other than <parameter>value</parameter> changes. </shortdesc> @@ -227,12 +227,12 @@ <signal id="gtk.gtkadjustment.signal.value_changed"> <signalname>value_changed</signalname> - <callback> + <funcsynopsis> <funcprototype> - <funcdef>void <function>callback</function></funcdef> + <funcdef>void <cbfunction>callback</cbfunction></funcdef> <paramdef><classname>GtkAdjustment</classname> button</paramdef> </funcprototype> - </callback> + </funcsynopsis> <shortdesc> Emitted when </shortdesc> Index: php-gtk-doc/es/tutorials/hellow.xml diff -u php-gtk-doc/es/tutorials/hellow.xml:1.4 php-gtk-doc/es/tutorials/hellow.xml:1.5 --- php-gtk-doc/es/tutorials/hellow.xml:1.4 Wed Jun 18 13:08:50 2003 +++ php-gtk-doc/es/tutorials/hellow.xml Sun Aug 3 13:46:11 2003 @@ -42,27 +42,27 @@ function shutdown() { - print(&quot;Shutting down...\n&quot;); + print("Shutting down...\n"); gtk::main_quit(); } function hello() { global $window; - print &quot;Hello World!\n&quot;; - $window-&gt;destroy(); + print "Hello World!\n"; + $window->destroy(); } -$window = &amp;new GtkWindow(); -$window-&gt;connect('destroy', 'shutdown'); -$window-&gt;connect('delete-event', 'delete_event'); -$window-&gt;set_border_width(10); +$window = &new GtkWindow(); +$window->connect('destroy', 'shutdown'); +$window->connect('delete-event', 'delete_event'); +$window->set_border_width(10); -$button = &amp;new GtkButton('Hello World!'); -$button-&gt;connect('clicked', 'hello'); -$window-&gt;add($button); +$button = &new GtkButton('Hello World!'); +$button->connect('clicked', 'hello'); +$window->add($button); -$window-&gt;show_all(); +$window->show_all(); gtk::main(); @@ -143,7 +143,7 @@ function shutdown() { - print(&quot;Shutting down...\n&quot;); + print("Shutting down...\n"); gtk::main_quit(); } @@ -167,8 +167,8 @@ function hello() { global $window; - print &quot;Hello World!\n&quot;; - $window-&gt;destroy(); + print "Hello World!\n"; + $window->destroy(); } ?> @@ -198,10 +198,10 @@ <![CDATA[ <?php -$window = &amp;new GtkWindow(); -$window-&gt;connect('destroy', 'shutdown'); -$window-&gt;connect('delete-event', 'delete_event'); -$window-&gt;set_border_width(10); +$window = &new GtkWindow(); +$window->connect('destroy', 'shutdown'); +$window->connect('delete-event', 'delete_event'); +$window->set_border_width(10); ?> ]]> @@ -226,11 +226,11 @@ <![CDATA[ <?php -$button = &amp;new GtkButton('Hello World!'); -$button-&gt;connect('clicked', 'hello'); -$window-&gt;add($button); +$button = &new GtkButton('Hello World!'); +$button->connect('clicked', 'hello'); +$window->add($button); -$window-&gt;show_all(); +$window->show_all(); ?> ]]> Index: php-gtk-doc/es/userguide/chapters/signals.xml diff -u php-gtk-doc/es/userguide/chapters/signals.xml:1.4 php-gtk-doc/es/userguide/chapters/signals.xml:1.5 --- php-gtk-doc/es/userguide/chapters/signals.xml:1.4 Wed Jun 18 13:08:50 2003 +++ php-gtk-doc/es/userguide/chapters/signals.xml Sun Aug 3 13:46:11 2003 @@ -111,29 +111,29 @@ function shutdown() { - print(&quot;Shutting down...\n&quot;); + print("Shutting down...\n"); gtk::main_quit(); } function you_clicked($button) { - $window = &amp;new GtkWindow(); - $label = &amp;new GtkLabel(&quot;You clicked the button&quot;); - $window-&gt;add($label); - $window-&gt;connect(&quot;destroy&quot;,&quot;shutdown&quot;); - $window-&gt;show_all(); + $window = &new GtkWindow(); + $label = &new GtkLabel("You clicked the button"); + $window->add($label); + $window->connect("destroy","shutdown"); + $window->show_all(); return false; } -$window = &amp;new GtkWindow(); -$window-&gt;connect(&quot;destroy&quot;, &quot;shutdown&quot;); -$window-&gt;set_border_width(10); - -$button = &amp;new GtkButton(&quot;Click Me!!&quot;); -$button-&gt;connect(&quot;clicked&quot;, &quot;you_clicked&quot;); -$window-&gt;add($button); +$window = &new GtkWindow(); +$window->connect("destroy", "shutdown"); +$window->set_border_width(10); + +$button = &new GtkButton("Click Me!!"); +$button->connect("clicked", "you_clicked"); +$window->add($button); -$window-&gt;show_all(); +$window->show_all(); gtk::main(); @@ -175,24 +175,24 @@ function first($button) { - print &quot;First function has been called\n&quot;; + print "First function has been called\n"; } function second($button) { - print &quot;Second function has been called\n&quot;; + print "Second function has been called\n"; } -$window = &amp;new GtkWindow(); -$window-&gt;connect_object(&quot;destroy&quot;, array(&quot;gtk&quot;, -&quot;main_quit&quot;)); - -$button = &amp;new GtkButton(&quot;Click Me!!&quot;); -$button-&gt;connect(&quot;clicked&quot;,&quot;first&quot;); -$button-&gt;connect(&quot;clicked&quot;,&quot;second&quot;); -$window-&gt;add($button); +$window = &new GtkWindow(); +$window->connect_object("destroy", array("gtk", +"main_quit")); + +$button = &new GtkButton("Click Me!!"); +$button->connect("clicked","first"); +$button->connect("clicked","second"); +$window->add($button); -$window-&gt;show_all(); +$window->show_all(); gtk::main(); @@ -251,17 +251,17 @@ function button_clicked($button, $window) { - $window-&gt;destroy(); + $window->destroy(); gtk::main_quit(); } -$window = &amp;new GtkWindow(); +$window = &new GtkWindow(); -$button = &amp;new GtkButton(&quot;exit&quot;); -$button-&gt;connect(&quot;clicked&quot;,&quot;button_clicked&quot;, $window); +$button = &new GtkButton("exit"); +$button->connect("clicked","button_clicked", $window); -$window-&gt;add($button); -$window-&gt;show_all(); +$window->add($button); +$window->show_all(); gtk::main(); @@ -305,29 +305,29 @@ function button_clicked($button, $window) { - $window->set_title(&quot;titled&quot;); + $window->set_title("titled"); } -$window1 = &amp;new GtkWindow(); -$window1-&gt;connect_object(&quot;destroy&quot;, array(&quot;gtk&quot;, -&quot;main_quit&quot;)); -$window2 = &amp;new GtkWindow(); -$window2-&gt;connect_object(&quot;destroy&quot;, array(&quot;gtk&quot;, -&quot;main_quit&quot;)); +$window1 = &new GtkWindow(); +$window1->connect_object("destroy", array("gtk", +"main_quit")); +$window2 = &new GtkWindow(); +$window2->connect_object("destroy", array("gtk", +"main_quit")); -$button1 = &amp;new GtkButton(&quot;click me&quot;); -$button2 = &amp;new GtkButton(&quot;or me&quot;); +$button1 = &new GtkButton("click me"); +$button2 = &new GtkButton("or me"); -$button1-&gt;connect(&quot;clicked&quot;, &quot;button_clicked&quot;, +$button1->connect("clicked", "button_clicked", $window1); -$button2-&gt;connect(&quot;clicked&quot;, &quot;button_clicked&quot;, +$button2->connect("clicked", "button_clicked", $window2); -$window1-&gt;add($button1); -$window2-&gt;add($button2); +$window1->add($button1); +$window2->add($button2); -$window1-&gt;show_all(); -$window2-&gt;show_all(); +$window1->show_all(); +$window2->show_all(); gtk::main(); @@ -357,10 +357,10 @@ <![CDATA[ <?php -$window = &amp;new GtkWindow(); -$window-&gt;connect_object(&quot;destroy&quot;, array(&quot;gtk&quot;, -&quot;main_quit&quot;)); -$window-&gt;show(); +$window = &new GtkWindow(); +$window->connect_object("destroy", array("gtk", +"main_quit")); +$window->show(); gtk::main(); @@ -394,12 +394,12 @@ function destroy_window($window) { - $window-&gt;destroy(); + $window->destroy(); gtk::main_quit(); } -$exit_button-&gt;connect_object(&quot;clicked&quot;, -&quot;destroy_window&quot;, $window); +$exit_button->connect_object("clicked", +"destroy_window", $window); ?> @@ -409,7 +409,7 @@ </para> <para> El método connect_after* permite a las funciones ser - &quot;ejecutadas luego&quot; de la señal por defecto para esa señal. + "ejecutadas luego" de la señal por defecto para esa señal. Esto puede ser muy bueno en algunas situaciones; por ejemplo, donde uno quiere destruir solamente una de tantas ventanas en una cirscunstancia dada. De todas formas, los métodos connect_after* solo @@ -429,20 +429,20 @@ function quit_routine($window) { - print(&quot;Shutting down...\n&quot;); + print("Shutting down...\n"); gtk::main_quit(); } -$window1 = &amp;new GtkWindow(); -$window1->set_title(&quot;Quit the main loop&quot;); -$window1-&gt;connect(&quot;destroy&quot;, &quot;quit_routine&quot;); - -$window2 = &amp;new GtkWindow(); -$window2->set_title(&quot;Destroy this window&quot;); -$window2-&gt;connect_after(&quot;destroy&quot;, &quot;quit_routine&quot;); +$window1 = &new GtkWindow(); +$window1->set_title("Quit the main loop"); +$window1->connect("destroy", "quit_routine"); + +$window2 = &new GtkWindow(); +$window2->set_title("Destroy this window"); +$window2->connect_after("destroy", "quit_routine"); -$window1-&gt;show(); -$window2-&gt;show(); +$window1->show(); +$window2->show(); gtk::main(); @@ -524,55 +524,55 @@ <![CDATA[ <?php -dl(&quot;php_gtk.&quot; . (strstr(PHP_OS, &quot;WIN&quot;) ? &quot;dll&quot; : -&quot;so&quot;)) || -die(&quot;Can't load php_gtk module!\n&quot;); +dl("php_gtk." . (strstr(PHP_OS, "WIN") ? "dll" : +"so")) || +die("Can't load php_gtk module!\n"); function show_event_type($button, $event, $text) { - $event_type = $event-&gt;type; + $event_type = $event->type; $insert = $text->get_length(); - $text-&gt;freeze(); + $text->freeze(); switch($event_type) { case 2: - $text-&gt;insert_text(&quot;GDK_EXPOSE\n&quot;, $insert); + $text->insert_text("GDK_EXPOSE\n", $insert); break; case 3: - $text-&gt;insert_text(&quot;GDK_MOTION_NOTIFY\n&quot;, $insert); + $text->insert_text("GDK_MOTION_NOTIFY\n", $insert); break; case 4: - $text-&gt;insert_text(&quot;GDK_BUTTON_PRESS\n&quot;, $insert); + $text->insert_text("GDK_BUTTON_PRESS\n", $insert); break; case 5: - $text-&gt;insert_text(&quot;GDK_2BUTTON_PRESS\n&quot;, $insert); - $button-&gt;hide(); + $text->insert_text("GDK_2BUTTON_PRESS\n", $insert); + $button->hide(); break; case 7: - $text-&gt;insert_text(&quot;GDK_BUTTON_RELEASE\n&quot;, $insert); + $text->insert_text("GDK_BUTTON_RELEASE\n", $insert); break; case 8: - $text-&gt;insert_text(&quot;GDK_KEY_PRESS\n&quot;, $insert); + $text->insert_text("GDK_KEY_PRESS\n", $insert); break; case 9: - $text-&gt;insert_text(&quot;GDK_KEY_RELEASE\n&quot;, $insert); + $text->insert_text("GDK_KEY_RELEASE\n", $insert); break; case 10: - $text-&gt;insert_text(&quot;GDK_ENTER_NOTIFY\n&quot;, $insert); + $text->insert_text("GDK_ENTER_NOTIFY\n", $insert); break; case 11: - $text-&gt;insert_text(&quot;GDK_LEAVE_NOTIFY\n&quot;, $insert); + $text->insert_text("GDK_LEAVE_NOTIFY\n", $insert); break; case 12: - $text-&gt;insert_text(&quot;GDK_FOCUS_CHANGE\n&quot;, $insert); + $text->insert_text("GDK_FOCUS_CHANGE\n", $insert); break; case 14: - $text-&gt;insert_text(&quot;GDK_MAP\n&quot;, $insert); + $text->insert_text("GDK_MAP\n", $insert); break; case 15: - $text-&gt;insert_text(&quot;GDK_UNMAP\n&quot;, $insert); - $button-&gt;destroy(); + $text->insert_text("GDK_UNMAP\n", $insert); + $button->destroy(); $text->insert_text( -&quot;\n* GDK EVENTS AND GTK SIGNALS - background stream vs foreground +"\n* GDK EVENTS AND GTK SIGNALS - background stream vs foreground messaging * \n * Most GdkEventTypes have counterpart GTK signals, known as 'event' @@ -589,34 +589,34 @@ \$button->connect('pressed', 'whatever'); has no relationship to the GDK_BUTTON_PRESS event it generates, which refers to mouse-button activity and not to the GtkButton 'pressed' signal. * -\n&quot;, 0); +\n", 0); break; } - $text-&gt;thaw(); + $text->thaw(); return false; } -$window = &amp;new GtkWindow(); -$window-&gt;set_position(GTK_WIN_POS_CENTER); -$window-&gt;set_default_size((gdk::screen_width()/1.5), +$window = &new GtkWindow(); +$window->set_position(GTK_WIN_POS_CENTER); +$window->set_default_size((gdk::screen_width()/1.5), (gdk::screen_height()-20)); -$window-&gt;connect_object(&quot;destroy&quot;, array(&quot;gtk&quot;, -&quot;main_quit&quot;)); -$window-&gt;realize(); - -$box = &amp;new GtkVBox(false, 5); -$window-&gt;add($box); -$scrlwin = &amp;new GtkScrolledWindow(); -$box-&gt;pack_start($scrlwin, true, true, 0); -$text = &amp;new GtkText(); -$scrlwin-&gt;add($text); - -$button = &amp;new GtkButton(&quot;Double-click here for information..&quot;); -$button-&gt;add_events(GDK_ALL_EVENTS_MASK); -$button-&gt;connect(&quot;event&quot;, &quot;show_event_type&quot;, $text); -$box-&gt;pack_end($button, false, false, 5); +$window->connect_object("destroy", array("gtk", +"main_quit")); +$window->realize(); + +$box = &new GtkVBox(false, 5); +$window->add($box); +$scrlwin = &new GtkScrolledWindow(); +$box->pack_start($scrlwin, true, true, 0); +$text = &new GtkText(); +$scrlwin->add($text); + +$button = &new GtkButton("Double-click here for information.."); +$button->add_events(GDK_ALL_EVENTS_MASK); +$button->connect("event", "show_event_type", $text); +$box->pack_end($button, false, false, 5); -$window-&gt;show_all(); +$window->show_all(); gtk::main();
« previous php.gtk.doc (#819) next »