/[svn]/gigedit/trunk/src/gigedit/compat.cpp
ViewVC logotype

Annotation of /gigedit/trunk/src/gigedit/compat.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2507 - (hide annotations) (download)
Sun Jan 12 19:37:55 2014 UTC (10 years, 3 months ago) by persson
File size: 1460 byte(s)
* added dialog for editing the CtrlTrigger and Legato midi rules

1 persson 2170 /*
2 persson 2507 * Copyright (C) 2011-2014 Andreas Persson
3 persson 2170 *
4     * This program is free software; you can redistribute it and/or
5     * modify it under the terms of the GNU General Public License as
6     * published by the Free Software Foundation; either version 2, or (at
7     * your option) any later version.
8     *
9     * This program is distributed in the hope that it will be useful, but
10     * WITHOUT ANY WARRANTY; without even the implied warranty of
11     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12     * General Public License for more details.
13     *
14     * You should have received a copy of the GNU General Public License
15     * along with program; see the file COPYING. If not, write to the Free
16     * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17     * 02110-1301 USA.
18     */
19    
20     #include <gtkmmconfig.h>
21    
22     #if (GTKMM_MAJOR_VERSION == 2 && GTKMM_MINOR_VERSION < 90) || GTKMM_MAJOR_VERSION < 2
23 persson 2507 #include <gdkmm/window.h>
24 persson 2170 #include <gdkmm/general.h>
25     #include <gdk/gdkcairo.h>
26     #include "compat.h"
27    
28     namespace Gdk {
29     namespace Cairo {
30     void set_source_rgba(const ::Cairo::RefPtr< ::Cairo::Context >& context,
31     const Gdk::RGBA& color) {
32     #if (GTKMM_MAJOR_VERSION == 2 && GTKMM_MINOR_VERSION < 10) || GTKMM_MAJOR_VERSION < 2
33     gdk_cairo_set_source_color(context->cobj(),
34     const_cast<GdkColor*>(color.gobj()));
35     #else
36     set_source_color(context, color);
37     #endif
38     }
39     }
40     }
41     #endif

  ViewVC Help
Powered by ViewVC