[Xfce4-commits] [apps/ristretto] 01/01: Fix Glib-Critical errors to stdout
noreply at xfce.org
noreply at xfce.org
Sun Apr 7 23:31:06 CEST 2019
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/ristretto.
commit b2e6b0563bf04ec68b11aea5761cd9d5f8578f31
Author: Igor <f2404 at yandex.ru>
Date: Sun Apr 7 17:29:53 2019 -0400
Fix Glib-Critical errors to stdout
Source ID X was not found when attempting to remove it
Bug #15268
---
src/main_window.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/main_window.c b/src/main_window.c
index 9cbb580..44c43fe 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -167,7 +167,9 @@ cb_rstto_thumbnailer_ready(
gpointer user_data);
static gboolean
-rstto_window_save_geometry_timer (gpointer user_data);
+rstto_main_window_save_geometry_timer (gpointer user_data);
+static void
+rstto_main_window_save_geometry_timer_destroy (gpointer user_data);
static void
rstto_main_window_image_list_iter_changed (RsttoMainWindow *window);
@@ -1960,7 +1962,7 @@ rstto_main_window_update_buttons (RsttoMainWindow *window)
}
static gboolean
-rstto_window_save_geometry_timer (gpointer user_data)
+rstto_main_window_save_geometry_timer (gpointer user_data)
{
GtkWindow *window = GTK_WINDOW(user_data);
gint width = 0;
@@ -1987,6 +1989,11 @@ rstto_window_save_geometry_timer (gpointer user_data)
return FALSE;
}
+static void
+rstto_main_window_save_geometry_timer_destroy (gpointer user_data)
+{
+ RSTTO_MAIN_WINDOW (user_data)->priv->window_save_geometry_timer_id = 0;
+}
static void
rstto_main_window_set_thumbnail_size (
@@ -2757,15 +2764,14 @@ cb_rstto_main_window_configure_event (GtkWidget *widget, GdkEventConfigure *even
{
g_source_remove (window->priv->window_save_geometry_timer_id);
}
- window->priv->window_save_geometry_timer_id = 0;
/* check if we should schedule another save timer */
if (gtk_widget_get_visible (GTK_WIDGET (window)))
{
/* save the geometry one second after the last configure event */
- window->priv->window_save_geometry_timer_id = g_timeout_add (
- 1000, rstto_window_save_geometry_timer,
- widget);
+ window->priv->window_save_geometry_timer_id = g_timeout_add_seconds_full (
+ G_PRIORITY_DEFAULT, 1, rstto_main_window_save_geometry_timer,
+ widget, rstto_main_window_save_geometry_timer_destroy);
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list