1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-18 02:51:53 +02:00
openwrt-packages/lingot/patches/001-gtk_widget_set_visible.patch

19 lines
712 B
Diff

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,