Lines 35-50
Link Here
|
35 |
: Gtk::HBox(GTK_HBOX(g_object_new(get_type(), (char*)0))) |
35 |
: Gtk::HBox(GTK_HBOX(g_object_new(get_type(), (char*)0))) |
36 |
{ |
36 |
{ |
37 |
gnome_date_edit_construct(gobj(), the_time, |
37 |
gnome_date_edit_construct(gobj(), the_time, |
38 |
static_cast<GnomeDateEditFlags>( |
38 |
(GnomeDateEditFlags)( |
39 |
(show_time ? DATE_EDIT_SHOW_TIME : static_cast<DateEditFlags>(0)) |
39 |
(show_time ? DATE_EDIT_SHOW_TIME : (DateEditFlags)0) |
40 |
| (use_24_format ? DATE_EDIT_24_HR : static_cast<DateEditFlags>(0)) ) ); |
40 |
| (use_24_format ? DATE_EDIT_24_HR : (DateEditFlags)0) ) ); |
41 |
} |
41 |
} |
42 |
|
42 |
|
43 |
|
43 |
|
44 |
DateEdit::DateEdit(time_t the_time, DateEditFlags flags) |
44 |
DateEdit::DateEdit(time_t the_time, DateEditFlags flags) |
45 |
: Gtk::HBox(GTK_HBOX(g_object_new(get_type(), (char*)0))) |
45 |
: Gtk::HBox(GTK_HBOX(g_object_new(get_type(), (char*)0))) |
46 |
{ |
46 |
{ |
47 |
gnome_date_edit_construct(gobj(), the_time, static_cast<GnomeDateEditFlags>(flags)); |
47 |
gnome_date_edit_construct(gobj(), the_time, (GnomeDateEditFlags)flags); |
48 |
} |
48 |
} |