Cleanup some more gint -> bools.

git-svn-id: svn://localhost/ardour2/branches/3.0@9374 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-04-19 10:43:43 +00:00
parent 52eced2691
commit 28c53d0f92
3 changed files with 18 additions and 18 deletions

View File

@ -3557,7 +3557,7 @@ Editor::edit_controls_button_release (GdkEventButton* ev)
return true;
}
gint
bool
Editor::mouse_select_button_release (GdkEventButton* ev)
{
/* this handles just right-clicks */

View File

@ -774,9 +774,9 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
Glib::RefPtr<Gtk::ToggleAction> ruler_cd_marker_action;
bool no_ruler_shown_update;
gint ruler_button_press (GdkEventButton*);
gint ruler_button_release (GdkEventButton*);
gint ruler_mouse_motion (GdkEventMotion*);
bool ruler_button_press (GdkEventButton*);
bool ruler_button_release (GdkEventButton*);
bool ruler_mouse_motion (GdkEventMotion*);
bool ruler_scroll (GdkEventScroll* event);
Gtk::Widget * ruler_grabbed_widget;
@ -791,7 +791,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
void set_ruler_visible (RulerType, bool);
void toggle_ruler_visibility (RulerType rt);
void ruler_toggled (int);
gint ruler_label_button_release (GdkEventButton*);
bool ruler_label_button_release (GdkEventButton*);
void store_ruler_visibility ();
void restore_ruler_visibility ();
@ -1537,7 +1537,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
Gtkmm2ext::StatefulToggleButton internal_edit_button;
void toggle_internal_editing ();
gint mouse_select_button_release (GdkEventButton*);
bool mouse_select_button_release (GdkEventButton*);
Gtk::VBox automation_box;
Gtk::Button automation_mode_button;

View File

@ -216,11 +216,11 @@ Editor::ruler_scroll (GdkEventScroll* event)
}
gint
bool
Editor::ruler_button_press (GdkEventButton* ev)
{
if (_session == 0) {
return FALSE;
return false;
}
// jlc: grab ev->window ?
@ -254,14 +254,14 @@ Editor::ruler_button_press (GdkEventButton* ev)
_dragging_playhead = true;
}
return TRUE;
return true;
}
gint
bool
Editor::ruler_button_release (GdkEventButton* ev)
{
if (_session == 0) {
return FALSE;
return false;
}
gint x,y;
@ -288,35 +288,35 @@ Editor::ruler_button_release (GdkEventButton* ev)
ruler_grabbed_widget = 0;
}
return TRUE;
return true;
}
gint
bool
Editor::ruler_label_button_release (GdkEventButton* ev)
{
if (ev->button == 3) {
Gtk::Menu* m= dynamic_cast<Gtk::Menu*> (ActionManager::get_widget (X_("/RulerMenuPopup")));
Gtk::Menu* m = dynamic_cast<Gtk::Menu*> (ActionManager::get_widget (X_("/RulerMenuPopup")));
if (m) {
m->popup (1, ev->time);
}
}
return TRUE;
return true;
}
gint
bool
Editor::ruler_mouse_motion (GdkEventMotion* ev)
{
if (_session == 0) {
return FALSE;
return false;
}
if (_drags->active ()) {
_drags->motion_handler (reinterpret_cast<GdkEvent*> (ev), false);
}
return TRUE;
return true;
}