code styling
authorJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 27 Oct 2011 20:35:27 +0000 (20:35 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 27 Oct 2011 20:35:27 +0000 (20:35 +0000)
src/ui.h

index 9410274..5de8448 100644 (file)
--- a/src/ui.h
+++ b/src/ui.h
@@ -1,22 +1,21 @@
 /*
-    Copyright (C) 2010-2011 jeanfi@gmail.com
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-    02110-1301 USA
-*/
-
+ * Copyright (C) 2010-2011 jeanfi@gmail.com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
 #ifndef _PSENSOR_UI_H_
 #define _PSENSOR_UI_H_
 
@@ -45,15 +44,15 @@ struct ui_psensor {
        GtkWidget *menu_bar;
 
        /*
-          The main vertical box, top contains the menubar, bottom
-          contains the sensor_box.
-       */
+        * The main vertical box, top contains the menubar, bottom
+        * contains the sensor_box.
+        */
        GtkWidget *main_box;
 
        /*
-          The box which contains the sensors graph and the sensors
-          information list.
-       */
+        * The box which contains the sensors graph and the sensors
+        * information list.
+        */
        GtkWidget *sensor_box;
 
        int graph_update_interval;
@@ -61,9 +60,7 @@ struct ui_psensor {
        GMutex *sensors_mutex;
 
 #ifdef HAVE_LIBNOTIFY
-       /*
-          Time of the last notification
-        */
+       /* Time of the last notification */
        struct timeval *notification_last_time;
 #endif
 
@@ -73,23 +70,19 @@ struct ui_psensor {
 };
 
 /*
-  Update the window according to the configuration.
-
-  Creates or re-creates the sensor_box according to the position of
-  the list of sensors in the configuration.
-
-  Show or hide the menu bar.
-*/
* Update the window according to the configuration.
+ *
* Creates or re-creates the sensor_box according to the position of
* the list of sensors in the configuration.
+ *
* Show or hide the menu bar.
+ */
 void ui_window_update(struct ui_psensor *);
 
-/*
-  Must be called to terminate Psensor UI.
-*/
+/* Must be called to terminate Psensor UI. */
 void ui_psensor_quit(struct ui_psensor *ui);
 
-/*
-  Creates the main GTK window
-*/
+/* Creates the main GTK window */
 void ui_window_create(struct ui_psensor *ui);
 
 void ui_menu_bar_show(unsigned int show, struct ui_psensor *ui);