author | Michael Krelin <hacker@klever.net> | 2009-08-09 20:08:28 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2009-08-09 20:08:28 (UTC) |
commit | 556f6f8ade5643b5ad798f4b0077843866c1b461 (patch) (unidiff) | |
tree | bad38ed74352e4c80a509476053540286e4e6582 /src | |
parent | a141dd88e782636ca6894939a019528d5d46518a (diff) | |
download | napkin-556f6f8ade5643b5ad798f4b0077843866c1b461.zip napkin-556f6f8ade5643b5ad798f4b0077843866c1b461.tar.gz napkin-556f6f8ade5643b5ad798f4b0077843866c1b461.tar.bz2 |
made a compiler a bit happier
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | src/napkin.cc | 2 | ||||
-rw-r--r-- | src/widgets.cc | 8 |
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 | |||
@@ -46,13 +46,13 @@ class napkin_ui : public Gtk::Window { | |||
46 | napkin::db_t db; | 46 | napkin::db_t db; |
47 | Glib::RefPtr<Gtk::Action> a_remove; | 47 | Glib::RefPtr<Gtk::Action> a_remove; |
48 | 48 | ||
49 | napkin_ui() | 49 | napkin_ui() |
50 | : w_history(db) | 50 | : w_history(db) |
51 | { | 51 | { |
52 | static char *ui_info = | 52 | static const char *ui_info = |
53 | "<ui>" | 53 | "<ui>" |
54 | "<menubar name='menu_bar'>" | 54 | "<menubar name='menu_bar'>" |
55 | "<menu action='menu_sleep'>" | 55 | "<menu action='menu_sleep'>" |
56 | #ifndef NDEBUG | 56 | #ifndef NDEBUG |
57 | "<menu action='menu_sleep_add'>" | 57 | "<menu action='menu_sleep_add'>" |
58 | #endif | 58 | #endif |
diff --git a/src/widgets.cc b/src/widgets.cc index ea85bc8..61c7da9 100644 --- a/src/widgets.cc +++ b/src/widgets.cc | |||
@@ -3,16 +3,16 @@ | |||
3 | 3 | ||
4 | namespace napkin { | 4 | namespace napkin { |
5 | namespace gtk { | 5 | namespace gtk { |
6 | 6 | ||
7 | hypnoinfo_t::hypnoinfo_t() | 7 | hypnoinfo_t::hypnoinfo_t() |
8 | : w_upper(4,3,false/*homogeneous*/), | 8 | : w_upper(4,3,false/*homogeneous*/), |
9 | lc_tobed("To bed:",0.5,0.5), | 9 | lc_tobed("To bed:",0.5f,0.5f), |
10 | lc_timeline("Sleep timeline:",0.5,0.5), | 10 | lc_timeline("Sleep timeline:",0.5f,0.5f), |
11 | lc_alarm("Alarm:",0.5,0.5), lc_window("Window:",0.5,0.5), | 11 | lc_alarm("Alarm:",0.5f,0.5f), lc_window("Window:",0.5f,0.5f), |
12 | l_data_a("",0.9,0.5) | 12 | l_data_a("",0.9f,0.5f) |
13 | { | 13 | { |
14 | add(l_date); | 14 | add(l_date); |
15 | add(l_hseparator); | 15 | add(l_hseparator); |
16 | w_upper.set_col_spacings(5); | 16 | w_upper.set_col_spacings(5); |
17 | w_upper.attach(lc_tobed,0,1,0,1, Gtk::SHRINK); | 17 | w_upper.attach(lc_tobed,0,1,0,1, Gtk::SHRINK); |
18 | w_upper.attach(lc_timeline,1,2,0,1, Gtk::SHRINK); | 18 | w_upper.attach(lc_timeline,1,2,0,1, Gtk::SHRINK); |