Permalink
Browse files

initial attempt at porting

  • Loading branch information...
Ari Ari
Ari authored and Ari committed Dec 20, 2012
1 parent 30e9444 commit 32bf50d1a21965454fbc8d7da66c256bf046a655
View
@@ -1,4 +1,5 @@
*.desktop
+*.un~
*.o
*.panel-applet
*.service
View
@@ -18,6 +18,11 @@ if PANEL_XFCE4
applet_files = xmonad-log-applet.desktop
$(applet_files): $(applet_files:.desktop=.desktop.in)
$(SED) -e "s|\@PLUGIN_DIR\@|$(PLUGIN_DIR)|" $< > $@
+else
+ if PANEL_MATE
+ applet_files = org.mate.panel.XmonadLogApplet.panel-applet
+ $(applet_files): $(applet_files:.panel-applet=.panel-applet.in)
+ $(SED) -e "s|\@PLUGIN_DIR\@|$(PLUGIN_DIR)|" $< > $@
else
applet_files = org.gnome.panel.XmonadLogApplet.panel-applet
$(applet_files): $(applet_files:.panel-applet=.panel-applet.in)
@@ -26,11 +31,18 @@ endif
applet_DATA = $(applet_files)
if !PANEL_XFCE4
+if !PANEL_MATE
servicedir = $(SESSION_BUS_SERVICES_DIR)
service_in_files = org.gnome.panel.applet.XmonadLogAppletFactory.service.in
service_DATA = $(service_in_files:.service.in=.service)
org.gnome.panel.applet.XmonadLogAppletFactory.service: $(service_in_files)
$(SED) -e "s|\@PLUGIN_DIR\@|$(PLUGIN_DIR)|" $< > $@
+else
+ servicedir = $(SESSION_BUS_SERVICES_DIR)
+service_in_files = org.mate.panel.applet.XmonadLogAppletFactory.service.in
+service_DATA = $(service_in_files:.service.in=.service)
+ org.mate.panel.applet.XmonadLogAppletFactory.service: $(service_in_files)
+ $(SED) -e "s|\@PLUGIN_DIR\@|$(PLUGIN_DIR)|" $< > $@
endif
DISTCLEANFILES = \
@@ -44,6 +56,7 @@ EXTRA_DIST = \
xmonad.hs \
xmonad-log-applet48.png \
org.gnome.panel.XmonadLogApplet.panel-applet.in \
+ org.mate.panel.XmonadLogApplet.panel-applet.in \
xmonad-log-applet.desktop.in \
$(service_in_files)
View
@@ -20,7 +20,7 @@ AC_SUBST([SESSION_BUS_SERVICES_DIR])
AC_ARG_WITH(
[panel],
- [AS_HELP_STRING([--with-panel], [target gnome2 (default), gnome3 or xfce4 panel])],
+ [AS_HELP_STRING([--with-panel], [target gnome2 (default), MATE, gnome3 or xfce4 panel])],
[panel=$withval],
[panel=gnome2]
)
@@ -31,6 +31,12 @@ AS_IF(
PLUGIN_DIR=`$PKG_CONFIG --variable=prefix libpanelapplet-3.0`/libexec
[AC_DEFINE(PANEL_GNOME2, 1, [panel version])]
,
+ [test "x$panel" = xmate],
+ [PKG_CHECK_MODULES(LIBMATEPANEL, libmatepanelapplet >= 1.4.0)]
+ LIBPANEL_APPLET_DIR=`$PKG_CONFIG --variable=prefix libmatepanelapplet`/share/mate-panel/applets
+ PLUGIN_DIR=`$PKG_CONFIG --variable=prefix libmatepanelapplet`/libexec
+ [AC_DEFINE(PANEL_MATE, 1, [panel version])]
+ ,
[test "x$panel" = xgnome3],
[PKG_CHECK_MODULES(LIBPANEL, libpanelapplet-4.0 >= 3.0.0)]
LIBPANEL_APPLET_DIR=`$PKG_CONFIG --variable=libpanel_applet_dir libpanelapplet-4.0`
@@ -49,6 +55,7 @@ AC_SUBST([LIBPANEL_APPLET_DIR])
AC_SUBST([PLUGIN_DIR])
AM_CONDITIONAL([PANEL_GNOME2], [test "x$panel" = xgnome2])
+AM_CONDITIONAL([PANEL_MATE], [test "x$panel" = xmate])
AM_CONDITIONAL([PANEL_GNOME3], [test "x$panel" = xgnome3])
AM_CONDITIONAL([PANEL_XFCE4], [test "x$panel" = xxfce4])
@@ -0,0 +1,11 @@
+[Applet Factory]
+Id=XmonadLogAppletFactory
+Location=@PLUGIN_DIR@/xmonad-log-applet
+Name=Xmonad Log Factory
+Description=Factory for the xmonad-log-applet
+
+[XmonadLogApplet]
+Name=Xmonad Log Applet
+Description=Monitor your Xmonad log
+Icon=xmonad-log-applet
+MateComponentId=OAFIID:XmonadLogApplet
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.mate.panel.applet.XmonadLogAppletFactory
+Exec=@PLUGIN_DIR@/xmonad-log-applet

0 comments on commit 32bf50d

Please sign in to comment.