xfce4-places-plugin

This commit is contained in:
milisbir 2017-09-11 19:50:55 +03:00
parent 75b05fa74b
commit c69e96c7c7
3 changed files with 111 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -Nur original/panel-plugin/model_volumes.c modified/panel-plugin/model_volumes.c
--- original/panel-plugin/model_volumes.c 2013-12-28 11:30:18.000000000 +0000
+++ modified/panel-plugin/model_volumes.c 2015-06-25 09:59:34.324437370 +0100
@@ -380,7 +380,7 @@
g_object_unref(mount);
}
- return has_media && !is_shadowed;
+ return /*has_media &&*/ !is_shadowed;
}
static inline gboolean

View File

@ -0,0 +1,34 @@
# Description: Xfce paneli için Yerler Menüsü eklentisi
# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-places-plugin
# Packager: yasarciv67@gmail.com
# Depends on: intltool libnotify xfce4-panel
name=xfce4-places-plugin
version=1.7.0
release=1
source=(http://archive.xfce.org/src/panel-plugins/$name/${version%.*}/$name-$version.tar.bz2
mounts.patch
undefined-symbol.patch
)
build() {
cd "$name-$version"
# Disk olmayan diğer bağları göster (örn. NFS)
patch -Np1 -i "${SRC}/mounts.patch"
# Bug 11939
patch -Np1 -i "${SRC}/undefined-symbol.patch"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--localstatedir=/var \
--disable-static \
--disable-debug
make
make DESTDIR="$PKG" install
}

View File

@ -0,0 +1,65 @@
From 94d583d0ba257cdc96cde5794ebb7d38001ae3a5 Mon Sep 17 00:00:00 2001
From: Andrzej <ndrwrdck@gmail.com>
Date: Tue, 7 Jul 2015 22:26:51 +0100
Subject: Bug 11939: xfce4-places-plugin 1.7.0 crashes with undefined symbol
Patch from Fedora. Submitted by Kevin Fenzi.
diff --git a/panel-plugin/model.h b/panel-plugin/model.h
index 06d9d6f..043e391 100644
--- a/panel-plugin/model.h
+++ b/panel-plugin/model.h
@@ -36,13 +36,13 @@ struct _PlacesBookmarkAction
void (*finalize) (PlacesBookmarkAction *self);
};
-inline PlacesBookmarkAction*
+extern inline PlacesBookmarkAction*
places_bookmark_action_create(gchar *label);
-inline void
+extern inline void
places_bookmark_action_destroy(PlacesBookmarkAction*);
-inline void
+extern inline void
places_bookmark_action_call(PlacesBookmarkAction*);
/* Places Bookmark */
@@ -70,10 +70,10 @@ struct _PlacesBookmark
void (*finalize) (PlacesBookmark *self);
};
-inline PlacesBookmark*
+extern inline PlacesBookmark*
places_bookmark_create(gchar *label);
-inline void
+extern inline void
places_bookmark_destroy(PlacesBookmark *bookmark);
/* Places Bookmark Group */
@@ -86,16 +86,16 @@ struct _PlacesBookmarkGroup
gpointer priv;
};
-inline GList*
+extern inline GList*
places_bookmark_group_get_bookmarks(PlacesBookmarkGroup*);
-inline gboolean
+extern inline gboolean
places_bookmark_group_changed(PlacesBookmarkGroup*);
-inline PlacesBookmarkGroup*
+extern inline PlacesBookmarkGroup*
places_bookmark_group_create();
-inline void
+extern inline void
places_bookmark_group_destroy(PlacesBookmarkGroup*);
#endif
--
cgit v0.10.1