cvs: php-gtk-doc /fr language-defs.ent /fr/tutorials hellow.xml /fr/userguide/chapters signals.xml
| From: | Steph | Date: | Sun, 03 Aug 2003 17:35:23 +0000 |
| Subject: | cvs: php-gtk-doc /fr language-defs.ent /fr/tutorials hellow.xml /fr/userguide/chapters signals.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-818@lists.php.net to get a copy of this message | ||
sfox Sun Aug 3 13:35:23 2003 EDT
Modified files:
/php-gtk-doc/fr language-defs.ent
/php-gtk-doc/fr/tutorials hellow.xml
/php-gtk-doc/fr/userguide/chapters signals.xml
Log:
CDATA changes for fr
Index: php-gtk-doc/fr/language-defs.ent diff -u php-gtk-doc/fr/language-defs.ent:1.8 php-gtk-doc/fr/language-defs.ent:1.9 --- php-gtk-doc/fr/language-defs.ent:1.8 Wed Jun 18 13:06:42 2003 +++ php-gtk-doc/fr/language-defs.ent Sun Aug 3 13:35:23 2003 @@ -22,9 +22,13 @@ <!ENTITY GdkClassesDesc "<para>Les classes fournies par la librairie GDK</para>"> <!ENTITY GtkEnums "Les Enums GTK"> -<!ENTITY GtkEnumsDesc "Tout ce que vous avez toujours voulu savoir sur les Enums GTK se trouve ici !"> +<!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 "Les Enums GDK"> -<!ENTITY GdkEnumsDesc "Tout ce que vous avez toujours voulu savoir sur les Enums GDK se trouve ici !"> +<!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 "Les Classes Glade"> <!ENTITY LibGladeClassesDesc "<para>Les classes fournies par la librairie Glade</para>"> Index: php-gtk-doc/fr/tutorials/hellow.xml diff -u php-gtk-doc/fr/tutorials/hellow.xml:1.4 php-gtk-doc/fr/tutorials/hellow.xml:1.5 --- php-gtk-doc/fr/tutorials/hellow.xml:1.4 Wed Jun 18 13:06:42 2003 +++ php-gtk-doc/fr/tutorials/hellow.xml Sun Aug 3 13:35:23 2003 @@ -43,27 +43,27 @@ function shutdown() { - print("Shutting down...\n"); + print("Shutting down...\n"); gtk::main_quit(); } function hello() { global $window; - print "Hello World!\n"; - $window->destroy(); + print "Hello World!\n"; + $window->destroy(); } -$window = &new GtkWindow(); -$window->connect('destroy', 'shutdown'); -$window->connect('delete-event', 'delete_event'); -$window->set_border_width(10); +$window = &new GtkWindow(); +$window->connect('destroy', 'shutdown'); +$window->connect('delete-event', 'delete_event'); +$window->set_border_width(10); -$button = &new GtkButton('Hello World!'); -$button->connect('clicked', 'hello'); -$window->add($button); +$button = &new GtkButton('Hello World!'); +$button->connect('clicked', 'hello'); +$window->add($button); -$window->show_all(); +$window->show_all(); gtk::main(); @@ -142,7 +142,7 @@ function shutdown() { - print("Shutting down...\n"); + print("Shutting down...\n"); gtk::main_quit(); } @@ -165,8 +165,8 @@ function hello() { global $window; - print "Hello World!\n"; - $window->destroy(); + print "Hello World!\n"; + $window->destroy(); } ?> @@ -194,10 +194,10 @@ <![CDATA[ <?php -$window = &new GtkWindow(); -$window->connect('destroy', 'shutdown'); -$window->connect('delete-event', 'delete_event'); -$window->set_border_width(10); +$window = &new GtkWindow(); +$window->connect('destroy', 'shutdown'); +$window->connect('delete-event', 'delete_event'); +$window->set_border_width(10); ?> ]]> @@ -221,11 +221,11 @@ <![CDATA[ <?php -$button = &new GtkButton('Hello World!'); -$button->connect('clicked', 'hello'); -$window->add($button); +$button = &new GtkButton('Hello World!'); +$button->connect('clicked', 'hello'); +$window->add($button); -$window->show_all(); +$window->show_all(); ?> ]]> Index: php-gtk-doc/fr/userguide/chapters/signals.xml diff -u php-gtk-doc/fr/userguide/chapters/signals.xml:1.9 php-gtk-doc/fr/userguide/chapters/signals.xml:1.10 --- php-gtk-doc/fr/userguide/chapters/signals.xml:1.9 Wed Jun 18 13:06:42 2003 +++ php-gtk-doc/fr/userguide/chapters/signals.xml Sun Aug 3 13:35:23 2003 @@ -111,29 +111,29 @@ function shutdown() { - print("Shutting down...\n"); + print("Shutting down...\n"); gtk::main_quit(); } function you_clicked($button) { - $window = &new GtkWindow(); - $label = &new GtkLabel("Vouz avez appuyé sur le bouton"); - $window->add($label); - $window->connect("destroy","shutdown"); - $window->show_all(); + $window = &new GtkWindow(); + $label = &new GtkLabel("Vouz avez appuyé sur le bouton"); + $window->add($label); + $window->connect("destroy","shutdown"); + $window->show_all(); return false; } -$window = &new GtkWindow(); -$window->connect("destroy", "shutdown"); -$window->set_border_width(10); - -$button = &new GtkButton("Appuyez ici!!"); -$button->connect("clicked", "you_clicked"); -$window->add($button); +$window = &new GtkWindow(); +$window->connect("destroy", "shutdown"); +$window->set_border_width(10); + +$button = &new GtkButton("Appuyez ici!!"); +$button->connect("clicked", "you_clicked"); +$window->add($button); -$window->show_all(); +$window->show_all(); gtk::main(); @@ -174,24 +174,24 @@ function first($button) { - print "Premier appel !\n"; + print "Premier appel !\n"; } function second($button) { - print "Second appel !\n"; + print "Second appel !\n"; } -$window = &new GtkWindow(); -$window->connect_object("destroy", array("gtk", -"main_quit")); - -$button = &new GtkButton("Clicquez Ici!!"); -$button->connect("clicked","first"); -$button->connect("clicked","second"); -$window->add($button); +$window = &new GtkWindow(); +$window->connect_object("destroy", array("gtk", +"main_quit")); + +$button = &new GtkButton("Clicquez Ici!!"); +$button->connect("clicked","first"); +$button->connect("clicked","second"); +$window->add($button); -$window->show_all(); +$window->show_all(); gtk::main(); @@ -249,17 +249,17 @@ function button_clicked($button, $window) { - $window->destroy(); + $window->destroy(); gtk::main_quit(); } -$window = &new GtkWindow(); +$window = &new GtkWindow(); -$button = &new GtkButton("exit"); -$button->connect("clicked","button_clicked", $window); +$button = &new GtkButton("exit"); +$button->connect("clicked","button_clicked", $window); -$window->add($button); -$window->show_all(); +$window->add($button); +$window->show_all(); gtk::main(); @@ -302,29 +302,29 @@ function button_clicked($button, $window) { - $window->set_title("titled"); + $window->set_title("titled"); } -$window1 = &new GtkWindow(); -$window1->connect_object("destroy", array("gtk", -"main_quit")); -$window2 = &new GtkWindow(); -$window2->connect_object("destroy", array("gtk", -"main_quit")); +$window1 = &new GtkWindow(); +$window1->connect_object("destroy", array("gtk", +"main_quit")); +$window2 = &new GtkWindow(); +$window2->connect_object("destroy", array("gtk", +"main_quit")); -$button1 = &new GtkButton("click me"); -$button2 = &new GtkButton("or me"); +$button1 = &new GtkButton("click me"); +$button2 = &new GtkButton("or me"); -$button1->connect("clicked", "button_clicked", +$button1->connect("clicked", "button_clicked", $window1); -$button2->connect("clicked", "button_clicked", +$button2->connect("clicked", "button_clicked", $window2); -$window1->add($button1); -$window2->add($button2); +$window1->add($button1); +$window2->add($button2); -$window1->show_all(); -$window2->show_all(); +$window1->show_all(); +$window2->show_all(); gtk::main(); @@ -354,10 +354,10 @@ <![CDATA[ <?php -$window = &new GtkWindow(); -$window->connect_object("destroy", array("gtk", -"main_quit")); -$window->show(); +$window = &new GtkWindow(); +$window->connect_object("destroy", array("gtk", +"main_quit")); +$window->show(); gtk::main(); @@ -391,12 +391,12 @@ function destroy_window($window) { - $window->destroy(); + $window->destroy(); gtk::main_quit(); } -$exit_button->connect_object("clicked", -"destroy_window", $window); +$exit_button->connect_object("clicked", +"destroy_window", $window); ?> ]]> @@ -404,7 +404,7 @@ </example> </para> <para> - La méthode connect_after* permet d'éxécuter le rappel "aprés" + La méthode connect_after* permet d'éxécuter le rappel "aprés" le signal par défaut. Cela peut être utile dans certaines situations. Par exemple, si vous voulez détruire une seule fenêtre dans une certaine circonstance. Cependant, les methodes connect_after* ne marcheront que si @@ -423,20 +423,20 @@ function quit_routine($window) { - print("Shutting down...\n"); + print("Shutting down...\n"); gtk::main_quit(); } -$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 = &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->show(); -$window2->show(); +$window1->show(); +$window2->show(); gtk::main(); @@ -512,54 +512,54 @@ <![CDATA[ <?php -dl("php_gtk." . (strstr(PHP_OS, "WIN") ? "dll" : -"so")) || die("Can't load php_gtk module!\n"); +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->type; + $event_type = $event->type; $insert = $text->get_length(); - $text->freeze(); + $text->freeze(); switch($event_type) { case 2: - $text->insert_text("GDK_EXPOSE\n", $insert); + $text->insert_text("GDK_EXPOSE\n", $insert); break; case 3: - $text->insert_text("GDK_MOTION_NOTIFY\n", $insert); + $text->insert_text("GDK_MOTION_NOTIFY\n", $insert); break; case 4: - $text->insert_text("GDK_BUTTON_PRESS\n", $insert); + $text->insert_text("GDK_BUTTON_PRESS\n", $insert); break; case 5: - $text->insert_text("GDK_2BUTTON_PRESS\n", $insert); - $button->hide(); + $text->insert_text("GDK_2BUTTON_PRESS\n", $insert); + $button->hide(); break; case 7: - $text->insert_text("GDK_BUTTON_RELEASE\n", $insert); + $text->insert_text("GDK_BUTTON_RELEASE\n", $insert); break; case 8: - $text->insert_text("GDK_KEY_PRESS\n", $insert); + $text->insert_text("GDK_KEY_PRESS\n", $insert); break; case 9: - $text->insert_text("GDK_KEY_RELEASE\n", $insert); + $text->insert_text("GDK_KEY_RELEASE\n", $insert); break; case 10: - $text->insert_text("GDK_ENTER_NOTIFY\n", $insert); + $text->insert_text("GDK_ENTER_NOTIFY\n", $insert); break; case 11: - $text->insert_text("GDK_LEAVE_NOTIFY\n", $insert); + $text->insert_text("GDK_LEAVE_NOTIFY\n", $insert); break; case 12: - $text->insert_text("GDK_FOCUS_CHANGE\n", $insert); + $text->insert_text("GDK_FOCUS_CHANGE\n", $insert); break; case 14: - $text->insert_text("GDK_MAP\n", $insert); + $text->insert_text("GDK_MAP\n", $insert); break; case 15: - $text->insert_text("GDK_UNMAP\n", $insert); - $button->destroy(); + $text->insert_text("GDK_UNMAP\n", $insert); + $button->destroy(); $text->insert_text( -"\n* EVENEMENTS GDK ET SIGNAUX SIGNALS - flux vs message * +"\n* EVENEMENTS GDK ET SIGNAUX SIGNALS - flux vs message * \n * Le plupart des GdkEventTypes ont un équivalent dans les signaux GTK, les événements signaux, implémentés dans l'objet GtkWidget. Les types que vous @@ -577,35 +577,35 @@ n'a pas de relation avec l'événement GDK_BUTTON_PRESS, qui fait référence à l'action sur le bouton de la souris et non pas au signal 'pressed' sur l'objet GtkButton. * -\n", 0); +\n", 0); break; } - $text->thaw(); + $text->thaw(); return false; } -$window = &new GtkWindow(); -$window->set_position(GTK_WIN_POS_CENTER); -$window->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->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 Cliquez ici pour plus -d'informations.."); -$button->add_events(GDK_ALL_EVENTS_MASK); -$button->connect("event", "show_event_type", $text); -$box->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 Cliquez ici pour plus +d'informations.."); +$button->add_events(GDK_ALL_EVENTS_MASK); +$button->connect("event", "show_event_type", $text); +$box->pack_end($button, false, false, 5); -$window->show_all(); +$window->show_all(); gtk::main();
Index: php-gtk-doc/fr/language-defs.ent diff -u php-gtk-doc/fr/language-defs.ent:1.8 php-gtk-doc/fr/language-defs.ent:1.9 --- php-gtk-doc/fr/language-defs.ent:1.8 Wed Jun 18 13:06:42 2003 +++ php-gtk-doc/fr/language-defs.ent Sun Aug 3 13:35:23 2003 @@ -22,9 +22,13 @@ <!ENTITY GdkClassesDesc "<para>Les classes fournies par la librairie GDK</para>"> <!ENTITY GtkEnums "Les Enums GTK"> -<!ENTITY GtkEnumsDesc "Tout ce que vous avez toujours voulu savoir sur les Enums GTK se trouve ici !"> +<!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 "Les Enums GDK"> -<!ENTITY GdkEnumsDesc "Tout ce que vous avez toujours voulu savoir sur les Enums GDK se trouve ici !"> +<!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 "Les Classes Glade"> <!ENTITY LibGladeClassesDesc "<para>Les classes fournies par la librairie Glade</para>"> Index: php-gtk-doc/fr/tutorials/hellow.xml diff -u php-gtk-doc/fr/tutorials/hellow.xml:1.4 php-gtk-doc/fr/tutorials/hellow.xml:1.5 --- php-gtk-doc/fr/tutorials/hellow.xml:1.4 Wed Jun 18 13:06:42 2003 +++ php-gtk-doc/fr/tutorials/hellow.xml Sun Aug 3 13:35:23 2003 @@ -43,27 +43,27 @@ function shutdown() { - print("Shutting down...\n"); + print("Shutting down...\n"); gtk::main_quit(); } function hello() { global $window; - print "Hello World!\n"; - $window->destroy(); + print "Hello World!\n"; + $window->destroy(); } -$window = &new GtkWindow(); -$window->connect('destroy', 'shutdown'); -$window->connect('delete-event', 'delete_event'); -$window->set_border_width(10); +$window = &new GtkWindow(); +$window->connect('destroy', 'shutdown'); +$window->connect('delete-event', 'delete_event'); +$window->set_border_width(10); -$button = &new GtkButton('Hello World!'); -$button->connect('clicked', 'hello'); -$window->add($button); +$button = &new GtkButton('Hello World!'); +$button->connect('clicked', 'hello'); +$window->add($button); -$window->show_all(); +$window->show_all(); gtk::main(); @@ -142,7 +142,7 @@ function shutdown() { - print("Shutting down...\n"); + print("Shutting down...\n"); gtk::main_quit(); } @@ -165,8 +165,8 @@ function hello() { global $window; - print "Hello World!\n"; - $window->destroy(); + print "Hello World!\n"; + $window->destroy(); } ?> @@ -194,10 +194,10 @@ <![CDATA[ <?php -$window = &new GtkWindow(); -$window->connect('destroy', 'shutdown'); -$window->connect('delete-event', 'delete_event'); -$window->set_border_width(10); +$window = &new GtkWindow(); +$window->connect('destroy', 'shutdown'); +$window->connect('delete-event', 'delete_event'); +$window->set_border_width(10); ?> ]]> @@ -221,11 +221,11 @@ <![CDATA[ <?php -$button = &new GtkButton('Hello World!'); -$button->connect('clicked', 'hello'); -$window->add($button); +$button = &new GtkButton('Hello World!'); +$button->connect('clicked', 'hello'); +$window->add($button); -$window->show_all(); +$window->show_all(); ?> ]]> Index: php-gtk-doc/fr/userguide/chapters/signals.xml diff -u php-gtk-doc/fr/userguide/chapters/signals.xml:1.9 php-gtk-doc/fr/userguide/chapters/signals.xml:1.10 --- php-gtk-doc/fr/userguide/chapters/signals.xml:1.9 Wed Jun 18 13:06:42 2003 +++ php-gtk-doc/fr/userguide/chapters/signals.xml Sun Aug 3 13:35:23 2003 @@ -111,29 +111,29 @@ function shutdown() { - print("Shutting down...\n"); + print("Shutting down...\n"); gtk::main_quit(); } function you_clicked($button) { - $window = &new GtkWindow(); - $label = &new GtkLabel("Vouz avez appuyé sur le bouton"); - $window->add($label); - $window->connect("destroy","shutdown"); - $window->show_all(); + $window = &new GtkWindow(); + $label = &new GtkLabel("Vouz avez appuyé sur le bouton"); + $window->add($label); + $window->connect("destroy","shutdown"); + $window->show_all(); return false; } -$window = &new GtkWindow(); -$window->connect("destroy", "shutdown"); -$window->set_border_width(10); - -$button = &new GtkButton("Appuyez ici!!"); -$button->connect("clicked", "you_clicked"); -$window->add($button); +$window = &new GtkWindow(); +$window->connect("destroy", "shutdown"); +$window->set_border_width(10); + +$button = &new GtkButton("Appuyez ici!!"); +$button->connect("clicked", "you_clicked"); +$window->add($button); -$window->show_all(); +$window->show_all(); gtk::main(); @@ -174,24 +174,24 @@ function first($button) { - print "Premier appel !\n"; + print "Premier appel !\n"; } function second($button) { - print "Second appel !\n"; + print "Second appel !\n"; } -$window = &new GtkWindow(); -$window->connect_object("destroy", array("gtk", -"main_quit")); - -$button = &new GtkButton("Clicquez Ici!!"); -$button->connect("clicked","first"); -$button->connect("clicked","second"); -$window->add($button); +$window = &new GtkWindow(); +$window->connect_object("destroy", array("gtk", +"main_quit")); + +$button = &new GtkButton("Clicquez Ici!!"); +$button->connect("clicked","first"); +$button->connect("clicked","second"); +$window->add($button); -$window->show_all(); +$window->show_all(); gtk::main(); @@ -249,17 +249,17 @@ function button_clicked($button, $window) { - $window->destroy(); + $window->destroy(); gtk::main_quit(); } -$window = &new GtkWindow(); +$window = &new GtkWindow(); -$button = &new GtkButton("exit"); -$button->connect("clicked","button_clicked", $window); +$button = &new GtkButton("exit"); +$button->connect("clicked","button_clicked", $window); -$window->add($button); -$window->show_all(); +$window->add($button); +$window->show_all(); gtk::main(); @@ -302,29 +302,29 @@ function button_clicked($button, $window) { - $window->set_title("titled"); + $window->set_title("titled"); } -$window1 = &new GtkWindow(); -$window1->connect_object("destroy", array("gtk", -"main_quit")); -$window2 = &new GtkWindow(); -$window2->connect_object("destroy", array("gtk", -"main_quit")); +$window1 = &new GtkWindow(); +$window1->connect_object("destroy", array("gtk", +"main_quit")); +$window2 = &new GtkWindow(); +$window2->connect_object("destroy", array("gtk", +"main_quit")); -$button1 = &new GtkButton("click me"); -$button2 = &new GtkButton("or me"); +$button1 = &new GtkButton("click me"); +$button2 = &new GtkButton("or me"); -$button1->connect("clicked", "button_clicked", +$button1->connect("clicked", "button_clicked", $window1); -$button2->connect("clicked", "button_clicked", +$button2->connect("clicked", "button_clicked", $window2); -$window1->add($button1); -$window2->add($button2); +$window1->add($button1); +$window2->add($button2); -$window1->show_all(); -$window2->show_all(); +$window1->show_all(); +$window2->show_all(); gtk::main(); @@ -354,10 +354,10 @@ <![CDATA[ <?php -$window = &new GtkWindow(); -$window->connect_object("destroy", array("gtk", -"main_quit")); -$window->show(); +$window = &new GtkWindow(); +$window->connect_object("destroy", array("gtk", +"main_quit")); +$window->show(); gtk::main(); @@ -391,12 +391,12 @@ function destroy_window($window) { - $window->destroy(); + $window->destroy(); gtk::main_quit(); } -$exit_button->connect_object("clicked", -"destroy_window", $window); +$exit_button->connect_object("clicked", +"destroy_window", $window); ?> ]]> @@ -404,7 +404,7 @@ </example> </para> <para> - La méthode connect_after* permet d'éxécuter le rappel "aprés" + La méthode connect_after* permet d'éxécuter le rappel "aprés" le signal par défaut. Cela peut être utile dans certaines situations. Par exemple, si vous voulez détruire une seule fenêtre dans une certaine circonstance. Cependant, les methodes connect_after* ne marcheront que si @@ -423,20 +423,20 @@ function quit_routine($window) { - print("Shutting down...\n"); + print("Shutting down...\n"); gtk::main_quit(); } -$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 = &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->show(); -$window2->show(); +$window1->show(); +$window2->show(); gtk::main(); @@ -512,54 +512,54 @@ <![CDATA[ <?php -dl("php_gtk." . (strstr(PHP_OS, "WIN") ? "dll" : -"so")) || die("Can't load php_gtk module!\n"); +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->type; + $event_type = $event->type; $insert = $text->get_length(); - $text->freeze(); + $text->freeze(); switch($event_type) { case 2: - $text->insert_text("GDK_EXPOSE\n", $insert); + $text->insert_text("GDK_EXPOSE\n", $insert); break; case 3: - $text->insert_text("GDK_MOTION_NOTIFY\n", $insert); + $text->insert_text("GDK_MOTION_NOTIFY\n", $insert); break; case 4: - $text->insert_text("GDK_BUTTON_PRESS\n", $insert); + $text->insert_text("GDK_BUTTON_PRESS\n", $insert); break; case 5: - $text->insert_text("GDK_2BUTTON_PRESS\n", $insert); - $button->hide(); + $text->insert_text("GDK_2BUTTON_PRESS\n", $insert); + $button->hide(); break; case 7: - $text->insert_text("GDK_BUTTON_RELEASE\n", $insert); + $text->insert_text("GDK_BUTTON_RELEASE\n", $insert); break; case 8: - $text->insert_text("GDK_KEY_PRESS\n", $insert); + $text->insert_text("GDK_KEY_PRESS\n", $insert); break; case 9: - $text->insert_text("GDK_KEY_RELEASE\n", $insert); + $text->insert_text("GDK_KEY_RELEASE\n", $insert); break; case 10: - $text->insert_text("GDK_ENTER_NOTIFY\n", $insert); + $text->insert_text("GDK_ENTER_NOTIFY\n", $insert); break; case 11: - $text->insert_text("GDK_LEAVE_NOTIFY\n", $insert); + $text->insert_text("GDK_LEAVE_NOTIFY\n", $insert); break; case 12: - $text->insert_text("GDK_FOCUS_CHANGE\n", $insert); + $text->insert_text("GDK_FOCUS_CHANGE\n", $insert); break; case 14: - $text->insert_text("GDK_MAP\n", $insert); + $text->insert_text("GDK_MAP\n", $insert); break; case 15: - $text->insert_text("GDK_UNMAP\n", $insert); - $button->destroy(); + $text->insert_text("GDK_UNMAP\n", $insert); + $button->destroy(); $text->insert_text( -"\n* EVENEMENTS GDK ET SIGNAUX SIGNALS - flux vs message * +"\n* EVENEMENTS GDK ET SIGNAUX SIGNALS - flux vs message * \n * Le plupart des GdkEventTypes ont un équivalent dans les signaux GTK, les événements signaux, implémentés dans l'objet GtkWidget. Les types que vous @@ -577,35 +577,35 @@ n'a pas de relation avec l'événement GDK_BUTTON_PRESS, qui fait référence à l'action sur le bouton de la souris et non pas au signal 'pressed' sur l'objet GtkButton. * -\n", 0); +\n", 0); break; } - $text->thaw(); + $text->thaw(); return false; } -$window = &new GtkWindow(); -$window->set_position(GTK_WIN_POS_CENTER); -$window->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->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 Cliquez ici pour plus -d'informations.."); -$button->add_events(GDK_ALL_EVENTS_MASK); -$button->connect("event", "show_event_type", $text); -$box->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 Cliquez ici pour plus +d'informations.."); +$button->add_events(GDK_ALL_EVENTS_MASK); +$button->connect("event", "show_event_type", $text); +$box->pack_end($button, false, false, 5); -$window->show_all(); +$window->show_all(); gtk::main();