summaryrefslogtreecommitdiffabout
path: root/src
Side-by-side diff
Diffstat (limited to 'src') (more/less context) (show whitespace changes)
-rw-r--r--src/napkin.cc2
-rw-r--r--src/widgets.cc8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/napkin.cc b/src/napkin.cc
index d9ba0c9..78f44f8 100644
--- a/src/napkin.cc
+++ b/src/napkin.cc
@@ -48,9 +48,9 @@ class napkin_ui : public Gtk::Window {
napkin_ui()
: w_history(db)
{
- static char *ui_info =
+ static const char *ui_info =
"<ui>"
"<menubar name='menu_bar'>"
"<menu action='menu_sleep'>"
#ifndef NDEBUG
diff --git a/src/widgets.cc b/src/widgets.cc
index ea85bc8..61c7da9 100644
--- a/src/widgets.cc
+++ b/src/widgets.cc
@@ -5,12 +5,12 @@ namespace napkin {
namespace gtk {
hypnoinfo_t::hypnoinfo_t()
: w_upper(4,3,false/*homogeneous*/),
- lc_tobed("To bed:",0.5,0.5),
- lc_timeline("Sleep timeline:",0.5,0.5),
- lc_alarm("Alarm:",0.5,0.5), lc_window("Window:",0.5,0.5),
- l_data_a("",0.9,0.5)
+ lc_tobed("To bed:",0.5f,0.5f),
+ lc_timeline("Sleep timeline:",0.5f,0.5f),
+ lc_alarm("Alarm:",0.5f,0.5f), lc_window("Window:",0.5f,0.5f),
+ l_data_a("",0.9f,0.5f)
{
add(l_date);
add(l_hseparator);
w_upper.set_col_spacings(5);