}
void
-MidiRegionView::note_dropped(CanvasNoteEvent* ev, double dt, int8_t dnote)
+MidiRegionView::note_dropped(CanvasNoteEvent *, double dt, int8_t dnote)
{
assert (!_selection.empty());
*/
// Make sure the note pitch does not exceed the MIDI standard range
- if (dnote <= 127 && (highest_note_in_selection + dnote > 127)) {
+ if (highest_note_in_selection + dnote > 127) {
highest_note_difference = highest_note_in_selection - 127;
}
uint32_t nouts = _panner->nouts();
- if (nouts == _current_nouts) {
+ if (int32_t (nouts) == _current_nouts) {
return;
}
void latency_button_clicked ();
- virtual bool on_window_show(const Glib::ustring& title) { return true; }
+ virtual bool on_window_show(const Glib::ustring& /*title*/) { return true; }
virtual void on_window_hide() {}
protected:
static bool
create_mono_sources_for_writing (const vector<string>& new_paths, Session& sess,
uint samplerate, vector<boost::shared_ptr<Source> >& newfiles,
- nframes64_t timeline_position)
+ nframes64_t /*timeline_position*/)
{
for (vector<string>::const_iterator i = new_paths.begin();
i != new_paths.end(); ++i)
static gboolean
update_animation_info (gpointer key, gpointer value, gpointer user_data)
{
+ (void) user_data;
+
AnimationInfo *animation_info = value;
GtkWidget *widget = key;
static gboolean
animation_timeout_handler (gpointer data)
{
+ (void) data;
+
/*g_print("** TICK **\n");*/
/* enter threads as update_animation_info will use gtk/gdk. */
static void
on_checkbox_toggle (GtkWidget *widget, gpointer data)
{
+ (void) data;
+
AnimationInfo *animation_info = lookup_animation_info (widget);
if (animation_info != NULL)
static void
on_connected_widget_destruction (gpointer data, GObject *widget)
{
+ (void) widget;
+
connected_widgets = g_slist_remove (connected_widgets, data);
g_free (data);
}
const gchar*
g_module_check_init (GModule *module)
{
- return gtk_check_version (GTK_MAJOR_VERSION,
- GTK_MINOR_VERSION,
- GTK_MICRO_VERSION - GTK_INTERFACE_AGE);
+ (void) module;
+
+ return gtk_check_version (GTK_MAJOR_VERSION,
+ GTK_MINOR_VERSION,
+ GTK_MICRO_VERSION - GTK_INTERFACE_AGE);
}
#include <ge-support.h>
#include <math.h>
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
#include <cairo.h>
typedef void (*menubar_draw_proto) (cairo_t *cr,
const SeparatorParameters *separator,
int x, int y, int width, int height)
{
+ (void) widget;
+
cairo_save (cr);
cairo_set_line_cap (cr, CAIRO_LINE_CAP_BUTT);
ge_cairo_set_color (cr, &colors->shade[5]);
const MenuBarParameters *menubar,
int x, int y, int width, int height)
{
+ (void) params;
+ (void) menubar;
+
/* const CairoColor *light = &colors->shade[0]; */
const CairoColor *dark = &colors->shade[3];
const MenuBarParameters *menubar,
int x, int y, int width, int height)
{
+ (void) params;
+ (void) menubar;
+
CairoColor lower;
cairo_pattern_t *pattern;
ClearlooksRectangle *bevel,
ClearlooksRectangle *border)
{
+ (void) x;
+ (void) y;
+
if (frame->gap_side == CL_GAP_TOP)
{
CLEARLOOKS_RECTANGLE_SET ((*bevel), 1.5 + frame->gap_x, -0.5,
const SeparatorParameters *separator,
int x, int y, int width, int height)
{
+ (void) widget;
+
CairoColor color = colors->shade[3];
CairoColor hilight;
ge_shade_color (&color, 1.4, &hilight);
const ToolbarParameters *toolbar,
int x, int y, int width, int height)
{
+ (void) widget;
+
const CairoColor *fill = &colors->bg[GTK_STATE_NORMAL];
const CairoColor *dark = &colors->shade[3];
CairoColor light;
const ScrollBarParameters *scrollbar,
int x, int y, int width, int height)
{
+ (void) widget;
+
const CairoColor *bg = &colors->shade[2];
const CairoColor *border = &colors->shade[5];
CairoColor bg_shade;
const WidgetParameters *widget,
int x, int y, int width, int height)
{
+ (void) widget;
+ (void) height;
+
const CairoColor *dark = &colors->shade[3];
CairoColor hilight;
const WidgetParameters *widget,
int x, int y, int width, int height)
{
+ (void) widget;
+
const CairoColor *border = &colors->shade[5];
cairo_translate (cr, x, y);
cairo_set_line_width (cr, 1);
const ResizeGripParameters *grip,
int x, int y, int width, int height)
{
+ (void) widget;
+
const CairoColor *dark = &colors->shade[4];
CairoColor hilight;
int lx, ly;
const CheckboxParameters *checkbox,
int x, int y, int width, int height)
{
+ (void) width;
+ (void) height;
+
const CairoColor *border;
const CairoColor *dot;
CairoColor shadow;
#include <cairo.h>
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
static void
clearlooks_draw_glossy_gradient (cairo_t *cr,
}
/* if (!(params->enable_glow && !params->active && !params->disabled)) */
- if (!(params->prelight && params->enable_glow && !params->active))
+ if (!(params->prelight && params->enable_glow && !params->active)) {
if (!(params->disabled))
params->style_functions->draw_inset (cr, ¶ms->parentbg, 0, 0, width-1, height-1, params->radius+1, params->corners);
else
/*Draw a lighter inset */
clearlooks_glossy_draw_light_inset (cr, ¶ms->parentbg, 0, 0, width-1, height-1, params->radius+1, params->corners);
+ }
cairo_translate (cr, -0.5, -0.5);
}
const ToolbarParameters *toolbar,
int x, int y, int width, int height)
{
+ (void) widget;
+ (void) width;
+ (void) height;
+
const CairoColor *fill = &colors->bg[GTK_STATE_NORMAL];
const CairoColor *dark = &colors->shade[3];
CairoColor light;
const CheckboxParameters *checkbox,
int x, int y, int width, int height)
{
+ (void) width;
+ (void) height;
+
const CairoColor *border;
const CairoColor *dot;
CairoColor shadow;
const SeparatorParameters *separator,
int x, int y, int width, int height)
{
+ (void) widget;
+
CairoColor color = colors->shade[3];
CairoColor hilight;
ge_shade_color (&color, 1.3, &hilight);
const ToolbarParameters *toolbar,
int x, int y, int width, int height)
{
+ (void) widget;
+
const CairoColor *fill = &colors->bg[GTK_STATE_NORMAL];
const CairoColor *dark = &colors->shade[3];
CairoColor light;
const WidgetParameters *widget,
int x, int y, int width, int height)
{
+ (void) widget;
+ (void) height;
+
const CairoColor *dark = &colors->shade[3];
CairoColor hilight;
const CheckboxParameters *checkbox,
int x, int y, int width, int height)
{
+ (void) width;
+ (void) height;
+
const CairoColor *border;
const CairoColor *dot;
CairoColor shadow;
GScanner *scanner,
gboolean *retval)
{
+ (void) settings;
+
guint token;
token = g_scanner_get_next_token(scanner);
GScanner *scanner,
GdkColor *color)
{
+ (void) settings;
+
guint token;
/* Skip 'blah_color' */
GScanner *scanner,
gdouble *val)
{
+ (void) settings;
+
guint token;
/* Skip 'blah' */
GScanner *scanner,
guint8 *progressbarstyle)
{
+ (void) settings;
+
guint token;
/* Skip 'sunkenmenubar' */
GScanner *scanner,
ClearlooksStyles *style)
{
+ (void) settings;
+
guint token;
g_assert (CL_NUM_STYLES == CL_STYLE_GUMMY + 1); /* so that people don't forget ;-) */
GScanner *scanner,
gchar *name)
{
+ (void) settings;
+
guint token;
/* Skip option */
static GtkStyle *
clearlooks_rc_style_create_style (GtkRcStyle *rc_style)
{
+ (void) rc_style;
+
return GTK_STYLE (g_object_new (CLEARLOOKS_TYPE_STYLE, NULL));
}
static void
clearlooks_style_draw_option (DRAW_ARGS)
{
+ (void) detail;
+
ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
const ClearlooksColors *colors;
WidgetParameters params;
gint y2,
gint x)
{
+ (void) state_type;
+ (void) widget;
+ (void) detail;
+
ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
const ClearlooksColors *colors;
SeparatorParameters separator = { FALSE };
gint x2,
gint y)
{
+ (void) state_type;
+ (void) widget;
+
ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
const ClearlooksColors *colors;
cairo_t *cr;
gint width,
gint height)
{
+ (void) detail;
+
ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
ClearlooksColors *colors = &clearlooks_style->colors;
cairo_t *cr;
static void
clearlooks_style_draw_tab (DRAW_ARGS)
{
+ (void) shadow_type;
+ (void) detail;
+
ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
ClearlooksColors *colors = &clearlooks_style->colors;
WidgetParameters params;
gint width,
gint height)
{
+ (void) shadow;
+ (void) detail;
+ (void) fill;
+
ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
ClearlooksColors *colors = &clearlooks_style->colors;
WidgetParameters params;
clearlooks_parent_class->init_from_rc (style, rc_style);
- g_assert ((CLEARLOOKS_RC_STYLE (rc_style)->style >= 0) && (CLEARLOOKS_RC_STYLE (rc_style)->style < CL_NUM_STYLES));
+ g_assert ((CLEARLOOKS_RC_STYLE (rc_style)->style < CL_NUM_STYLES));
clearlooks_style->style = CLEARLOOKS_RC_STYLE (rc_style)->style;
clearlooks_style->menubarstyle = CLEARLOOKS_RC_STYLE (rc_style)->menubarstyle;
GtkWidget * widget,
const gchar * detail, gint x, gint y, PangoLayout * layout)
{
+ (void) detail;
+
GdkGC *gc;
g_return_if_fail (GTK_IS_STYLE (style));
GtkWidget *widget,
const char *detail)
{
+ (void) direction;
+ (void) detail;
+
int width = 1;
int height = 1;
GdkPixbuf *scaled;
static void
clearlooks_style_init (ClearlooksStyle * style)
{
+ (void) style;
}
static void
}
template <typename RequestObject> void
-AbstractUI<RequestObject>::register_thread_with_request_count (pthread_t thread_id, string thread_name, uint32_t num_requests)
+AbstractUI<RequestObject>::register_thread_with_request_count (pthread_t thread_id, string /*thread_name*/, uint32_t num_requests)
{
RequestBuffer* b = new RequestBuffer (num_requests);
return bytes;
}
-MidiByteArray MackieMidiBuilder::two_char_display( unsigned int value, const std::string & dots )
+MidiByteArray MackieMidiBuilder::two_char_display (unsigned int value, const std::string & /*dots*/)
{
ostringstream os;
os << setfill('0') << setw(2) << value % 100;
return retval;
}
-MidiByteArray MackieMidiBuilder::all_strips_display( SurfacePort & port, std::vector<std::string> & lines1, std::vector<std::string> & lines2 )
+MidiByteArray MackieMidiBuilder::all_strips_display (SurfacePort & /*port*/, std::vector<std::string> & /*lines1*/, std::vector<std::string> & /*lines2*/)
{
MidiByteArray retval;
retval << 0x12 << 0;