summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-undostack-manager.c
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2013-04-10 13:26:43 -0500
committerScott Balneaves <[email protected]>2013-04-10 13:26:43 -0500
commita106e6d11f100f29191f9642f0b142a1b14f3801 (patch)
tree905bca1c8920e0f12510ccb86ca3a2241fc79194 /libcaja-private/caja-undostack-manager.c
parentb7a3827fe65212bf9a924101aba93e0d18a4265d (diff)
downloadcaja-a106e6d11f100f29191f9642f0b142a1b14f3801.tar.bz2
caja-a106e6d11f100f29191f9642f0b142a1b14f3801.tar.xz
Typo on deprecations webpage.
Diffstat (limited to 'libcaja-private/caja-undostack-manager.c')
-rw-r--r--libcaja-private/caja-undostack-manager.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/libcaja-private/caja-undostack-manager.c b/libcaja-private/caja-undostack-manager.c
index 8c26c55b..5686abfa 100644
--- a/libcaja-private/caja-undostack-manager.c
+++ b/libcaja-private/caja-undostack-manager.c
@@ -100,7 +100,7 @@ struct _CajaUndoStackManagerPrivate
GQueue *stack;
guint undo_levels;
guint index;
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
GMutex mutex; /* Used to protect access to stack (because of async file ops) */
#else
GMutex *mutex; /* Used to protect access to stack (because of async file ops) */
@@ -273,7 +273,7 @@ caja_undostack_manager_init (CajaUndoStackManager * self)
/* Initialize private fields */
priv->stack = g_queue_new ();
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_init (&priv->mutex);
#else
priv->mutex = g_mutex_new ();
@@ -293,7 +293,7 @@ caja_undostack_manager_dispose (GObject * object)
if (priv->dispose_has_run)
return;
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_lock (&priv->mutex);
#else
g_mutex_lock (priv->mutex);
@@ -302,7 +302,7 @@ caja_undostack_manager_dispose (GObject * object)
/* Free each undoable action in the stack and the stack itself */
undostack_dispose_all (priv->stack);
g_queue_free (priv->stack);
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_unlock (&priv->mutex);
g_mutex_clear (&priv->mutex);
#else
@@ -339,13 +339,13 @@ caja_undostack_manager_set_property (GObject * object, guint prop_id,
new_undo_levels = g_value_get_uint (value);
if (new_undo_levels > 0 && (priv->undo_levels != new_undo_levels)) {
priv->undo_levels = new_undo_levels;
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_lock (&priv->mutex);
#else
g_mutex_lock (priv->mutex);
#endif
stack_fix_size (priv);
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_unlock (&priv->mutex);
#else
g_mutex_unlock (priv->mutex);
@@ -436,7 +436,7 @@ caja_undostack_manager_redo (CajaUndoStackManager * manager,
char *puri;
CajaUndoStackManagerPrivate *priv = manager->priv;
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_lock (&priv->mutex);
#else
g_mutex_lock (priv->mutex);
@@ -450,7 +450,7 @@ caja_undostack_manager_redo (CajaUndoStackManager * manager,
action->locked = TRUE;
}
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_unlock (&priv->mutex);
#else
g_mutex_unlock (priv->mutex);
@@ -585,7 +585,7 @@ caja_undostack_manager_undo (CajaUndoStackManager * manager,
char *new_name;
CajaUndoStackManagerPrivate *priv = manager->priv;
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_lock (&priv->mutex);
#else
g_mutex_lock (priv->mutex);
@@ -597,7 +597,7 @@ caja_undostack_manager_undo (CajaUndoStackManager * manager,
action->locked = TRUE;
}
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_unlock (&priv->mutex);
#else
g_mutex_unlock (priv->mutex);
@@ -757,7 +757,7 @@ caja_undostack_manager_add_action (CajaUndoStackManager * manager,
action->manager = manager;
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_lock (&priv->mutex);
#else
g_mutex_lock (priv->mutex);
@@ -765,7 +765,7 @@ caja_undostack_manager_add_action (CajaUndoStackManager * manager,
stack_push_action (priv, action);
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_unlock (&priv->mutex);
#else
g_mutex_unlock (priv->mutex);
@@ -825,7 +825,7 @@ caja_undostack_manager_trash_has_emptied (CajaUndoStackManager *
/* Clear actions from the oldest to the newest move to trash */
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_lock (&priv->mutex);
#else
g_mutex_lock (priv->mutex);
@@ -855,7 +855,7 @@ caja_undostack_manager_trash_has_emptied (CajaUndoStackManager *
}
g_queue_free (tmp_stack);
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_unlock (&priv->mutex);
#else
g_mutex_unlock (priv->mutex);
@@ -1922,7 +1922,7 @@ do_menu_update (CajaUndoStackManager * manager)
CajaUndoStackManagerPrivate *priv = manager->priv;
CajaUndoStackMenuData *data = g_slice_new0 (CajaUndoStackMenuData);
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_lock (&priv->mutex);
#else
g_mutex_lock (priv->mutex);
@@ -1937,7 +1937,7 @@ do_menu_update (CajaUndoStackManager * manager)
data->redo_label = get_redo_label (action);
data->redo_description = get_redo_description (action);
-#if GLIB_CHECK_VERSION(3, 32, 0)
+#if GLIB_CHECK_VERSION(2, 32, 0)
g_mutex_unlock (&priv->mutex);
#else
g_mutex_unlock (priv->mutex);