Re: Can't set the website link clickable of gtk_about
- From: Emmanuele Bassi <ebassi gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Can't set the website link clickable of gtk_about
- Date: Wed, 12 Dec 2007 15:08:20 +0000
On Fri, 2007-11-16 at 12:54 +0800, TualatriX wrote:
I also read some code, such as gedit, nuatilus, their about dialog is using
gtk_about_dialog_set_website_label and gtk_about_dialog_set_website. Their
website can clickable, but why mime isn't like there?
That's the code:
gtk_about_dialog_set_website_label(GTK_ABOUT_DIALOG(dialog),"http://abc.com
");
gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(dialog),"My website");
the documentation has been recently updated to mention this, but here's
the gist: you must set the GtkAboutDialog URL and/or email hooks for the
website and email button to become link buttons.
see the documentation of:
gtk_about_dialog_set_url_hook()
gtk_about_dialog_set_email_hook()
ciao,
Emmanuele.
--
Emmanuele Bassi,
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]