[gnome-font-viewer/gnome-3-6] font-model: emit config-changed when reloading the font list
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-font-viewer/gnome-3-6] font-model: emit config-changed when reloading the font list
- Date: Mon, 26 Nov 2012 18:57:02 +0000 (UTC)
commit 190801f1bbaa5a50ab7b7f4dc9455f6e589f962b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Nov 26 13:42:27 2012 -0500
font-model: emit config-changed when reloading the font list
This ensures the "Install" button uses the correct state when installing
a new font.
src/font-model.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/font-model.c b/src/font-model.c
index d9eb576..6cb2646 100644
--- a/src/font-model.c
+++ b/src/font-model.c
@@ -343,6 +343,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);
@@ -489,10 +491,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]