gnome-netstatus r739 - in trunk: . src
- From: diegoe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-netstatus r739 - in trunk: . src
- Date: Wed, 26 Nov 2008 20:33:28 +0000 (UTC)
Author: diegoe
Date: Wed Nov 26 20:33:28 2008
New Revision: 739
URL: http://svn.gnome.org/viewvc/gnome-netstatus?rev=739&view=rev
Log:
Use gtk_show_about_dialog instead of g_object_new.
This fixes the missing icon and the un-Close-able about dialog.
Modified:
trunk/ChangeLog
trunk/src/netstatus-applet.c
Modified: trunk/src/netstatus-applet.c
==============================================================================
--- trunk/src/netstatus-applet.c (original)
+++ trunk/src/netstatus-applet.c Wed Nov 26 20:33:28 2008
@@ -280,42 +280,16 @@
"Calum Benson <calum benson sun com>",
NULL
};
- const char *documenters [] = { NULL };
- const char *translator_credits = _("translator_credits");
- GdkPixbuf *pixbuf = NULL;
-
- if (applet->priv->about_dialog)
- {
- gtk_window_set_screen (GTK_WINDOW (applet->priv->about_dialog),
- gtk_widget_get_screen (GTK_WIDGET (applet)));
- gtk_window_present (GTK_WINDOW (applet->priv->about_dialog));
- return;
- }
-
- applet->priv->about_dialog =
- g_object_new (GTK_TYPE_ABOUT_DIALOG,
- "name", _("Network Monitor"),
- "version", VERSION,
- "copyright", "Copyright \xc2\xa9 2003 Sun Microsystems, Inc.\n",
- "comments", _("The Network Monitor displays the status of a network device."),
- "authors", authors,
- "documenters", documenters,
- "translator-credits", translator_credits,
- "logo", pixbuf,
- NULL);
-
- gtk_window_set_wmclass (GTK_WINDOW (applet->priv->about_dialog), "netstatus", "Netstatus");
- gtk_window_set_screen (GTK_WINDOW (applet->priv->about_dialog),
- gtk_widget_get_screen (GTK_WIDGET (applet)));
-
- gtk_window_set_icon_name(GTK_WINDOW (applet->priv->about_dialog), "gnome-netstatus-tx");
-
- g_signal_connect (applet->priv->about_dialog,
- "destroy",
- G_CALLBACK (gtk_widget_destroyed),
- &applet->priv->about_dialog);
- gtk_widget_show (applet->priv->about_dialog);
+ gtk_show_about_dialog (NULL,
+ "program-name", _("Network Monitor"),
+ "version", VERSION,
+ "copyright", "Copyright \xc2\xa9 2003 Sun Microsystems, Inc.\n",
+ "comments", _("The Network Monitor displays the status of a network device."),
+ "authors", authors,
+ "translator-credits", _("translator_credits"),
+ "logo-icon-name", "gnome-netstatus-rx",
+ NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]