Index: configure.in.in =================================================================== --- configure.in.in (revision 26941) +++ configure.in.in (working copy) @@ -74,15 +74,11 @@ XDT_I18N([@LINGUAS@]) dnl Check for required packages -XDT_CHECK_PACKAGE([LIBXFCE4MCS_CLIENT], [libxfce4mcs-client-1.0], [xfce_minimum_version]) XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-1.0], [xfce_minimum_version]) dnl Needed for panel plugin XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [xfce_minimum_version]) -dnl configure the mcs plugin -XDT_XFCE_MCS_PLUGIN([XFCE_MCS_MANAGER], [xfce_minimum_version]) - dnl the ical magic ac_INCLUDED_LIBICAL=yes Index: plugin/xfce-xfcalendar-settings.desktop.in =================================================================== --- plugin/xfce-xfcalendar-settings.desktop.in (revision 26941) +++ plugin/xfce-xfcalendar-settings.desktop.in (working copy) @@ -3,7 +3,7 @@ Encoding=UTF-8 _Name=Xfce 4 Calendar Settings _Comment=Settings for the Xfce 4 Calendar Application -Exec=xfce-setting-show orage +Exec=orage -p Icon=xfcalendar Terminal=false Type=Application Index: plugin/xfcalendar_plugin.c =================================================================== --- plugin/xfcalendar_plugin.c (revision 26941) +++ plugin/xfcalendar_plugin.c (working copy) @@ -1,82 +0,0 @@ -/* xfcalendar_plugin.c - * - * Copyright (c) 2006 Juha Kautto - * - * 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; You may only use version 2 of the License, - * you have no option to use any other 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - */ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include - -#include -#include -#include -#include - -#define PLUGIN_NAME "orage" - - -static void run_dialog(McsPlugin *mcs_plugin) -{ - GtkWidget *message; - GError *error = NULL; - - if (!g_spawn_command_line_async(BINDIR G_DIR_SEPARATOR_S "orage -p" - , &error)) { - message = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_ERROR - , GTK_BUTTONS_OK, "%s.", _("Failed to launch 'orage -p'")); - gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG (message) - , "%s.", error->message); - gtk_dialog_run(GTK_DIALOG(message)); - gtk_widget_destroy(message); - g_error_free(error); - } -} - -McsPluginInitResult mcs_plugin_init(McsPlugin *mcs_plugin) -{ - GtkIconTheme *icon_theme; - - /* This is required for UTF-8 at least - Please don't remove it */ - xfce_textdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8"); - - mcs_plugin->plugin_name = g_strdup(PLUGIN_NAME); - /* the button label in the xfce-mcs-manager dialog */ - mcs_plugin->caption = g_strdup(_("Orage - Calendar")); - mcs_plugin->run_dialog = run_dialog; - - /* search the icon */ - /* mcs_plugin->icon = xfce_themed_icon_load("xfcalendar", 48); */ - icon_theme = gtk_icon_theme_get_default(); - mcs_plugin->icon = gtk_icon_theme_load_icon(icon_theme, "xfcalendar" - , 48, 0, NULL); - /* if that didn't work, we know where we installed the icon, - * so load it directly */ - if (mcs_plugin->icon == NULL) - mcs_plugin->icon = gdk_pixbuf_new_from_file(DATADIR - "/icons/hicolor/48x48/apps/xfcalendar.png", NULL); - - /* attach icon name to the plugin icon (if any) */ - if (mcs_plugin->icon != NULL) - g_object_set_data_full(G_OBJECT(mcs_plugin->icon) - , "mcs-plugin-icon-name", g_strdup("xfcalendar"), g_free); - - - return(MCS_PLUGIN_INIT_OK); -} Index: plugin/Makefile.am =================================================================== --- plugin/Makefile.am (revision 26941) +++ plugin/Makefile.am (working copy) @@ -1,22 +1,3 @@ -orage_plugindir = \ - $(libdir)/xfce4/mcs-plugins - -orage_plugin_LTLIBRARIES = orage_plugin.la - -orage_plugin_la_LDFLAGS = \ - -avoid-version \ - -module - -orage_plugin_la_SOURCES = \ - xfcalendar_plugin.c - -orage_plugin_la_CFLAGS = \ - $(XFCE_MCS_MANAGER_CFLAGS) \ - -DBINDIR=\"$(bindir)\" \ - -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \ - -DSYSCONFDIR=\"$(sysconfdir)\" \ - -DDATADIR=\"$(pkgdatadir)\" - desktopdir = $(datadir)/applications desktop_in_files = xfce-xfcalendar-settings.desktop.in desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)