From 5d8acb43cfab6a1d6dde7fbf75445452bf1d0dc5 Mon Sep 17 00:00:00 2001 From: karthikmurakonda Date: Sun, 9 Oct 2022 23:52:44 +0530 Subject: [PATCH] fix: edit buttons sensitivity in menubar --- iPDC/src/ipdc.c | 2 +- iPDC/src/ipdcGui.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/iPDC/src/ipdc.c b/iPDC/src/ipdc.c index e5d5423..6c02b6a 100755 --- a/iPDC/src/ipdc.c +++ b/iPDC/src/ipdc.c @@ -152,7 +152,7 @@ int main(int argc, char **argv) gtk_widget_set_sensitive(GTK_WIDGET(data->display_conn_table_button), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(data->utility_tools), FALSE); - // gtk_widget_set_visible(GTK_WIDGET(data->menuitem2), TRUE); + gtk_widget_set_visible(GTK_WIDGET(data->menuitem2), FALSE); gtk_widget_set_visible(GTK_WIDGET(data->menu_conn_table), FALSE); gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), FALSE); diff --git a/iPDC/src/ipdcGui.c b/iPDC/src/ipdcGui.c index 4eba700..0ad37bb 100755 --- a/iPDC/src/ipdcGui.c +++ b/iPDC/src/ipdcGui.c @@ -645,8 +645,7 @@ void final_pdc_setup_call() gtk_widget_set_sensitive(GTK_WIDGET(data->display_conn_table_button), TRUE); gtk_widget_set_sensitive(GTK_WIDGET(data->utility_tools), TRUE); - // gtk_menu_attach_to_widget (GTK_MENU (data->menuitem2), GTK_WIDGET (data->ipdc), NULL); - // gtk_widget_show (data->ipdc); + gtk_menu_attach_to_widget (GTK_MENU (data->menuitem2), GTK_WIDGET (data->ipdc), NULL); gtk_widget_set_visible(GTK_WIDGET(data->menu_conn_table), TRUE); gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), TRUE); @@ -1102,7 +1101,7 @@ void fill_pdc_details (char *filePath) gtk_widget_set_sensitive(GTK_WIDGET(data->utility_tools), TRUE); - // gtk_widget_set_visible(GTK_WIDGET(data->menuitem2), FALSE); + gtk_widget_set_visible(GTK_WIDGET(data->menuitem2), TRUE); gtk_widget_set_visible(GTK_WIDGET(data->menu_conn_table), TRUE); gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), TRUE);