mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2025-04-21 12:27:27 +03:00
lingot: not only guitar tuner using GTK
This commit is contained in:
18
lingot/patches/001-gtk_widget_set_visible.patch
Normal file
18
lingot/patches/001-gtk_widget_set_visible.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
diff --git a/src/lingot-gui-mainframe.c b/src/lingot-gui-mainframe.c
|
||||
index 30c1b69..a6b35f5 100644
|
||||
--- a/src/lingot-gui-mainframe.c
|
||||
+++ b/src/lingot-gui-mainframe.c
|
||||
@@ -107,9 +107,10 @@ void lingot_gui_mainframe_callback_about(GtkWidget* w, LingotMainFrame* frame) {
|
||||
|
||||
void lingot_gui_mainframe_callback_view_spectrum(GtkWidget* w,
|
||||
LingotMainFrame* frame) {
|
||||
- gtk_widget_set_visible(frame->spectrum_frame,
|
||||
- gtk_check_menu_item_get_active(
|
||||
- GTK_CHECK_MENU_ITEM(frame->view_spectrum_item)));
|
||||
+ if (gtk_check_menu_item_get_active(
|
||||
+ GTK_CHECK_MENU_ITEM(frame->view_spectrum_item))) {
|
||||
+ gtk_widget_show(frame->spectrum_frame);
|
||||
+ }
|
||||
}
|
||||
|
||||
void lingot_gui_mainframe_callback_config_dialog(GtkWidget* w,
|
||||
53
lingot/patches/002-320x240.patch
Normal file
53
lingot/patches/002-320x240.patch
Normal file
@@ -0,0 +1,53 @@
|
||||
diff --git a/src/glade/lingot-mainframe.glade b/src/glade/lingot-mainframe.glade
|
||||
index ce76be9..e0cf586 100644
|
||||
--- a/src/glade/lingot-mainframe.glade
|
||||
+++ b/src/glade/lingot-mainframe.glade
|
||||
@@ -136,7 +136,7 @@
|
||||
<child>
|
||||
<widget class="GtkDrawingArea" id="gauge_area">
|
||||
<property name="width_request">160</property>
|
||||
- <property name="height_request">100</property>
|
||||
+ <property name="height_request">85</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Shows the error in cents in a visual way. The range will depend on the maximum distance between each two notes in the scale defined in the Lingot settings (try to provide scales with low maximum distance, i.e. with many notes, to have a higher resolution in this gauge),</property>
|
||||
</widget>
|
||||
@@ -168,7 +168,7 @@
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox2">
|
||||
<property name="width_request">110</property>
|
||||
- <property name="height_request">100</property>
|
||||
+ <property name="height_request">85</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
@@ -233,7 +233,7 @@
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow1">
|
||||
<property name="width_request">290</property>
|
||||
- <property name="height_request">96</property>
|
||||
+ <property name="height_request">82</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">automatic</property>
|
||||
diff --git a/src/lingot b/src/lingot
|
||||
index 7c9a89c..87bb47e 100755
|
||||
Binary files a/src/lingot and b/src/lingot differ
|
||||
diff --git a/src/lingot-gui-mainframe.c b/src/lingot-gui-mainframe.c
|
||||
index 30c1b69..05d374a 100644
|
||||
--- a/src/lingot-gui-mainframe.c
|
||||
+++ b/src/lingot-gui-mainframe.c
|
||||
@@ -57,9 +57,9 @@ GdkColor freq_color;
|
||||
// sizes
|
||||
|
||||
int gauge_size_x = 160;
|
||||
-int gauge_size_y = 100;
|
||||
+int gauge_size_y = 85;
|
||||
|
||||
-int spectrum_size_y = 64;
|
||||
+int spectrum_size_y = 50;
|
||||
|
||||
// spectrum area margins
|
||||
int spectrum_bottom_margin = 16;
|
||||
diff --git a/src/lingot-gui-mainframe.o b/src/lingot-gui-mainframe.o
|
||||
index b36ff35..54b8c6c 100644
|
||||
Binary files a/src/lingot-gui-mainframe.o and b/src/lingot-gui-mainframe.o differ
|
||||
Reference in New Issue
Block a user