From c12158d5ac51aee5c857f06104d8803213cd42fd Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sat, 26 Apr 2014 14:12:03 +0200 Subject: Use about dialog from libmate-desktop --- applets/wncklet/showdesktop.c | 4 +++- applets/wncklet/window-list.c | 3 ++- applets/wncklet/window-menu.c | 4 +++- applets/wncklet/workspace-switcher.c | 3 ++- 4 files changed, 10 insertions(+), 4 deletions(-) (limited to 'applets/wncklet') 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 +#include + #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 #include +#include #if GTK_CHECK_VERSION (3, 0, 0) #define MATE_DESKTOP_USE_UNSTABLE_API #include @@ -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 #endif +#include + #define WNCK_I_KNOW_THIS_IS_UNSTABLE #include @@ -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 #include +#include #include #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."), -- cgit v1.2.1