From 18b3d81dfaec5233eb87ab1e582534bc29fca8b5 Mon Sep 17 00:00:00 2001 From: Vlad Glagolev Date: Mon, 16 Mar 2015 19:10:30 +0300 Subject: gtk3-nocsd: new spell, hack to disable gtk+ 3 client side decoration --- gnome3-libs/gtk3-nocsd/BUILD | 5 +++++ gnome3-libs/gtk3-nocsd/DEPENDS | 2 ++ gnome3-libs/gtk3-nocsd/DETAILS | 26 ++++++++++++++++++++++++++ gnome3-libs/gtk3-nocsd/HISTORY | 2 ++ gnome3-libs/gtk3-nocsd/INSTALL | 1 + gnome3-libs/gtk3-nocsd/PRE_BUILD | 4 ++++ 6 files changed, 40 insertions(+) create mode 100755 gnome3-libs/gtk3-nocsd/BUILD create mode 100755 gnome3-libs/gtk3-nocsd/DEPENDS create mode 100755 gnome3-libs/gtk3-nocsd/DETAILS create mode 100644 gnome3-libs/gtk3-nocsd/HISTORY create mode 100755 gnome3-libs/gtk3-nocsd/INSTALL create mode 100755 gnome3-libs/gtk3-nocsd/PRE_BUILD (limited to 'gnome3-libs') 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 + * 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 -- cgit v1.2.3