[gimp] app: Don't use plug-in-web-browser in About Dialog
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] app: Don't use plug-in-web-browser in About Dialog
- Date: Sat, 8 Aug 2009 12:41:20 +0000 (UTC)
commit 2591d7e368f5141d8bb32b9d55802a5888af0de9
Author: Martin Nordholts <martinn src gnome org>
Date: Sat Aug 8 14:19:37 2009 +0200
app: Don't use plug-in-web-browser in About Dialog
The GtkAboutDialog is implemented with a GtkLinkButton which uses
gtk_show_uri(). We don't need to add any hooks.
app/dialogs/about-dialog.c | 27 ---------------------------
1 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/app/dialogs/about-dialog.c b/app/dialogs/about-dialog.c
index 2d68ce9..6773175 100644
--- a/app/dialogs/about-dialog.c
+++ b/app/dialogs/about-dialog.c
@@ -40,9 +40,6 @@
#include "gimp-intl.h"
-#define PDB_URL_LOAD "plug-in-web-browser"
-
-
typedef struct
{
GtkWidget *dialog;
@@ -67,9 +64,6 @@ static void about_dialog_map (GtkWidget *widget,
GimpAboutDialog *dialog);
static void about_dialog_unmap (GtkWidget *widget,
GimpAboutDialog *dialog);
-static void about_dialog_load_url (GtkAboutDialog *dialog,
- const gchar *url,
- gpointer data);
static GdkPixbuf * about_dialog_load_logo (void);
static void about_dialog_add_animation (GtkWidget *vbox,
GimpAboutDialog *dialog);
@@ -96,11 +90,6 @@ about_dialog_create (GimpContext *context)
GdkPixbuf *pixbuf;
GList *children;
- if (gimp_pdb_lookup_procedure (context->gimp->pdb, PDB_URL_LOAD))
- gtk_about_dialog_set_url_hook (about_dialog_load_url,
- g_object_ref (context),
- (GDestroyNotify) g_object_unref);
-
dialog = g_new0 (GimpAboutDialog, 1);
dialog->n_authors = G_N_ELEMENTS (authors) - 1;
@@ -193,22 +182,6 @@ about_dialog_unmap (GtkWidget *widget,
}
}
-static void
-about_dialog_load_url (GtkAboutDialog *dialog,
- const gchar *url,
- gpointer data)
-{
- GimpContext *context = GIMP_CONTEXT (data);
- GValueArray *return_vals;
-
- return_vals = gimp_pdb_execute_procedure_by_name (context->gimp->pdb,
- context, NULL, NULL,
- PDB_URL_LOAD,
- G_TYPE_STRING, url,
- G_TYPE_NONE);
- g_value_array_free (return_vals);
-}
-
static GdkPixbuf *
about_dialog_load_logo (void)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]