Skip to content

Commit

Permalink
Small update.
Browse files Browse the repository at this point in the history
- Wayland backend reenabled in PKGBUILD.
- Checking whether compile workaround works in PKGBUILD.
- "smaller-adwaita.css" stylesheet updated.
  • Loading branch information
TomaszGasior committed Jun 6, 2017
1 parent 617d884 commit c56efc0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 14 deletions.
16 changes: 11 additions & 5 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

pkgname=gtk3-mushrooms
pkgver=3.22.15
pkgrel=3
pkgrel=4
pkgdesc="GTK3 library with my modifications (see README)."
url="http://www.gtk.org/"
install=gtk3.install
Expand Down Expand Up @@ -42,7 +42,7 @@ sha256sums=(
"cfb3121fb174ea8718a0dc184417338c5dfd819237e233d78bf43fb51bb06c91"
"ac119908c6a763ece6114ae3b5cd5d8c232207ce734d975e0ada22379610fc7d"
"be7800734fc59e49c34ee2f806738eba8b606d46ac61bc3f50fa3cc69ae594f0"
"1784e29ce5b811ed8673a29a89903751abb8bf68b3793f2e635c99851c165245"
"0afbd995148ce6e03010b572d69533e4d250a2e5f60323422b16a407ff162885"

"c3ab786779a6a74765a56e31aaa0fe9123feee222185f0c3ae94acfb2e61a0dd"
"01fc1d81dc82c4a052ac6e25bf9a04e7647267cc3017bc91f9ce3e63e5eb9202"
Expand All @@ -69,22 +69,28 @@ build() {
cd "$srcdir/gtk-$pkgver"

CXX=/bin/false ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--enable-x11-backend --disable-schemas-compile --disable-gtk-doc-html --disable-man \
--disable-installed-tests --disable-colord --disable-maintainer-mode
--enable-x11-backend --enable-wayland-backend --disable-schemas-compile --disable-gtk-doc-html \
--disable-man --disable-installed-tests --disable-colord --disable-maintainer-mode

#https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

# Make GTK building faster by skipping tests and examples.
compatible="no"
IFS=; while read -r line; do
if [[ $line = "SUBDIRS = po po-properties \$(SRC_SUBDIRS) docs m4macros build" ]]; then
echo "SUBDIRS = po po-properties gdk gtk libgail-util modules m4macros build"
echo "SUBDIRS = po gdk gtk libgail-util modules m4macros build"
compatible="yes"
else
echo $line
fi;
done < Makefile > Makefile.modified
mv Makefile Makefile.original
mv Makefile.modified Makefile
if [[ $compatible = "no" ]]; then
echo "Makefile is not compatible."
exit 1
fi

make -j 15
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

This is a set of patches for GTK3 library that makes it better for me and maybe for you too. ;-) I have not wide knowledge about programming in C, so quality of this patches can be not good. But it works! See list of patches below.

This package is based on official GTK3 package from Arch Linux. In my version library is compiled without Broadway backend, Wayland support, documentation and example applications. Using this package with GNOME desktop is not recommended. It is for classic GTK-based environments like MATE or XFCE.
This package is based on official GTK3 package from Arch Linux. In my version library is compiled without Broadway backend, documentation and example applications. Using this package with GNOME desktop is not recommended. It is for classic GTK-based environments like MATE or XFCE.

Client Side Decorations
---
Expand Down Expand Up @@ -58,4 +58,4 @@ Credits
---

* https://launchpad.net/~gnome3-team — file chooser single-click patch.
* https://aur.archlinux.org/packages/gtk3-typeahead — file chooser typeahead patch.
* https://aur.archlinux.org/packages/gtk3-typeahead — file chooser typeahead patch.
28 changes: 21 additions & 7 deletions smaller-adwaita.css
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@

/* GTK3-mushrooms */
button {
button,
button.titlebutton {
padding: 3px 7px;
min-height: 20px;
min-width: 15px;
}
notebook > header.top tab, notebook > header.bottom tab {
notebook > header.top tab,
notebook > header.bottom tab {
padding: 0 5px;
}
notebook > header.left tab, notebook > header.right tab {
notebook > header.left tab,
notebook > header.right tab {
padding: 0 8px;
}
notebook tab button {
padding: 0px;
min-height: 15px;
}
entry, spinbutton:not(.vertical) {
entry,
spinbutton:not(.vertical) {
min-height: 26px;
}
treeview button {
padding: 0 7px;
min-height: 23px;
}
progressbar.horizontal trough, progressbar.horizontal progress, progressbar.vertical trough, progressbar.vertical progress, levelbar trough {
progressbar.horizontal trough,
progressbar.horizontal progress,
progressbar.vertical trough,
progressbar.vertical progress,
levelbar trough {
min-height: 9px;
min-width: 9px;
}
Expand All @@ -35,7 +43,13 @@ headerbar, switch slider {
popover > * {
margin: -4px;
}
.background:not(.tiled):not(.maximized):not(.solid-csd) .titlebar:backdrop, .background:not(.tiled):not(.maximized):not(.solid-csd) .titlebar {
tooltip * {
padding: 0px;
}
.background:not(.tiled):not(.maximized):not(.solid-csd) .titlebar:backdrop,
.background:not(.tiled):not(.maximized):not(.solid-csd) .titlebar,
.titlebar:not(headerbar),
headerbar {
background-image: none;
border-radius: 0;
}
Expand All @@ -46,4 +60,4 @@ placessidebar row button.sidebar-button {
min-height: 20px;
min-width: 20px;
padding: 0;
}
}

0 comments on commit c56efc0

Please sign in to comment.