FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A little patch for better document in FileChooser.d

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
heromyth



Joined: 26 Nov 2006
Posts: 46

PostPosted: Mon Mar 03, 2008 9:05 pm    Post subject: A little patch for better document in FileChooser.d Reply with quote

It seems DMD requires the brackets must be pair. Otherwise, the generated document is with bad format. Is it a bug in DMD? Razz

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
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Tue Mar 04, 2008 1:32 pm    Post subject: Re: A little patch for better document in FileChooser.d Reply with quote

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? Razz


I saw this in the Documentation of Ddoc:

Quote:
If stray, unnested parentheses are used, they can be replaced with the entity &amp;#40; for ( and &amp;#41; for ).


So it's probably not a bug in dmd.

Quote:
Here is the patch for FileChooser.d:
Code:
...


And we just fixed the other things that needed manual editing. Wink (See ticket #9)

[qoute]This time, I don't use the markup "<pre></pre>".[/quote]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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