Hello community, here is the log from the commit of package wlr-sunclock for openSUSE:Factory checked in at 2020-08-10 15:02:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/wlr-sunclock (Old) and /work/SRC/openSUSE:Factory/.wlr-sunclock.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "wlr-sunclock" Mon Aug 10 15:02:29 2020 rev:2 rq:825258 version:0.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/wlr-sunclock/wlr-sunclock.changes 2020-08-07 14:21:19.114403812 +0200 +++ /work/SRC/openSUSE:Factory/.wlr-sunclock.new.3399/wlr-sunclock.changes 2020-08-10 15:03:19.704169340 +0200 @@ -1,0 +2,6 @@ +Mon Aug 10 06:53:54 UTC 2020 - Michael Vetter <[email protected]> + +- Update to 0.1.1: + * Make colours independant of the Gtk theme + +------------------------------------------------------------------- Old: ---- v0.1.0.tar.gz New: ---- v0.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ wlr-sunclock.spec ++++++ --- /var/tmp/diff_new_pack.YJWCfa/_old 2020-08-10 15:03:21.964170533 +0200 +++ /var/tmp/diff_new_pack.YJWCfa/_new 2020-08-10 15:03:21.968170534 +0200 @@ -17,7 +17,7 @@ Name: wlr-sunclock -Version: 0.1.0 +Version: 0.1.1 Release: 0 Summary: Wayland desktop widget to show to the sun's shadows on earth License: MIT @@ -25,7 +25,7 @@ URL: https://github.com/sentriz/wlr-sunclock Source: https://github.com/sentriz/wlr-sunclock/archive/v%{version}.tar.gz BuildRequires: gtk-layer-shell-devel -BuildRequires: meson +BuildRequires: meson >= 0.46.0 BuildRequires: pkgconfig BuildRequires: pkgconfig(gtk+-3.0) >= 3.22.0 ++++++ v0.1.0.tar.gz -> v0.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wlr-sunclock-0.1.0/README.md new/wlr-sunclock-0.1.1/README.md --- old/wlr-sunclock-0.1.0/README.md 2020-08-06 23:15:45.000000000 +0200 +++ new/wlr-sunclock-0.1.1/README.md 2020-08-07 18:40:10.000000000 +0200 @@ -6,17 +6,22 @@ wayland desktop widget to show to the sun's shadows on earth. uses [gtk-layer-shell](https://github.com/wmww/gtk-layer-shell) and the [layer shell protocol](https://github.com/swaywm/wlr-protocols/blob/master/unstable/wlr-layer-shell-unstable-v1.xml) to render on your desktop, behind your windows -## install from source +## Installation +### from source pacman -S gtk-layer-shell gtk3 wayland meson build sudo ninja -C build install -## install from AUR +### from AUR please see [wlr-sunclock-git](https://aur.archlinux.org/packages/wlr-sunclock-git/) +### from OBS + +please see [X11:Wayland/wlr-sunclock](https://build.opensuse.org/package/show/X11:Wayland/wlr-sunclock) for the openSUSE package + ## cli args -a, --anchors=ANCHORS window anchors (see below) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wlr-sunclock-0.1.0/include/version.h new/wlr-sunclock-0.1.1/include/version.h --- old/wlr-sunclock-0.1.0/include/version.h 2020-08-06 23:15:45.000000000 +0200 +++ new/wlr-sunclock-0.1.1/include/version.h 2020-08-07 18:40:10.000000000 +0200 @@ -1,6 +1,6 @@ #ifndef SUNCLOCK_VERSION_H #define SUNCLOCK_VERSION_H -#define SUNCLOCK_VERSION "v0.1.0" +#define SUNCLOCK_VERSION "v0.1.1" #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wlr-sunclock-0.1.0/meson.build new/wlr-sunclock-0.1.1/meson.build --- old/wlr-sunclock-0.1.0/meson.build 2020-08-06 23:15:45.000000000 +0200 +++ new/wlr-sunclock-0.1.1/meson.build 2020-08-07 18:40:10.000000000 +0200 @@ -1,9 +1,9 @@ project( 'wlr-sunclock', 'c', -meson_version : '>=0.47.0', +meson_version : '>=0.46.0', default_options : ['warning_level=3', 'werror=true'], -version : 'v0.1.0' +version : 'v0.1.1' ) cc = meson.get_compiler('c') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wlr-sunclock-0.1.0/release new/wlr-sunclock-0.1.1/release --- old/wlr-sunclock-0.1.0/release 2020-08-06 23:15:45.000000000 +0200 +++ new/wlr-sunclock-0.1.1/release 2020-08-07 18:40:10.000000000 +0200 @@ -51,12 +51,13 @@ EOL # create and tag single commit with a change to the version file -git commit --all --file - << EOL +git commit --all --file - <<EOL bump to $new_version generated by \`release\` script in project root EOL -git tag "$new_version" +# tag and remind 😵 +git tag "$new_version" echo "commited and tagged" echo "remember to push tags" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wlr-sunclock-0.1.0/src/gui.c new/wlr-sunclock-0.1.1/src/gui.c --- old/wlr-sunclock-0.1.0/src/gui.c 2020-08-06 23:15:45.000000000 +0200 +++ new/wlr-sunclock-0.1.1/src/gui.c 2020-08-07 18:40:10.000000000 +0200 @@ -6,8 +6,9 @@ static void sunclock_gui_fill_wtab(short* wtab, int width, int height, int* gmt_position) { - time_t t = time(NULL); - struct tm* gm_time = gmtime(&t); + time_t raw_time; + time(&raw_time); + struct tm* gm_time = gmtime(&raw_time); double jt, sunra, sundec, sunrv, sunlong; jt = astro_gm_time_to_julian_astro(gm_time); @@ -43,10 +44,12 @@ cairo_paint(cr); g_object_unref(image_scaled); - GtkStyleContext* context = gtk_widget_get_style_context(widget); - GtkStateFlags state = gtk_style_context_get_state(context); GdkRGBA colour; - gtk_style_context_get_color(context, state, &colour); + colour.red = 0.933333; + colour.green = 0.933333; + colour.blue = 0.925490; + colour.alpha = 1.0; + gdk_cairo_set_source_rgba(cr, &colour); // calculate the illuminated area
