summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-editable-label.c2
-rw-r--r--eel/eel-gdk-pixbuf-extensions.c4
-rw-r--r--eel/eel-string.c4
3 files changed, 7 insertions, 3 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index c5802bf2..54ed3087 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -2079,7 +2079,7 @@ eel_editable_label_select_region_index (EelEditableLabel *label,
{
GtkTargetList *list;
GtkTargetEntry *targets;
- guint n_targets;
+ gint n_targets;
list = gtk_target_list_new (NULL, 0);
gtk_target_list_add_text_targets (list, 0);
diff --git a/eel/eel-gdk-pixbuf-extensions.c b/eel/eel-gdk-pixbuf-extensions.c
index 6870e932..b4cd9394 100644
--- a/eel/eel-gdk-pixbuf-extensions.c
+++ b/eel/eel-gdk-pixbuf-extensions.c
@@ -51,7 +51,7 @@ struct EelPixbufLoadHandle
EelPixbufLoadCallback callback;
gpointer callback_data;
GdkPixbufLoader *loader;
- char buffer[LOAD_BUFFER_SIZE];
+ guchar buffer[LOAD_BUFFER_SIZE];
};
GdkPixbuf *
@@ -112,7 +112,7 @@ GdkPixbuf *
eel_gdk_pixbuf_load_from_stream_at_size (GInputStream *stream,
int size)
{
- char buffer[LOAD_BUFFER_SIZE];
+ guchar buffer[LOAD_BUFFER_SIZE];
gssize bytes_read;
GdkPixbufLoader *loader;
GdkPixbuf *pixbuf;
diff --git a/eel/eel-string.c b/eel/eel-string.c
index fd733f88..3a8f2581 100644
--- a/eel/eel-string.c
+++ b/eel/eel-string.c
@@ -988,7 +988,11 @@ retry_atomic_decrement:
{
G_LOCK (unique_ref_strs);
/* Need to recheck after taking lock to avoid races with _get_unique() */
+#if !GLIB_CHECK_VERSION (2, 30, 0)
if (g_atomic_int_exchange_and_add (count, -1) == 0x80000001)
+#else
+ if (g_atomic_int_add (count, -1) == 0x80000001)
+#endif
{
g_hash_table_remove (unique_ref_strs, (char *)str);
g_free ((char *)count);