diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-09-21 21:55:05 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-09-22 00:36:13 -0400 |
commit | b0713fb3bb41e6daf07c80d88098fee1461c0658 (patch) | |
tree | 5c05072b64af8e1db4fe42dc2efd9f4e31e01a69 /demos | |
parent | 0e1bba6ef5817730dbe1cd53c9ba8a5ea6972053 (diff) | |
download | gtk+-b0713fb3bb41e6daf07c80d88098fee1461c0658.tar.gz |
Remove url hooks from GtkAboutDialog and GtkLinkButton
With gtk_show_uri, global configurability of link activation has
moved to GIO/gvfs. For local overrides, GtkLinkButton has the ::clicked
signal, and GtkAboutDialog gets an ::activate-link signal.
Bug 339745
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/appwindow.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/demos/gtk-demo/appwindow.c b/demos/gtk-demo/appwindow.c index a3bbf4794c..6381458801 100644 --- a/demos/gtk-demo/appwindow.c +++ b/demos/gtk-demo/appwindow.c @@ -68,25 +68,6 @@ activate_radio_action (GtkAction *action, GtkRadioAction *current) } static void -activate_email (GtkAboutDialog *about, - const gchar *link, - gpointer data) -{ - gchar *text; - text = g_strdup_printf ("send mail to %s", link); - g_print ("%s\n", text); - g_free (text); -} - -static void -activate_url (GtkAboutDialog *about, - const gchar *link, - gpointer data) -{ - g_print ("show url %s\n", link); -} - -static void about_cb (GtkAction *action, GtkWidget *window) { @@ -120,8 +101,6 @@ about_cb (GtkAction *action, g_object_unref (pixbuf); } - gtk_about_dialog_set_email_hook (activate_email, NULL, NULL); - gtk_about_dialog_set_url_hook (activate_url, NULL, NULL); gtk_show_about_dialog (GTK_WINDOW (window), "program-name", "GTK+ Code Demos", "version", g_strdup_printf ("%s,\nRunning against GTK+ %d.%d.%d", |