From ef601445e834c1384816bff3fff7872a4c14a42a Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sat, 3 May 2014 13:44:33 +0200 Subject: Use MateAboutDialog --- configure.ac | 2 +- mate-window-picker-applet/applet.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index d535aeb..6fa0cac 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,7 @@ PKG_CHECK_MODULES(MATEWINDOWPICKER_DEPS, glib-2.0 gio-2.0 libwnck-$LIBWNCK_API_VERSION - mate-desktop-2.0 + mate-desktop-2.0 >= 1.9.0 ) AC_SUBST(MATEWINDOWPICKER_DEPS_CFLAGS) AC_SUBST(MATEWINDOWPICKER_DEPS_LIBS) diff --git a/mate-window-picker-applet/applet.c b/mate-window-picker-applet/applet.c index 2edd45e..686e51f 100644 --- a/mate-window-picker-applet/applet.c +++ b/mate-window-picker-applet/applet.c @@ -31,6 +31,8 @@ #define WNCK_I_KNOW_THIS_IS_UNSTABLE #include +#include + #include #include #include @@ -296,7 +298,7 @@ display_about_dialog (GtkAction *action, { GtkWidget *panel_about_dialog; - panel_about_dialog = gtk_about_dialog_new (); + panel_about_dialog = mate_about_dialog_new (); g_object_set (panel_about_dialog, "name", _("Window Picker"), @@ -305,14 +307,13 @@ display_about_dialog (GtkAction *action, "authors", close_window_authors, "logo-icon-name", "preferences-system-windows", "copyright", "Copyright \xc2\xa9 2008 Canonical Ltd\n" - "Copyright \xc2\xa9 2013 Stefano Karapetsas", + "Copyright \xc2\xa9 2013-2014 Stefano Karapetsas", NULL); gtk_widget_show (panel_about_dialog); g_signal_connect (panel_about_dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL); - gtk_window_present (GTK_WINDOW (panel_about_dialog)); } -- cgit v1.2.1