summaryrefslogtreecommitdiff
path: root/logview/logview-manager.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-15 12:40:21 -0800
committerStefano Karapetsas <[email protected]>2012-11-15 12:40:21 -0800
commit0402d2a3d30ec2175eb3ea4cd2a801bf589d3388 (patch)
treec185cf295dfd1d80ffd4792088e179d001ae39a2 /logview/logview-manager.c
parent381d345351f1d3a0fb34bb125f1411af61ce67ad (diff)
parent1aa6079a48aacd1b495f6944848e3d432a4b115d (diff)
downloadmate-utils-0402d2a3d30ec2175eb3ea4cd2a801bf589d3388.tar.bz2
mate-utils-0402d2a3d30ec2175eb3ea4cd2a801bf589d3388.tar.xz
Merge pull request #7 from bhull2010/master
Port logview to Gsettings
Diffstat (limited to 'logview/logview-manager.c')
-rw-r--r--logview/logview-manager.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/logview/logview-manager.c b/logview/logview-manager.c
index c9f460e7..4b365e77 100644
--- a/logview/logview-manager.c
+++ b/logview/logview-manager.c
@@ -337,17 +337,21 @@ logview_manager_add_logs_from_name_list (LogviewManager *manager,
void
logview_manager_add_logs_from_names (LogviewManager *manager,
- char ** names)
+ char ** names,
+ const gchar *active)
{
int i;
+ gboolean set_active;
g_assert (LOGVIEW_IS_MANAGER (manager));
g_assert (op == NULL);
- op = multiple_creation_op_new (G_N_ELEMENTS (names));
+ op = multiple_creation_op_new (g_strv_length (names));
for (i = 0; names[i]; i++) {
- logview_manager_add_log_from_name (manager, names[i], FALSE, TRUE);
+ set_active = (active != NULL) && (!g_ascii_strcasecmp (active, names[i]));
+ logview_manager_add_log_from_name (manager, names[i], set_active,
+ TRUE);
}
}