mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
fixed return types for ::on_....; changed set_usize_... utility functions to set_size_request...
git-svn-id: svn://localhost/trunk/ardour2@39 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
25ac88fcae
commit
d880812c3a
9 changed files with 25 additions and 25 deletions
|
|
@ -49,9 +49,9 @@ class ArdourDialog : public Gtk::Window, public KeyboardTarget
|
||||||
void set_hide_on_stop (bool yn);
|
void set_hide_on_stop (bool yn);
|
||||||
int run_status();
|
int run_status();
|
||||||
|
|
||||||
gint on_enter_notify_event (GdkEventCrossing*);
|
bool on_enter_notify_event (GdkEventCrossing*);
|
||||||
gint on_leave_notify_event (GdkEventCrossing*);
|
bool on_leave_notify_event (GdkEventCrossing*);
|
||||||
gint on_unmap (GdkEventAny *);
|
bool on_unmap (GdkEventAny *);
|
||||||
|
|
||||||
ARDOUR::Session *session;
|
ARDOUR::Session *session;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ class ConnectionEditor : public ArdourDialog {
|
||||||
void set_session (ARDOUR::Session *);
|
void set_session (ARDOUR::Session *);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
gint on_map (GdkEventAny *);
|
bool on_map (GdkEventAny *);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ARDOUR::Connection *current_connection;
|
ARDOUR::Connection *current_connection;
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ class IOSelectorWindow : public ArdourDialog
|
||||||
IOSelector& selector() { return _selector; }
|
IOSelector& selector() { return _selector; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
gint on_map (GdkEventAny *);
|
bool on_map (GdkEventAny *);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IOSelector _selector;
|
IOSelector _selector;
|
||||||
|
|
@ -158,7 +158,7 @@ class PortInsertWindow : public ArdourDialog
|
||||||
PortInsertWindow (ARDOUR::Session&, ARDOUR::PortInsert&, bool can_cancel=false);
|
PortInsertWindow (ARDOUR::Session&, ARDOUR::PortInsert&, bool can_cancel=false);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
gint on_map (GdkEventAny *);
|
bool on_map (GdkEventAny *);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,8 @@ class MeterBridge : public ArdourDialog
|
||||||
void toggle_metering ();
|
void toggle_metering ();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
gint on_map (GdkEventAny *);
|
bool on_map (GdkEventAny *);
|
||||||
gint on_unmap (GdkEventAny *);
|
bool on_unmap (GdkEventAny *);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/* diskstream/recorder display */
|
/* diskstream/recorder display */
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,10 @@ class Panner2d : public Gtk::DrawingArea
|
||||||
sigc::signal<void,int> TargetMoved;
|
sigc::signal<void,int> TargetMoved;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
gint on_expose_event (GdkEventExpose *);
|
bool on_expose_event (GdkEventExpose *);
|
||||||
gint on_button_press_event (GdkEventButton *);
|
bool on_button_press_event (GdkEventButton *);
|
||||||
gint on_button_release_event (GdkEventButton *);
|
bool on_button_release_event (GdkEventButton *);
|
||||||
gint on_motion_notify_event (GdkEventMotion *);
|
bool on_motion_notify_event (GdkEventMotion *);
|
||||||
void on_size_allocate (GtkAllocation* alloc);
|
void on_size_allocate (GtkAllocation* alloc);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
namespace Gtkmm2ext {
|
namespace Gtkmm2ext {
|
||||||
void init ();
|
void init ();
|
||||||
|
|
||||||
void set_usize_to_display_given_text (Gtk::Widget &w,
|
void set_size_request_to_display_given_text (Gtk::Widget &w,
|
||||||
const gchar *text,
|
const gchar *text,
|
||||||
gint hpadding,
|
gint hpadding,
|
||||||
gint vpadding);
|
gint vpadding);
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
#include <gtkmm2ext/gtkutils.h>
|
#include <gtkmm2ext/gtkutils.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
set_usize_to_display_given_text (Gtk::Widget &w,
|
set_size_request_to_display_given_text (Gtk::Widget &w,
|
||||||
const std::string& text,
|
const std::string& text,
|
||||||
gint hpadding,
|
gint hpadding,
|
||||||
gint vpadding)
|
gint vpadding)
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ PopUp::touch ()
|
||||||
if (is_visible ()) {
|
if (is_visible ()) {
|
||||||
remove ();
|
remove ();
|
||||||
} else {
|
} else {
|
||||||
set_usize_to_display_given_text (label, my_text.c_str(), 25, 10);
|
set_size_request_to_display_given_text (label, my_text.c_str(), 25, 10);
|
||||||
label.set_text (my_text);
|
label.set_text (my_text);
|
||||||
show_all ();
|
show_all ();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,12 +24,12 @@
|
||||||
#include "i18n.h"
|
#include "i18n.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
Gtkmm2ext::set_usize_to_display_given_text (Gtk::Widget &w, const gchar *text,
|
Gtkmm2ext::set_size_request_to_display_given_text (Gtk::Widget &w, const gchar *text,
|
||||||
gint hpadding, gint vpadding)
|
gint hpadding, gint vpadding)
|
||||||
|
|
||||||
{
|
{
|
||||||
w.ensure_style ();
|
w.ensure_style ();
|
||||||
set_usize_to_display_given_text(w, text, hpadding, vpadding);
|
set_size_request_to_display_given_text(w, text, hpadding, vpadding);
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
gint
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue