diff options
author | Stefano Karapetsas <[email protected]> | 2014-04-26 14:12:03 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-04-26 14:12:03 +0200 |
commit | c12158d5ac51aee5c857f06104d8803213cd42fd (patch) | |
tree | 395a2420ab9cadd9c0db3fd48375557c70b76422 /applets | |
parent | 522567f336b5920c869ff45aa60d8cecdac0b640 (diff) | |
download | mate-panel-c12158d5ac51aee5c857f06104d8803213cd42fd.tar.bz2 mate-panel-c12158d5ac51aee5c857f06104d8803213cd42fd.tar.xz |
Use about dialog from libmate-desktop
Diffstat (limited to 'applets')
-rw-r--r-- | applets/clock/clock.c | 4 | ||||
-rw-r--r-- | applets/fish/fish.c | 3 | ||||
-rw-r--r-- | applets/notification_area/main.c | 4 | ||||
-rw-r--r-- | applets/wncklet/showdesktop.c | 4 | ||||
-rw-r--r-- | applets/wncklet/window-list.c | 3 | ||||
-rw-r--r-- | applets/wncklet/window-menu.c | 4 | ||||
-rw-r--r-- | applets/wncklet/workspace-switcher.c | 3 |
7 files changed, 18 insertions, 7 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c index ef35eff4..4592698e 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -52,6 +52,8 @@ #include <gdk/gdkx.h> #include <gio/gio.h> +#include <libmate-desktop/mate-aboutdialog.h> + #include <libmateweather/mateweather-prefs.h> #include <libmateweather/mateweather-xml.h> #include <libmateweather/location-entry.h> @@ -3228,7 +3230,7 @@ static void display_about_dialog(GtkAction* action, ClockData* cd) char copyright[] = \ "Copyright \xc2\xa9 1998-2004 Free Software Foundation, Inc."; - gtk_show_about_dialog(NULL, + mate_show_about_dialog(NULL, "program-name", _("Clock"), "authors", authors, "comments", _("The Clock displays the current time and date"), diff --git a/applets/fish/fish.c b/applets/fish/fish.c index 114aaa4f..c4a91d88 100644 --- a/applets/fish/fish.c +++ b/applets/fish/fish.c @@ -42,6 +42,7 @@ #include <gdk/gdkkeysyms-compat.h> #endif #include <gio/gio.h> +#include <libmate-desktop/mate-aboutdialog.h> #include <mate-panel-applet.h> #include <mate-panel-applet-gsettings.h> @@ -571,7 +572,7 @@ static void display_about_dialog(GtkAction* action, FishApplet* fish) descr = g_strdup_printf(about_format, fish->name); - gtk_show_about_dialog(NULL, + mate_show_about_dialog(NULL, "program-name", _("Fish"), "authors", authors, "comments", descr, diff --git a/applets/notification_area/main.c b/applets/notification_area/main.c index 81203bac..71b9b2e5 100644 --- a/applets/notification_area/main.c +++ b/applets/notification_area/main.c @@ -29,6 +29,8 @@ #include <glib/gi18n.h> #include <gtk/gtk.h> +#include <libmate-desktop/mate-aboutdialog.h> + #include "na-tray-manager.h" #include "na-tray.h" #include "fixedtip.h" @@ -120,7 +122,7 @@ static void about_cb(GtkAction* action, AppletData* data) "Copyright \xc2\xa9 2003-2006 Vincent Untz\n" "Copyright \xc2\xa9 2011 Perberos"; - gtk_show_about_dialog(NULL, + mate_show_about_dialog(NULL, "program-name", _("Notification Area"), "authors", authors, //"comments", _(comments), diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c index abee22bc..efe19ab2 100644 --- a/applets/wncklet/showdesktop.c +++ b/applets/wncklet/showdesktop.c @@ -33,6 +33,8 @@ #define WNCK_I_KNOW_THIS_IS_UNSTABLE #include <libwnck/libwnck.h> +#include <libmate-desktop/mate-aboutdialog.h> + #include "wncklet.h" #include "showdesktop.h" @@ -479,7 +481,7 @@ static void display_about_dialog(GtkAction* action, ShowDesktopData* sdd) "Copyright \xc2\xa9 2011 Perberos\n" "Copyright \xc2\xa9 2002 Red Hat, Inc."; - gtk_show_about_dialog(GTK_WINDOW(sdd->applet), + mate_show_about_dialog(GTK_WINDOW(sdd->applet), "program-name", _("Show Desktop Button"), "authors", authors, "comments", _("This button lets you hide all windows and show the desktop."), diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c index 721aef22..954fb577 100644 --- a/applets/wncklet/window-list.c +++ b/applets/wncklet/window-list.c @@ -23,6 +23,7 @@ #include <libwnck/libwnck.h> #include <gio/gio.h> +#include <libmate-desktop/mate-aboutdialog.h> #if GTK_CHECK_VERSION (3, 0, 0) #define MATE_DESKTOP_USE_UNSTABLE_API #include <libmate-desktop/mate-desktop-utils.h> @@ -579,7 +580,7 @@ static void display_about_dialog(GtkAction* action, TasklistData* tasklist) "Copyright \xc2\xa9 2011 Perberos\n" "Copyright \xc2\xa9 2002 Red Hat, Inc."; - gtk_show_about_dialog(GTK_WINDOW(tasklist->applet), + mate_show_about_dialog(GTK_WINDOW(tasklist->applet), "program-name", _("Window List"), "authors", authors, "comments", _("The Window List shows a list of all windows in a set of buttons and lets you browse them."), diff --git a/applets/wncklet/window-menu.c b/applets/wncklet/window-menu.c index 86701b96..76dfdc58 100644 --- a/applets/wncklet/window-menu.c +++ b/applets/wncklet/window-menu.c @@ -38,6 +38,8 @@ #include <gdk/gdkkeysyms-compat.h> #endif +#include <libmate-desktop/mate-aboutdialog.h> + #define WNCK_I_KNOW_THIS_IS_UNSTABLE #include <libwnck/libwnck.h> @@ -81,7 +83,7 @@ static void window_menu_about(GtkAction* action, WindowMenu* window_menu) "Copyright \xc2\xa9 2001 Free Software Foundation, Inc.\n" "Copyright \xc2\xa9 2000 Helix Code, Inc."; - gtk_show_about_dialog(GTK_WINDOW(window_menu->applet), + mate_show_about_dialog(GTK_WINDOW(window_menu->applet), "program-name", _("Window Selector"), "authors", authors, "comments", _("The Window Selector shows a list of all windows in a menu and lets you browse them."), diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c index d35155a2..bf6e365d 100644 --- a/applets/wncklet/workspace-switcher.c +++ b/applets/wncklet/workspace-switcher.c @@ -25,6 +25,7 @@ #include <libwnck/libwnck.h> #include <gio/gio.h> +#include <libmate-desktop/mate-aboutdialog.h> #include <libmate-desktop/mate-gsettings.h> #include "workspace-switcher.h" @@ -603,7 +604,7 @@ static void display_about_dialog(GtkAction* action, PagerData* pager) "Copyright \xc2\xa9 2011 Perberos\n" "Copyright \xc2\xa9 2002 Red Hat, Inc."; - gtk_show_about_dialog(GTK_WINDOW(pager->applet), + mate_show_about_dialog(GTK_WINDOW(pager->applet), "program-name", _("Workspace Switcher"), "authors", authors, "comments", _("The Workspace Switcher shows you a small version of your workspaces that lets you manage your windows."), |