summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rwxr-xr-xgnome3-libs/gtk3-nocsd/BUILD5
-rwxr-xr-xgnome3-libs/gtk3-nocsd/DEPENDS2
-rwxr-xr-xgnome3-libs/gtk3-nocsd/DETAILS26
-rw-r--r--gnome3-libs/gtk3-nocsd/HISTORY2
-rwxr-xr-xgnome3-libs/gtk3-nocsd/INSTALL1
-rwxr-xr-xgnome3-libs/gtk3-nocsd/PRE_BUILD4
7 files changed, 42 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6c93b5311d..5715495268 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
* python-pypi/enum34: new spell, support for enumerations
* python-pypi/python-cryptography: new spell, Python cryptographic
recipes and primitives
+ * gnome3-libs/gtk3-nocsd: new spell, hack to disable gtk+ 3 client side
+ decoration
2015-03-15 Ismael Luceno <ismael@sourcemage.org>
* php-pear/pear-php_codesniffer: new spell, detects violations to a
diff --git a/gnome3-libs/gtk3-nocsd/BUILD b/gnome3-libs/gtk3-nocsd/BUILD
new file mode 100755
index 0000000000..32f27b43d8
--- /dev/null
+++ b/gnome3-libs/gtk3-nocsd/BUILD
@@ -0,0 +1,5 @@
+./build.sh &&
+
+if list_find "$LDFLAGS" "-s"; then
+ strip gtk3-nocsd.so
+fi
diff --git a/gnome3-libs/gtk3-nocsd/DEPENDS b/gnome3-libs/gtk3-nocsd/DEPENDS
new file mode 100755
index 0000000000..cbbb3949eb
--- /dev/null
+++ b/gnome3-libs/gtk3-nocsd/DEPENDS
@@ -0,0 +1,2 @@
+depends gtk+3 &&
+depends git
diff --git a/gnome3-libs/gtk3-nocsd/DETAILS b/gnome3-libs/gtk3-nocsd/DETAILS
new file mode 100755
index 0000000000..220982e9f5
--- /dev/null
+++ b/gnome3-libs/gtk3-nocsd/DETAILS
@@ -0,0 +1,26 @@
+ SPELL=gtk3-nocsd
+ VERSION=scm
+ SOURCE=$SPELL-$VERSION.tar.bz2
+ SOURCE_URL[0]=git://github.com/PCMan/$SPELL/
+ SOURCE_IGNORE=volatile
+ FORCE_DOWNLOAD=on
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE=https://github.com/PCMan/gtk3-nocsd
+ ENTERED=20150316
+ LICENSE[0]=LGPL
+ SHORT="hack to disable gtk+ 3 client side decoration"
+cat << EOF
+gtk3-nocsd is a small module used to disable the client side decoration of
+GTK+3.
+
+Since GTK+ 3.10, its developers added a so-called header bar or custom title
+bar. With this and the client-side decoration, the original title bar and window
+border provided by the window manager are disabled by gtk+. This makes all GTK+3
+programs look like align. Even worse, this may break some window manager or
+compositors.
+
+Unfortunately, the GTK+ developers decided to be against the existing standards
+and provide "no option" to turn it off.
+
+Luckily, with gtk3-nocsd, we still have a way to (partially) turn it off.
+EOF
diff --git a/gnome3-libs/gtk3-nocsd/HISTORY b/gnome3-libs/gtk3-nocsd/HISTORY
new file mode 100644
index 0000000000..b61d64a344
--- /dev/null
+++ b/gnome3-libs/gtk3-nocsd/HISTORY
@@ -0,0 +1,2 @@
+2015-03-16 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS, DEPENDS, {PRE_}BUILD, INSTALL: created spell
diff --git a/gnome3-libs/gtk3-nocsd/INSTALL b/gnome3-libs/gtk3-nocsd/INSTALL
new file mode 100755
index 0000000000..c104830aaf
--- /dev/null
+++ b/gnome3-libs/gtk3-nocsd/INSTALL
@@ -0,0 +1 @@
+install -vm 755 gtk3-nocsd.so "$INSTALL_ROOT/usr/lib/gtk3-nocsd.so"
diff --git a/gnome3-libs/gtk3-nocsd/PRE_BUILD b/gnome3-libs/gtk3-nocsd/PRE_BUILD
new file mode 100755
index 0000000000..05fefaa8f2
--- /dev/null
+++ b/gnome3-libs/gtk3-nocsd/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+sedit "s:-Wall:-Wall $CFLAGS:" build.sh