A question regarding gtk_clipboard_request_text

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

A question regarding gtk_clipboard_request_text

Wang, Yong Y
I think it would be helpful if the documentation can add some notes about this issue.
What do you guys think?

Thanks
Yong

-----Original Message-----
From: Nickolay V. Shmyrev [mailto:[hidden email]]
Sent: 2005年8月11日 3:39
To: Wang, Yong Y
Cc: [hidden email]
Subject: Re: A question regarding gtk_clipboard_request_text

В Срд, 10/08/2005 в 14:57 +0800, Wang, Yong Y пишет:

> Hi,
>
> I have a question regarding the function
> void gtk_clipboard_request_text (GtkClipboard *clipboard,
>
> GtkClipboardTextReceivedFunc callback,
>                                                 gpointer user_data);
>
> How long is the lifetime of the clipboard data we get via this
> function?
> Is it as long as the function call to GtkClipboardTextReceivedFunc?
>
> I wrote two test cases as below:

See http://mail.gnome.org/archives/gtk-devel-list/2005-August/msg00030.html for details.

> Is my understanding correct?
>
Yes, see

static void
request_text_received_func (GtkClipboard     *clipboard,
                            GtkSelectionData *selection_data,
                            gpointer          data)

in gtkclipboard.c there is string g_free (result).

the selection data is freed just after the exit of callback. It's better
to strdup it if you are planning to use this string later.

> Thanks
> Yong
>
> _______________________________________________
> gtk-devel-list mailing list
> [hidden email]
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list

_______________________________________________
gtk-doc-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/gtk-doc-list
Reply | Threaded
Open this post in threaded view
|

Re: A question regarding gtk_clipboard_request_text

Stefan Sauer-4
Hi Yong,

if so please send this to the gtk-devel list.

@damon: who can relabel the gtk-doc list on the
http://mail.gnome.orgmailman/listinfo/ page? It still says:

gtk-doc-list   Coordination of GTK+ documentation

Wouldn't 'Develepment of gtk-doc' be more appropriate ?

Stefan

Wang, Yong Y wrote:

> I think it would be helpful if the documentation can add some notes about this issue.
> What do you guys think?
>
> Thanks
> Yong
>
> -----Original Message-----
> From: Nickolay V. Shmyrev [mailto:[hidden email]]
> Sent: 2005年8月11日 3:39
> To: Wang, Yong Y
> Cc: [hidden email]
> Subject: Re: A question regarding gtk_clipboard_request_text
>
> В Срд, 10/08/2005 в 14:57 +0800, Wang, Yong Y пишет:
>
>>Hi,
>>
>>I have a question regarding the function
>>void gtk_clipboard_request_text (GtkClipboard *clipboard,
>>
>>GtkClipboardTextReceivedFunc callback,
>>                                                gpointer user_data);
>>
>>How long is the lifetime of the clipboard data we get via this
>>function?
>>Is it as long as the function call to GtkClipboardTextReceivedFunc?
>>
>>I wrote two test cases as below:
>
>
> See http://mail.gnome.org/archives/gtk-devel-list/2005-August/msg00030.html for details.
>
>
>>Is my understanding correct?
>>
>
> Yes, see
>
> static void
> request_text_received_func (GtkClipboard     *clipboard,
>                             GtkSelectionData *selection_data,
>                             gpointer          data)
>
> in gtkclipboard.c there is string g_free (result).
>
> the selection data is freed just after the exit of callback. It's better
> to strdup it if you are planning to use this string later.
>
>
>>Thanks
>>Yong
>>
>>_______________________________________________
>>gtk-devel-list mailing list
>>[hidden email]
>>http://mail.gnome.org/mailman/listinfo/gtk-devel-list
>
>
> _______________________________________________
> gtk-doc-list mailing list
> [hidden email]
> http://mail.gnome.org/mailman/listinfo/gtk-doc-list

_______________________________________________
gtk-doc-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/gtk-doc-list
Reply | Threaded
Open this post in threaded view
|

describe this mailinglist better

Geert Stappers
On Thu, Aug 25, 2005 at 01:13:18PM +0200, Stefan Kost wrote:

> Hi Yong,
>
> if so please send this to the gtk-devel list.
>
> @damon: who can relabel the gtk-doc list on the
> http://mail.gnome.orgmailman/listinfo/ page? It still says:
>
> gtk-doc-list   Coordination of GTK+ documentation
>
> Wouldn't 'Develepment of gtk-doc' be more appropriate ?
Yes, it is. Personaly I prefer

   Development of gtk-doc tools

>
> Stefan


Cheers
Geert Stappers


_______________________________________________
gtk-doc-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/gtk-doc-list

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: describe this mailinglist better

Owen Taylor
On Thu, 2005-08-25 at 13:55 +0200, Geert Stappers wrote:

> On Thu, Aug 25, 2005 at 01:13:18PM +0200, Stefan Kost wrote:
> > Hi Yong,
> >
> > if so please send this to the gtk-devel list.
> >
> > @damon: who can relabel the gtk-doc list on the
> > http://mail.gnome.orgmailman/listinfo/ page? It still says:
> >
> > gtk-doc-list   Coordination of GTK+ documentation
> >
> > Wouldn't 'Develepment of gtk-doc' be more appropriate ?
>
> Yes, it is. Personaly I prefer
>
>    Development of gtk-doc tools
Changed the mailman config to:

 Summary: The gtk-doc documentation tool
 Description:

This list is for discussion of the gtk-doc documentation too. It is
should not be used for questions about GTK+ (use gtk-app-devel-list) or
discussions about improving GTK+ documentation (use bugzilla or
gtk-devel-list)

And changed gtk.org/mailinglists.html to read:

This list is for discussion of the development of the gtk-doc
documentation tool. Questions about how to use GTK+ belong on
gtk-app-devel-list. Discussion about improving the GTK+ documentation
belongs on gtk-devel-list. Specific suggestions for the documentation
should be put in bugzilla.

Regards,
                                                Owen



_______________________________________________
gtk-doc-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/gtk-doc-list

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: describe this mailinglist better

Geert Stappers
On Thu, Aug 25, 2005 at 08:40:00AM -0400, Owen Taylor wrote:
> On Thu, 2005-08-25 at 13:55 +0200, Geert Stappers wrote:
> > On Thu, Aug 25, 2005 at 01:13:18PM +0200, Stefan Kost wrote:
 <snip/>

> > > @damon: who can relabel the gtk-doc list on the
> > > http://mail.gnome.orgmailman/listinfo/ page? It still says:
> > >
> > > gtk-doc-list   Coordination of GTK+ documentation
> > >
> > > Wouldn't 'Develepment of gtk-doc' be more appropriate ?
> >
> > Yes, it is. Personaly I prefer
> >
> >    Development of gtk-doc tools
>
> Changed the mailman config to:
>
>  Summary: The gtk-doc documentation tool
>  Description:
>
> This list is for discussion of the gtk-doc documentation too. It is
> should not be used for questions about GTK+ (use gtk-app-devel-list) or
> discussions about improving GTK+ documentation (use bugzilla or
> gtk-devel-list)
s/documentation too/documentation tool/  #   'l' added

Especial on http://mail.gnome.org/mailman/listinfo/gtk-doc-list

>
> And changed gtk.org/mailinglists.html to read:
>
> This list is for discussion of the development of the gtk-doc
> documentation tool. Questions about how to use GTK+ belong on
> gtk-app-devel-list. Discussion about improving the GTK+ documentation
> belongs on gtk-devel-list. Specific suggestions for the documentation
> should be put in bugzilla.
>
> Regards,
> Owen

Thanks
Geert Stappers


_______________________________________________
gtk-doc-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/gtk-doc-list

signature.asc (196 bytes) Download Attachment