Commit a227d835 authored by Adam Schreiber's avatar Adam Schreiber

Remove unnecessary rendering of pixbufs for about dialogs.

* plugins/applet/seahorse-applet.c:
* src/seahorse-key-manager.c: Remove unnecessary rendering of pixbufs
for about dialogs.
parent 4aab3cf8
2006-04-03 Adam Schreiber <sadam@clemson.edu>
* plugins/applet/seahorse-applet.c:
* src/seahorse-key-manager.c: Remove unnecessary rendering of pixbufs
for about dialogs.
2006-04-03 Nate Nielsen <nielsen@memberwebs.com>
* libseahorse/seahorse-gtkstock.c:
......
......@@ -239,14 +239,7 @@ handle_clipboard_owner_change(GtkClipboard *clipboard, GdkEvent *event,
static void
about_cb (BonoboUIComponent *uic, SeahorseApplet *sapplet, const gchar *verbname)
{
GdkPixbuf *pixbuf;
pixbuf = gtk_widget_render_icon (GTK_WIDGET(sapplet),
ICON_CLIPBOARD_DEFAULT,
(GtkIconSize)-1,
NULL);
{
static const gchar *authors [] = {
"Adam Schreiber <sadam@clemson.edu>",
"Nate Nielsen <nielsen@memberwebs.com>",
......@@ -272,12 +265,10 @@ about_cb (BonoboUIComponent *uic, SeahorseApplet *sapplet, const gchar *verbname
"documenters", documenters,
"artists", artists,
"translator-credits", _("translator-credits"),
"logo", pixbuf,
"logo-icon-name", "seahorse-applet",
"website", "http://seahorse.sf.net",
"website-label", _("Seahorse Project Homepage"),
NULL);
g_object_unref(pixbuf);
}
static void
......@@ -288,13 +279,8 @@ display_text (gchar *title, gchar *text, gboolean editable)
GdkPixbuf *pixbuf;
dialog = gtk_dialog_new_with_buttons (title, NULL, 0,
GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL);
GTK_STOCK_CLOSE, GTK_RESPONSE_NONE, NULL);
pixbuf = gtk_widget_render_icon (dialog, SEAHORSE_STOCK_SEAHORSE,
(GtkIconSize)-1, NULL);
gtk_window_set_icon (GTK_WINDOW (dialog), gdk_pixbuf_copy(pixbuf));
g_object_unref (pixbuf);
gtk_window_set_default_size (GTK_WINDOW (dialog), 600, 450);
g_signal_connect_swapped (dialog, "response",
G_CALLBACK (gtk_widget_destroy), dialog);
......
......@@ -508,9 +508,6 @@ collapse_all_activate (GtkMenuItem *item, SeahorseWidget *swidget)
static void
about_activate (GtkWidget *widget, SeahorseWidget *swidget)
{
GdkPixbuf *pixbuf = NULL;
GtkWidget *tempwidget = gtk_image_new();
static const gchar *authors[] = {
"Jacob Perkins <jap1@users.sourceforge.net>",
"Jose Carlos Garcia Sogo <jsogo@users.sourceforge.net>",
......@@ -536,12 +533,6 @@ about_activate (GtkWidget *widget, SeahorseWidget *swidget)
NULL
};
pixbuf = gtk_widget_render_icon (tempwidget,
SEAHORSE_STOCK_SEAHORSE,
(GtkIconSize)-1,
NULL);
gtk_widget_destroy(tempwidget);
gtk_show_about_dialog (NULL,
"name", _("seahorse"),
"version", VERSION,
......@@ -551,13 +542,10 @@ about_activate (GtkWidget *widget, SeahorseWidget *swidget)
"documenters", documenters,
"artists", artists,
"translator-credits", _("translator-credits"),
"logo", pixbuf,
"logo-icon-name", "seahorse",
"website", "http://seahorse.sf.net",
"website-label", _("Seahorse Project Homepage"),
NULL);
if (pixbuf != NULL)
g_object_unref (pixbuf);
}
/* Loads key properties of activated key */
......
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