summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2020-12-18 08:24:25 +0000
committerJavier Jardón <jjardon@gnome.org>2020-12-18 08:28:41 +0000
commitc0c1ca9b7aa9ec0faf3ecd00fc7baceeb6c30860 (patch)
treefbcf5f1a5ac66191327b937b2baa11a2fea51bec /src/util.c
parentUpdate Portuguese translation (diff)
downloadzenity-c0c1ca9b7aa9ec0faf3ecd00fc7baceeb6c30860.tar.gz
zenity-c0c1ca9b7aa9ec0faf3ecd00fc7baceeb6c30860.tar.bz2
zenity-c0c1ca9b7aa9ec0faf3ecd00fc7baceeb6c30860.zip
Fix some compilations warnings
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/util.c b/src/util.c
index 0c101866..2887fd96 100644
--- a/src/util.c
+++ b/src/util.c
@@ -153,7 +153,7 @@ zenity_util_fill_file_buffer (GtkTextBuffer *buffer, const gchar *filename) {
gtk_text_buffer_insert (buffer, &iter, buf, leftover - buf);
remaining = (buf + remaining + count) - leftover;
- g_memmove (buf, leftover, remaining);
+ memmove (buf, leftover, remaining);
if (remaining > 6 || count < to_read)
break;
@@ -326,11 +326,12 @@ transient_get_xterm (void) {
Window wid = strtoul (wid_str, &wid_str_end, 10);
if (*wid_str != '\0' && *wid_str_end == '\0' && wid != 0) {
XWindowAttributes attrs;
- gdk_error_trap_push ();
+ GdkDisplay *display;
+ display = gdk_display_get_default ();
+ gdk_x11_display_error_trap_push (display);
ret = XGetWindowAttributes (
GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), wid, &attrs);
- gdk_flush ();
- if (gdk_error_trap_pop () != 0 || ret == 0) {
+ if (gdk_x11_display_error_trap_pop (display) != 0 || ret == 0) {
return None;
}
return wid;
bgstack15