]> gitweb.michael.orlitzky.com - xfce4-hdaps.git/blobdiff - panel-plugin/xfce4-hdaps-dialogs.c
xfce4-hdaps-dialogs.c: drop obsolete GTK_DIALOG_NO_SEPARATOR flag.
[xfce4-hdaps.git] / panel-plugin / xfce4-hdaps-dialogs.c
index d57b8f4070bd4dddd0253970f8b84fc48f5392de..b6da7cb95edab9e365a81dc0f243906c0ddbeba3 100644 (file)
@@ -1,21 +1,22 @@
 /*
  * xfce4-hdaps, an XFCE4 panel plugin for the HDAPS system.
  *
- * Copyright Michael Orlitzky
+ * Copyright (C) 2019 Michael Orlitzky
  *
- * http://michael.orlitzky.com/
+ *   http://michael.orlitzky.com/
  *
  * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details:
+ *
+ *   https://www.gnu.org/licenses/agpl-3.0.html
  *
- * http://www.fsf.org/licensing/licenses/gpl.html
  */
 
 #ifdef HAVE_CONFIG_H
@@ -36,7 +37,7 @@
 /* If people can't read the README, well maybe
  *  they can do it /online/.
  */
-#define PLUGIN_WEBSITE "http://michael.orlitzky.com/code/xfce4-hdaps.php"
+#define PLUGIN_WEBSITE "http://michael.orlitzky.com/code/xfce4-hdaps.xhtml"
 
 
 static void hdaps_configure_response(GtkWidget   *dialog,
@@ -100,7 +101,7 @@ void hdaps_configure(XfcePanelPlugin *plugin,
   /* Create the dialog */
   dialog = xfce_titled_dialog_new_with_buttons(_("Hdaps Plugin"),
                                               GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (plugin))),
-                                              GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
+                                              GTK_DIALOG_DESTROY_WITH_PARENT,
                                               GTK_STOCK_HELP, GTK_RESPONSE_HELP,
                                               GTK_STOCK_SAVE, GTK_RESPONSE_OK,
                                               GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
@@ -219,30 +220,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";
+  const gchar *copyright = "Copyright \302\251 2012 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,
+                       "license", LICENSE_AGPL3,
                        "logo-icon-name", PACKAGE_NAME,
-                       "name", PACKAGE_NAME,
+                       "icon-name", PACKAGE_NAME,
+                       "program-name", PACKAGE_NAME,
                        "version", PACKAGE_VERSION,
                        "website", PLUGIN_WEBSITE,
                        "website-label", "xfce4-hdaps homepage",
                        NULL);
-
-  g_object_unref(G_OBJECT(icon));
 }