summaryrefslogtreecommitdiff
path: root/applets/brightness
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-05-03 13:55:02 +0200
committerStefano Karapetsas <[email protected]>2014-05-03 13:55:02 +0200
commitd7c2c285bb1d786077554bfd8d6d5a0dec34d5e2 (patch)
treeb93fd5b7fc56fd53a15616b1ebd5f0e7ec06f88a /applets/brightness
parentb908f133d80c111c6de810242ed2759226f9460d (diff)
downloadmate-power-manager-d7c2c285bb1d786077554bfd8d6d5a0dec34d5e2.tar.bz2
mate-power-manager-d7c2c285bb1d786077554bfd8d6d5a0dec34d5e2.tar.xz
applets: Use MateAboutDialog
Diffstat (limited to 'applets/brightness')
-rw-r--r--applets/brightness/brightness-applet.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/applets/brightness/brightness-applet.c b/applets/brightness/brightness-applet.c
index f442765..a7362b4 100644
--- a/applets/brightness/brightness-applet.c
+++ b/applets/brightness/brightness-applet.c
@@ -41,6 +41,7 @@
#endif
#include <glib-object.h>
#include <dbus/dbus-glib.h>
+#include <libmate-desktop/mate-aboutdialog.h>
#include "egg-debug.h"
#include "egg-dbus-monitor.h"
@@ -793,7 +794,7 @@ gpm_applet_stop_scroll_events_cb (GtkWidget *widget, GdkEvent *event)
static void
gpm_applet_dialog_about_cb (GtkAction *action, gpointer data)
{
- GtkAboutDialog *about;
+ MateAboutDialog *about;
GdkPixbuf *logo =
gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
@@ -829,17 +830,17 @@ gpm_applet_dialog_about_cb (GtkAction *action, gpointer data)
license_trans = g_strconcat (_(license[0]), "\n\n", _(license[1]), "\n\n",
_(license[2]), "\n\n", _(license[3]), "\n", NULL);
- about = (GtkAboutDialog*) gtk_about_dialog_new ();
- gtk_about_dialog_set_program_name (about, GPM_BRIGHTNESS_APPLET_NAME);
- gtk_about_dialog_set_version (about, VERSION);
- gtk_about_dialog_set_copyright (about, _("Copyright \xc2\xa9 2006 Benjamin Canou"));
- gtk_about_dialog_set_comments (about, GPM_BRIGHTNESS_APPLET_DESC);
- gtk_about_dialog_set_authors (about, authors);
- gtk_about_dialog_set_documenters (about, documenters);
- gtk_about_dialog_set_translator_credits (about, translator_credits);
- gtk_about_dialog_set_logo (about, logo);
- gtk_about_dialog_set_license (about, license_trans);
- gtk_about_dialog_set_website (about, GPM_HOMEPAGE_URL);
+ about = (MateAboutDialog*) mate_about_dialog_new ();
+ mate_about_dialog_set_program_name (about, GPM_BRIGHTNESS_APPLET_NAME);
+ mate_about_dialog_set_version (about, VERSION);
+ mate_about_dialog_set_copyright (about, _("Copyright \xc2\xa9 2006 Benjamin Canou"));
+ mate_about_dialog_set_comments (about, GPM_BRIGHTNESS_APPLET_DESC);
+ mate_about_dialog_set_authors (about, authors);
+ mate_about_dialog_set_documenters (about, documenters);
+ mate_about_dialog_set_translator_credits (about, translator_credits);
+ mate_about_dialog_set_logo (about, logo);
+ mate_about_dialog_set_license (about, license_trans);
+ mate_about_dialog_set_website (about, GPM_HOMEPAGE_URL);
g_signal_connect (G_OBJECT(about), "response",
G_CALLBACK(gtk_widget_destroy), NULL);