Commit cc525e9c authored by Adam Schreiber's avatar Adam Schreiber

Make site links in the About dialogs clickable.

* plugins/applet/seahorse-applet.c:
* src/seahorse-key-manager.c: Make site links in the
About dialogs clickable.
parent 9da17b9d
2006-04-16 Adam Schreiber <sadam@clemson.edu>
* plugins/applet/seahorse-applet.c:
* src/seahorse-key-manager.c: Make site links in the
About dialogs clickable.
2006-04-16 Nate Nielsen <nielsen@memberwebs.com>
* libseahorse/seahorse-pgp-operation.c: Add license
......
......@@ -237,9 +237,19 @@ handle_clipboard_owner_change(GtkClipboard *clipboard, GdkEvent *event,
update_icon (sapplet);
}
/* Makes URL in About Dialog Clickable */
static void about_dialog_activate_link_cb (GtkAboutDialog *about,
const gchar *url,
gpointer data)
{
gnome_url_show (url, NULL);
}
static void
about_cb (BonoboUIComponent *uic, SeahorseApplet *sapplet, const gchar *verbname)
{
static gboolean been_here = FALSE;
static const gchar *authors [] = {
"Adam Schreiber <sadam@clemson.edu>",
"Nate Nielsen <nielsen@memberwebs.com>",
......@@ -255,7 +265,13 @@ about_cb (BonoboUIComponent *uic, SeahorseApplet *sapplet, const gchar *verbname
"Nate Nielsen <nielsen@memberwebs.com>",
NULL
};
if (!been_here)
{
been_here = TRUE;
gtk_about_dialog_set_url_hook (about_dialog_activate_link_cb, NULL, NULL);
}
gtk_show_about_dialog (NULL,
"name", _("seahorse-applet"),
"version", VERSION,
......
......@@ -504,10 +504,20 @@ collapse_all_activate (GtkMenuItem *item, SeahorseWidget *swidget)
gtk_tree_view_collapse_all (view);
}
/* Makes URL in About Dialog Clickable */
static void about_dialog_activate_link_cb (GtkAboutDialog *about,
const gchar *url,
gpointer data)
{
gnome_url_show (url, NULL);
}
/* Shows about dialog */
static void
about_activate (GtkWidget *widget, SeahorseWidget *swidget)
{
static gboolean been_here = FALSE;
static const gchar *authors[] = {
"Jacob Perkins <jap1@users.sourceforge.net>",
"Jose Carlos Garcia Sogo <jsogo@users.sourceforge.net>",
......@@ -533,6 +543,12 @@ about_activate (GtkWidget *widget, SeahorseWidget *swidget)
NULL
};
if (!been_here)
{
been_here = TRUE;
gtk_about_dialog_set_url_hook (about_dialog_activate_link_cb, NULL, NULL);
}
gtk_show_about_dialog (NULL,
"name", _("seahorse"),
"version", VERSION,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment