Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Wed, 05 Feb 2025 23:45:21 UTC
Commit: 1966593193dffdd3d4c908b6fea42bffd7318c66
https://github.com/geany/geany/commit/1966593193dffdd3d4c908b6fea42bffd7318…
Log Message:
-----------
Fix clang warning in regex.h
Without this patch, clang generates warnings like the below
because of the clash with the __used attribute:
./gnu_regex/regex.h:367:3: warning: declaration does not declare anything [-Wmissing-declarations]
367 | unsigned long int __REPB_PREFIX(used);
| ^~~~~~~~~~~~~~~~~
CC optlib/meson.lo
Patch provided by Colomban Wendling, thanks!
Modified Paths:
--------------
ctags/gnu_regex/regex.h
Modified: ctags/gnu_regex/regex.h
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -350,7 +350,7 @@ typedef enum
#ifdef __USE_GNU
# define __REPB_PREFIX(name) name
#else
-# define __REPB_PREFIX(name) __##name
+# define __REPB_PREFIX(name) __priv_##name
#endif
struct re_pattern_buffer
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Wed, 05 Feb 2025 23:36:37 UTC
Commit: 265e32cc805d84db2f73b36325979c93ed791686
https://github.com/geany/geany/commit/265e32cc805d84db2f73b36325979c93ed791…
Log Message:
-----------
Avoid warning about unused variable when using quartz
Modified Paths:
--------------
src/socket.c
Modified: src/socket.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -289,14 +289,14 @@ gint socket_init(gint argc, gchar **argv, G_GNUC_UNUSED gushort socket_port, con
#else
gchar *display_name = NULL;
const gchar *hostname = g_get_host_name();
- GdkDisplay *display = gdk_display_get_default();
gchar *p;
/* On OS X with quartz backend gdk_display_get_name() returns hostname
* using [NSHost currentHost] (it could return more or less whatever string
* as display name is a X11 specific thing). This call can lead to network
* query and block for several seconds so better skip it. */
#ifndef GDK_WINDOWING_QUARTZ
+ GdkDisplay *display = gdk_display_get_default();
if (display != NULL)
display_name = g_strdup(gdk_display_get_name(display));
#endif
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Tue, 14 Jan 2025 21:21:24 UTC
Commit: 101bd516de3da8f3e47056aa72cdbbaf5685fa60
https://github.com/geany/geany/commit/101bd516de3da8f3e47056aa72cdbbaf5685f…
Log Message:
-----------
Workaround incorrect scaling of "reverse arrow" cursor under Windows and HiDPI screens
The GDK_RIGHT_PTR cursor is provided only by GTK - there's no native
Windows cursor of this shape so GTK renders the cursor by itself from
the cursor theme bitmap. The code doing this is apparently buggy and
does not take into account HiDPI screens so on a screen with 300% scaling,
the cursor is 3x smaller.
Workaround this by using GDK_HAND2 which maps to a native Windows cursor
that doesn't suffer from this problem.
See https://sourceforge.net/p/scintilla/bugs/2460/
Modified Paths:
--------------
scintilla/gtk/PlatGTK.cxx
Modified: scintilla/gtk/PlatGTK.cxx
6 lines changed, 6 insertions(+), 0 deletions(-)
===================================================================
@@ -1346,7 +1346,13 @@ void Window::SetCursor(Cursor curs) {
gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_HAND2);
break;
case Cursor::reverseArrow:
+#ifdef G_OS_WIN32
+ // GDK_RIGHT_PTR is scaled incorrectly under Windows with HiDPI screens (GTK 3.24);
+ // GDK_HAND2 is mapped to a native Windows cursor by GTK
+ gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_HAND2);
+#else
gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_RIGHT_PTR);
+#endif
break;
default:
gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_LEFT_PTR);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).