aboutsummaryrefslogtreecommitdiffstats
path: root/domain.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-08-20 14:44:51 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-08-20 14:44:51 +0200
commit7a7ffc74974ec4c4b2afef762365dfdb4cf59cc2 (patch)
treed5783f88d8fac109e986c6f0ad7a8d05ea768394 /domain.c
parente9b7cd8485539db84d3b37fce828d8c051a0d8a4 (diff)
downloadvconsole-7a7ffc74974ec4c4b2afef762365dfdb4cf59cc2.tar.gz
log option: gui windup
Diffstat (limited to 'domain.c')
-rw-r--r--domain.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/domain.c b/domain.c
index 8215057..b88c00c 100644
--- a/domain.c
+++ b/domain.c
@@ -30,6 +30,9 @@ static void domain_foreach(struct vconsole_window *win,
struct vconsole_domain *dom;
int rc;
+ if (model == NULL)
+ return;
+
rc = gtk_tree_model_get_iter_first(model, &host);
while (rc) {
rc = gtk_tree_model_iter_nth_child(model, &guest, &host, 0);
@@ -65,11 +68,21 @@ static void domain_configure_vte(struct vconsole_domain *dom)
vte_terminal_set_color_background(vte, &bg);
}
+static void domain_configure_logging(struct vconsole_domain *dom)
+{
+ /* TODO */
+}
+
void domain_configure_all_vtes(struct vconsole_window *win)
{
domain_foreach(win, domain_configure_vte);
}
+void domain_configure_all_logging(struct vconsole_window *win)
+{
+ domain_foreach(win, domain_configure_logging);
+}
+
static void domain_update_status(struct vconsole_domain *dom)
{
char line[128];
@@ -378,6 +391,7 @@ void domain_activate(struct vconsole_domain *dom)
gtk_widget_show_all(dom->vbox);
gtk_notebook_set_current_page(GTK_NOTEBOOK(win->notebook), page);
domain_configure_vte(dom);
+ domain_configure_logging(dom);
domain_update_status(dom);
}