From 82efaeeacd2da297869fca0499c1561ea849c49b Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 8 Jan 2017 20:18:52 +0100 Subject: Fontviewer: font-model, emit config-changed when reloading the font list This ensures the "Install" button uses the correct state when installing a new font. taken from: https://git.gnome.org/browse/gnome-font-viewer/commit/?id=bf15ae0 --- font-viewer/font-model.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'font-viewer') diff --git a/font-viewer/font-model.c b/font-viewer/font-model.c index cbca3078..0f3d2871 100644 --- a/font-viewer/font-model.c +++ b/font-viewer/font-model.c @@ -345,6 +345,8 @@ font_infos_loaded (gpointer user_data) thumb_infos = g_list_prepend (thumb_infos, thumb_info); } + g_signal_emit (self, signals[CONFIG_CHANGED], 0); + g_io_scheduler_push_job (ensure_thumbnails_job, thumb_infos, NULL, G_PRIORITY_DEFAULT, NULL); @@ -491,10 +493,8 @@ file_monitor_changed_cb (GFileMonitor *monitor, if (event == G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT || event == G_FILE_MONITOR_EVENT_DELETED || - event == G_FILE_MONITOR_EVENT_CREATED) { + event == G_FILE_MONITOR_EVENT_CREATED) ensure_font_list (self); - g_signal_emit (self, signals[CONFIG_CHANGED], 0); - } } static void -- cgit v1.2.1