summaryrefslogtreecommitdiff
path: root/font-viewer/font-model.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-01-08 20:18:52 +0100
committerraveit65 <[email protected]>2017-02-17 12:28:22 +0100
commit82efaeeacd2da297869fca0499c1561ea849c49b (patch)
tree01d01a8c93b720cff4efb362a8c442c5c07393e0 /font-viewer/font-model.c
parent586e816a503f9b24e5d864e8b514833065697f22 (diff)
downloadmate-control-center-82efaeeacd2da297869fca0499c1561ea849c49b.tar.bz2
mate-control-center-82efaeeacd2da297869fca0499c1561ea849c49b.tar.xz
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
Diffstat (limited to 'font-viewer/font-model.c')
-rw-r--r--font-viewer/font-model.c6
1 files changed, 3 insertions, 3 deletions
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