|
|
|
@ -1,24 +1,11 @@
@@ -1,24 +1,11 @@
|
|
|
|
|
// SPDX-FileCopyrightText: © 2018-2022 Alexandros Theodotou <alex@zrythm.org>
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-ZrythmLicense
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2018-2021 Alexandros Theodotou <alex at zrythm dot org> |
|
|
|
|
* |
|
|
|
|
* This file is part of Zrythm |
|
|
|
|
* |
|
|
|
|
* Zrythm is free software: you can redistribute it and/or modify |
|
|
|
|
* it under the terms of the GNU Affero General Public License as published by |
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or |
|
|
|
|
* (at your option) any later version. |
|
|
|
|
* |
|
|
|
|
* Zrythm is distributed in the hope that it will be useful, |
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
|
|
* GNU Affero General Public License for more details. |
|
|
|
|
* |
|
|
|
|
* You should have received a copy of the GNU Affero General Public License |
|
|
|
|
* along with Zrythm. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
* |
|
|
|
|
* This file incorporates work covered by the following copyright and |
|
|
|
|
* permission notice: |
|
|
|
|
* |
|
|
|
|
* --- |
|
|
|
|
* |
|
|
|
|
* Copyright (C) 2010 Paul Davis |
|
|
|
|
* |
|
|
|
|
* This program is free software: you can redistribute it and/or modify |
|
|
|
@ -33,6 +20,10 @@
@@ -33,6 +20,10 @@
|
|
|
|
|
* |
|
|
|
|
* You should have received a copy of the GNU General Public License |
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
* |
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later |
|
|
|
|
* |
|
|
|
|
* --- |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
#include <math.h> |
|
|
|
@ -623,7 +614,7 @@ knob_widget_init (KnobWidget * self)
@@ -623,7 +614,7 @@ knob_widget_init (KnobWidget * self)
|
|
|
|
|
|
|
|
|
|
self->layout = |
|
|
|
|
z_cairo_create_pango_layout_from_string ( |
|
|
|
|
(GtkWidget *) self, "Sans 7", |
|
|
|
|
(GtkWidget *) self, "7", |
|
|
|
|
PANGO_ELLIPSIZE_NONE, -1); |
|
|
|
|
|
|
|
|
|
gtk_widget_set_visible (GTK_WIDGET (self), true); |
|
|
|
|