]> gitweb.michael.orlitzky.com - xfce4-hdaps.git/commitdiff
Removed the redundant 'logo' property from the about dialog.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 25 Mar 2010 18:36:56 +0000 (14:36 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 25 Mar 2010 18:36:56 +0000 (14:36 -0400)
Added a window icon to the about dialog.

panel-plugin/xfce4-hdaps-dialogs.c

index d57b8f4070bd4dddd0253970f8b84fc48f5392de..fb8a5002037fd019fbc2b6505310019c187c24d0 100644 (file)
@@ -219,30 +219,22 @@ static void hdaps_mailto_handler(GtkAboutDialog *about,
 
 
 void hdaps_about(XfcePanelPlugin *plugin) {
-  GdkPixbuf *icon;
-
   const gchar *authors[] = { "Michael Orlitzky <michael@orlitzky.com>", NULL };
   const gchar *copyright = "Copyright \302\251 2010 Michael Orlitzky";
 
   gtk_about_dialog_set_url_hook(hdaps_url_handler, NULL, NULL);
   gtk_about_dialog_set_email_hook(hdaps_mailto_handler, NULL, NULL);
 
-  icon = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(),
-                                 PACKAGE_NAME,
-                                 48, 0, NULL);
-  
   gtk_show_about_dialog(NULL,
                        "authors", authors,
                        "copyright", copyright,
                        "destroy-with-parent", TRUE,
                        "license", LICENSE_GPL3,
-                       "logo", icon,
                        "logo-icon-name", PACKAGE_NAME,
+                       "icon-name", PACKAGE_NAME,
                        "name", PACKAGE_NAME,
                        "version", PACKAGE_VERSION,
                        "website", PLUGIN_WEBSITE,
                        "website-label", "xfce4-hdaps homepage",
                        NULL);
-
-  g_object_unref(G_OBJECT(icon));
 }