From dbd93b22ec707f1d749e06b40947be77142ed85f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Thu, 27 Oct 2011 20:56:30 +0000 Subject: [PATCH] added method to raise main window --- src/ui.c | 10 ++++++++-- src/ui.h | 3 +++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ui.c b/src/ui.c index ff5d8b1..99fd494 100644 --- a/src/ui.c +++ b/src/ui.c @@ -281,9 +281,9 @@ void ui_window_create(struct ui_psensor *ui) if (ui->config->hide_on_startup) gtk_widget_show_all(ui->main_box); else - gtk_widget_show_all(ui->main_window); + ui_window_show(ui); #else - gtk_widget_show_all(ui->main_window); + ui_window_show(ui); #endif } @@ -351,3 +351,9 @@ void ui_window_update(struct ui_psensor *ui) else menu_bar_show(1, ui); } + +void ui_window_show(struct ui_psensor *ui) +{ + gtk_widget_show_all(ui->main_window); + +} diff --git a/src/ui.h b/src/ui.h index 5de8448..f6559cd 100644 --- a/src/ui.h +++ b/src/ui.h @@ -79,6 +79,9 @@ struct ui_psensor { */ void ui_window_update(struct ui_psensor *); +/* Show the main psensor window. */ +void ui_window_show(struct ui_psensor *); + /* Must be called to terminate Psensor UI. */ void ui_psensor_quit(struct ui_psensor *ui); -- 2.7.4