added method to raise main window
authorJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 27 Oct 2011 20:56:30 +0000 (20:56 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 27 Oct 2011 20:56:30 +0000 (20:56 +0000)
src/ui.c
src/ui.h

index ff5d8b1..99fd494 100644 (file)
--- 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);
+
+}
index 5de8448..f6559cd 100644 (file)
--- 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);