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,
|
||||
Reference in New Issue
Block a user