summaryrefslogtreecommitdiff
path: root/savers/gste-slideshow.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-02 18:55:45 +0200
committerinfirit <[email protected]>2014-07-02 19:19:59 +0200
commitae84d24ec2557014212487164c1b4fce615a8203 (patch)
treead034a69e44bbb8a22718b551aafe15e10b425a1 /savers/gste-slideshow.c
parent19b8391037abcfbae0de67a40b77e6eff2a8a8f4 (diff)
downloadmate-screensaver-ae84d24ec2557014212487164c1b4fce615a8203.tar.bz2
mate-screensaver-ae84d24ec2557014212487164c1b4fce615a8203.tar.xz
Don't use deprecated GLib threading API.
Diffstat (limited to 'savers/gste-slideshow.c')
-rw-r--r--savers/gste-slideshow.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/savers/gste-slideshow.c b/savers/gste-slideshow.c
index 61d6a19..4bc5dbb 100644
--- a/savers/gste-slideshow.c
+++ b/savers/gste-slideshow.c
@@ -1062,8 +1062,6 @@ set_colormap (GtkWidget *widget)
static void
gste_slideshow_init (GSTESlideshow *show)
{
- GError *error;
-
show->priv = GSTE_SLIDESHOW_GET_PRIVATE (show);
show->priv->images_location = g_strdup (DEFAULT_IMAGES_LOCATION);
@@ -1071,15 +1069,7 @@ gste_slideshow_init (GSTESlideshow *show)
show->priv->op_q = g_async_queue_new ();
show->priv->results_q = g_async_queue_new ();
- error = NULL;
- show->priv->load_thread = g_thread_create ((GThreadFunc)load_threadfunc, show->priv->op_q, FALSE, &error);
- if (show->priv->load_thread == NULL)
- {
- g_error ("Could not create a thread to load images: %s",
- error->message);
- g_error_free (error);
- exit (-1);
- }
+ g_thread_new ("loadthread", (GThreadFunc)load_threadfunc, show->priv->op_q);
#if GTK_CHECK_VERSION (3, 0, 0)
set_visual (GTK_WIDGET (show));