lxlauncher: switch to gtk+3

This commit is contained in:
teldra 2019-08-11 14:18:12 +02:00 committed by Enno Boland
parent 9269ebde07
commit 801b692c8f
3 changed files with 72 additions and 4 deletions

View file

@ -0,0 +1,51 @@
From ee4d4947584d5b6bec6968aa16aa1f2e902eea81 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor@gmail.com>
Date: Tue, 21 Feb 2017 04:41:58 +0100
Subject: [PATCH] Add CSS selectors for GTK+ 3.20 and newer
And keep the compatibility with older versions.
---
gtk.css | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gtk.css b/gtk.css
index 93407ee..a1035e9 100644
--- a/gtk.css
+++ b/gtk.css
@@ -1,25 +1,33 @@
+viewport,
GtkViewport {
background: none;
}
+notebook tab,
.notebook {
background: #3675AD;
- font: Sans Bold 11;
+ font-weight: bold;
}
+notebook header,
+notebook stack,
.notebook > .frame,
.notebook > .vertical {
background: #B7D6EA;
+ font-weight: bold;
}
+notebook tab label,
.notebook > .horizontal .label {
color: #B7D6EA;
}
+notebook tab:checked label,
.notebook > .horizontal.active-page .label {
color: #FFFFFF;
}
+notebook stack label,
.notebook > .vertical .label,
.button .label {
color: #3675AD;
--
2.11.1

View file

@ -0,0 +1,15 @@
diff -Naur lxlauncher-0.2.5.orig/src/lxlauncher.c lxlauncher-0.2.5/src/lxlauncher.c
--- lxlauncher-0.2.5.orig/src/lxlauncher.c 2018-01-12 23:31:21.116719000 +0100
+++ lxlauncher-0.2.5/src/lxlauncher.c 2018-01-12 23:31:39.190805710 +0100
@@ -1021,9 +1021,9 @@
get_working_area( gtk_widget_get_screen(main_window), &working_area );
gtk_window_move( GTK_WINDOW(main_window), working_area.x, working_area.y );
+ gtk_widget_show_all( main_window );
gtk_window_resize( GTK_WINDOW(main_window), working_area.width, working_area.height );
- gtk_widget_show_all( main_window );
gtk_main();
gdk_window_remove_filter( gtk_widget_get_root_window(main_window), evt_filter, NULL );

View file

@ -1,17 +1,19 @@
# Template file for 'lxlauncher'
pkgname=lxlauncher
version=0.2.5
revision=1
revision=2
build_style=gnu-configure
configure_args="--enable-gtk3"
hostmakedepends="pkg-config intltool"
makedepends="gtk+-devel startup-notification-devel menu-cache-devel"
makedepends="gtk+3-devel startup-notification-devel menu-cache-devel"
conf_files="
/etc/xdg/lxlauncher/gtkrc
/etc/xdg/lxlauncher/settings.conf
/etc/xdg/lxlauncher/gtk.css"
short_desc="LXDE launcher for netbooks"
homepage="http://lxde.org/"
license="GPL-2"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://lxde.org/"
distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
checksum=cd14b59cf337e7ba0d67efc95cd79859ab5f0f85af5a84c7aff771f868c3dca7
patch_args="-Np1"