cvs: peardoc /en/package/gtk2/filedrop example.xml
| From: | Christian Weiske | Date: | Tue, 28 Mar 2006 07:14:58 +0000 |
| Subject: | cvs: peardoc /en/package/gtk2/filedrop example.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-7715@lists.php.net to get a copy of this message | ||
cweiske Tue Mar 28 07:14:58 2006 UTC
Modified files:
/peardoc/en/package/gtk2/filedrop example.xml
Log:
Fixed examples to use Gtk2_Filedrop not Gtk_Filedrop
http://cvs.php.net/viewcvs.cgi/peardoc/en/package/gtk2/filedrop/example.xml?r1=1.1&r2=1.2&diff_format=u
Index: peardoc/en/package/gtk2/filedrop/example.xml
diff -u peardoc/en/package/gtk2/filedrop/example.xml:1.1
peardoc/en/package/gtk2/filedrop/example.xml:1.2
--- peardoc/en/package/gtk2/filedrop/example.xml:1.1 Thu Feb 16 12:00:11 2006
+++ peardoc/en/package/gtk2/filedrop/example.xml Tue Mar 28 07:14:58 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="package.gtk2.filedrop.example">
<refnamediv>
@@ -19,7 +19,7 @@
'text/plain',
'.dat'
);
-Gtk_FileDrop::attach($widget, $accepted_types);
+Gtk2_FileDrop::attach($widget, $accepted_types);
?>]]></programlisting>
<para>
Here we set up the array of accepted file types:
@@ -63,7 +63,7 @@
'text/plain',
'.dat'
);
-Gtk_FileDrop::attach($widget, $accepted_types, 'filesDropped', false);
+Gtk2_FileDrop::attach($widget, $accepted_types, 'filesDropped', false);
?>]]></programlisting>
<para>
In this example we use a callback function to print out all
@@ -77,7 +77,7 @@
<example>
<title>Using a callback</title>
<programlisting role="php"><![CDATA[<?php
-Gtk_FileDrop::attach($widget, $accepted_types, array( &$this, 'filesDropped'));
+Gtk2_FileDrop::attach($widget, $accepted_types, array( &$this, 'filesDropped'));
?>]]></programlisting>
</example>
</para>
@@ -96,7 +96,7 @@
$entry = new GtkEntry();
$window->add($entry);
$entry->set_text('drop text files on me');
-Gtk_FileDrop::attach($entry, array('text/plain'));
+Gtk2_FileDrop::attach($entry, array('text/plain'));
$window->show_all();
Gtk::main();