View previous topic :: View next topic |
Author |
Message |
heromyth
Joined: 26 Nov 2006 Posts: 46
|
Posted: Mon Mar 03, 2008 9:05 pm Post subject: A little patch for better document in FileChooser.d |
|
|
It seems DMD requires the brackets must be pair. Otherwise, the generated document is with bad format. Is it a bug in DMD?
Here is the patch for FileChooser.d:
Code: | Index: src/gtk/FileChooser.d
===================================================================
--- src/gtk/FileChooser.d (revision 452)
+++ src/gtk/FileChooser.d (working copy)
@@ -430,7 +430,7 @@
* g_signal_connect (chooser, "confirm-overwrite",
* G_CALLBACK (confirm_overwrite_callback), NULL);
* if (gtk_dialog_run (chooser) == GTK_RESPONSE_ACCEPT)
- * save_to_file (gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (chooser));
+ * save_to_file (gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (chooser)));
* gtk_widget_destroy (chooser);
*
* GtkFileChooserConfirmation value that indicates which
@@ -934,7 +934,7 @@
* (e.g. "/home/username/Documents"), which is not the same
* as the currently-selected folder if the chooser is in
* GTK_FILE_CHOOSER_SELECT_FOLDER mode
- * (e.g. "/home/username/Documents/selected-folder/". To get the
+ * (e.g. "/home/username/Documents/selected-folder/"). To get the
* currently-selected folder in that mode, use gtk_file_chooser_get_uri() as the
* usual way to get the selection.
* Since 2.4
@@ -1057,7 +1057,7 @@
* (e.g. "file:///home/username/Documents"), which is not the same
* as the currently-selected folder if the chooser is in
* GTK_FILE_CHOOSER_SELECT_FOLDER mode
- * (e.g. "file:///home/username/Documents/selected-folder/". To get the
+ * (e.g. "file:///home/username/Documents/selected-folder/"). To get the
* currently-selected folder in that mode, use gtk_file_chooser_get_uri() as the
* usual way to get the selection.
* Since 2.4
|
This time, I don't use the markup "<pre></pre>". |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Tue Mar 04, 2008 1:32 pm Post subject: Re: A little patch for better document in FileChooser.d |
|
|
heromyth wrote: | It seems DMD requires the brackets must be pair. Otherwise, the generated document is with bad format. Is it a bug in DMD? |
I saw this in the Documentation of Ddoc:
Quote: | If stray, unnested parentheses are used, they can be replaced with the entity &#40; for ( and &#41; for ). |
So it's probably not a bug in dmd.
Quote: | Here is the patch for FileChooser.d:
|
And we just fixed the other things that needed manual editing. (See ticket #9)
[qoute]This time, I don't use the markup "<pre></pre>".[/quote] |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|