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 /gtk/gtkaboutdialog.h | |
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 'gtk/gtkaboutdialog.h')
-rw-r--r-- | gtk/gtkaboutdialog.h | 59 |
1 files changed, 20 insertions, 39 deletions
diff --git a/gtk/gtkaboutdialog.h b/gtk/gtkaboutdialog.h index 90b1e0ab01..42eba5861d 100644 --- a/gtk/gtkaboutdialog.h +++ b/gtk/gtkaboutdialog.h @@ -85,7 +85,7 @@ typedef enum { * The <structname>GtkAboutDialog</structname> struct contains * only private fields and should not be directly accessed. */ -struct _GtkAboutDialog +struct _GtkAboutDialog { GtkDialog parent_instance; @@ -93,10 +93,13 @@ struct _GtkAboutDialog GtkAboutDialogPrivate *priv; }; -struct _GtkAboutDialogClass +struct _GtkAboutDialogClass { GtkDialogClass parent_class; + gboolean (*activate_link) (GtkAboutDialog *dialog, + const gchar *uri); + /* Padding for future expansion */ void (*_gtk_reserved1) (void); void (*_gtk_reserved2) (void); @@ -107,23 +110,23 @@ struct _GtkAboutDialogClass GType gtk_about_dialog_get_type (void) G_GNUC_CONST; GtkWidget *gtk_about_dialog_new (void); void gtk_show_about_dialog (GtkWindow *parent, - const gchar *first_property_name, - ...) G_GNUC_NULL_TERMINATED; + const gchar *first_property_name, + ...) G_GNUC_NULL_TERMINATED; G_CONST_RETURN gchar *gtk_about_dialog_get_program_name (GtkAboutDialog *about); void gtk_about_dialog_set_program_name (GtkAboutDialog *about, - const gchar *name); + const gchar *name); G_CONST_RETURN gchar *gtk_about_dialog_get_version (GtkAboutDialog *about); void gtk_about_dialog_set_version (GtkAboutDialog *about, - const gchar *version); + const gchar *version); G_CONST_RETURN gchar *gtk_about_dialog_get_copyright (GtkAboutDialog *about); void gtk_about_dialog_set_copyright (GtkAboutDialog *about, - const gchar *copyright); + const gchar *copyright); G_CONST_RETURN gchar *gtk_about_dialog_get_comments (GtkAboutDialog *about); void gtk_about_dialog_set_comments (GtkAboutDialog *about, - const gchar *comments); + const gchar *comments); G_CONST_RETURN gchar *gtk_about_dialog_get_license (GtkAboutDialog *about); void gtk_about_dialog_set_license (GtkAboutDialog *about, - const gchar *license); + const gchar *license); void gtk_about_dialog_set_license_type (GtkAboutDialog *about, GtkLicense license_type); GtkLicense gtk_about_dialog_get_license_type (GtkAboutDialog *about); @@ -134,50 +137,28 @@ void gtk_about_dialog_set_wrap_license (GtkAboutDialog G_CONST_RETURN gchar *gtk_about_dialog_get_website (GtkAboutDialog *about); void gtk_about_dialog_set_website (GtkAboutDialog *about, - const gchar *website); + const gchar *website); G_CONST_RETURN gchar *gtk_about_dialog_get_website_label (GtkAboutDialog *about); void gtk_about_dialog_set_website_label (GtkAboutDialog *about, - const gchar *website_label); + const gchar *website_label); G_CONST_RETURN gchar* G_CONST_RETURN * gtk_about_dialog_get_authors (GtkAboutDialog *about); void gtk_about_dialog_set_authors (GtkAboutDialog *about, - const gchar **authors); + const gchar **authors); G_CONST_RETURN gchar* G_CONST_RETURN * gtk_about_dialog_get_documenters (GtkAboutDialog *about); void gtk_about_dialog_set_documenters (GtkAboutDialog *about, - const gchar **documenters); + const gchar **documenters); G_CONST_RETURN gchar* G_CONST_RETURN * gtk_about_dialog_get_artists (GtkAboutDialog *about); void gtk_about_dialog_set_artists (GtkAboutDialog *about, - const gchar **artists); + const gchar **artists); G_CONST_RETURN gchar *gtk_about_dialog_get_translator_credits (GtkAboutDialog *about); void gtk_about_dialog_set_translator_credits (GtkAboutDialog *about, - const gchar *translator_credits); + const gchar *translator_credits); GdkPixbuf *gtk_about_dialog_get_logo (GtkAboutDialog *about); void gtk_about_dialog_set_logo (GtkAboutDialog *about, - GdkPixbuf *logo); + GdkPixbuf *logo); G_CONST_RETURN gchar *gtk_about_dialog_get_logo_icon_name (GtkAboutDialog *about); void gtk_about_dialog_set_logo_icon_name (GtkAboutDialog *about, - const gchar *icon_name); - -/** - * GtkAboutDialogActivateLinkFunc: - * @about: the #GtkAboutDialog in which the link was activated - * @link_: the URL or email address to which the activated link points - * @data: user data that was passed when the function was registered - * with gtk_about_dialog_set_email_hook() or - * gtk_about_dialog_set_url_hook() - * - * The type of a function which is called when a URL or email - * link is activated. - */ -typedef void (* GtkAboutDialogActivateLinkFunc) (GtkAboutDialog *about, - const gchar *link_, - gpointer data); - -GtkAboutDialogActivateLinkFunc gtk_about_dialog_set_email_hook (GtkAboutDialogActivateLinkFunc func, - gpointer data, - GDestroyNotify destroy); -GtkAboutDialogActivateLinkFunc gtk_about_dialog_set_url_hook (GtkAboutDialogActivateLinkFunc func, - gpointer data, - GDestroyNotify destroy); + const gchar *icon_name); G_END_DECLS |