Menu

Code Commit Log


Commit Date  
[c3ab2f] by Tim Brooks Tim Brooks , pushed by Alexandru Csete Alexandru Csete

Fix bad timerid null value

timerid is unsigned, only 0 is an invalid GSource ID.

2020-05-24 21:39:53 Tree
[a0993b] by Alexandru Csete Alexandru Csete

Updatre travis builds to Ubuntu 16.04

2020-12-12 18:19:53 Tree
[b1576f] by Alexandru Csete Alexandru Csete

Update about info

2020-12-12 09:48:58 Tree
[3904c3] by Alexandru Csete Alexandru Csete

Update authors file

2020-12-12 09:47:34 Tree
[e027e7] by Yasushi SHOJI Yasushi SHOJI , pushed by Alexandru Csete Alexandru Csete

src/main: Fix GdkMonitor acquisition failure

On a Wayland system, we can't get the primary monitor due to protocol
shortage[1]. This caused gpredict to print a critical message like:

Gdk-CRITICAL **: 02:03:59.960: gdk_monitor_get_workarea: assertion
'GDK_IS_MONITOR (monitor)' failed

Because it failed get the primary monitor, `w` and `h` were just plain
garbage.

Instead of trying to get the primary monitor, this commit gets the
monitor the window is on. This commit has been tested both on a
Wayland and a X11 session.

https://gitlab.gnome.org/GNOME/gtk/-/issues/1028

Signed-off-by: Yasushi SHOJI <yasushi.shoji@...>

2020-12-02 17:11:14 Tree
[83a518] by Yasushi SHOJI Yasushi SHOJI , pushed by Alexandru Csete Alexandru Csete

Replace deprecated g_get_current_time() and GTimeVal

Replace deprecated g_get_current_time() and GTimeVal with newer
g_get_real_time(), or GDateTime. All functions used in this commit
have been available since 2.26.

- since 2.28
- g_get_real_time()
- since 2.26
- g_date_time_new_local()
- g_date_time_format()

This closes #237

Signed-off-by: Yasushi SHOJI <yasushi.shoji@...>

2020-12-01 09:01:04 Tree
[9e6517] by Yasushi SHOJI Yasushi SHOJI , pushed by Alexandru Csete Alexandru Csete

src/gtk-*.c: Fix warnings "cast between incompatible function types"

GClassInitFunc() and GInstanceInitFunc() of GTypeInfo takes gpointer
class_data and gpointer g_class as the second argument, respectively.
We don't use them but the current GCC generates warnings like the
followings:

gtk-polar-plot.c: In function ‘gtk_polar_plot_get_type’:
gtk-polar-plot.c:109:13: warning: cast between incompatible
function types from ‘void (*)(GtkPolarPlotClass *)’ {aka
‘void (*)(struct _GtkPolarPlotClass *)’} to
‘void (*)(void *, void *)’ [-Wcast-function-type]
109 | (GClassInitFunc) gtk_polar_plot_class_init,
| ^

Add the second arguments to all functions and mark them unused by
casting with void.

Signed-off-by: Yasushi SHOJI <yasushi.shoji@...>

2020-12-01 07:59:25 Tree
[ceddd7] by Yasushi SHOJI Yasushi SHOJI , pushed by Alexandru Csete Alexandru Csete

gitignore: Add GNU Global files

Add files generated by GNU Global.

Signed-off-by: Yasushi SHOJI <yasushi.shoji@...>

2020-12-02 15:59:04 Tree
[2233b7] by Yasushi SHOJI Yasushi SHOJI , pushed by Alexandru Csete Alexandru Csete

gitignore: Add Emacs backup file

Add Emacs style backup files, which is a file name with trailing `~`.

Signed-off-by: Yasushi SHOJI <yasushi.shoji@...>

2020-12-01 07:55:38 Tree
[0f9012] by Yasushi SHOJI Yasushi SHOJI , pushed by Alexandru Csete Alexandru Csete

gtk-freq-knob: Fix a wrong return value type for update()

The first argument to g_idle_add() is a GSourceFunc, which is
declared

gboolean (*GSourceFunc) (gpointer user_data);

gtk_freq_knob_update() was somehow changed to return a pointer in the
commit 677ebd8826bce, but it should be gboolean.

Signed-off-by: Yasushi SHOJI <yasushi.shoji@...>

2020-12-01 07:44:56 Tree
Older >