fix: edit buttons sensitivity in menubar

This commit is contained in:
karthikmurakonda 2022-10-09 23:52:44 +05:30
parent 5372e77c73
commit 5d8acb43cf
2 changed files with 3 additions and 4 deletions

View File

@ -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->display_conn_table_button), FALSE);
gtk_widget_set_sensitive(GTK_WIDGET(data->utility_tools), 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->menu_conn_table), FALSE);
gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), FALSE); gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), FALSE);

View File

@ -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->display_conn_table_button), TRUE);
gtk_widget_set_sensitive(GTK_WIDGET(data->utility_tools), 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_menu_attach_to_widget (GTK_MENU (data->menuitem2), GTK_WIDGET (data->ipdc), NULL);
// gtk_widget_show (data->ipdc);
gtk_widget_set_visible(GTK_WIDGET(data->menu_conn_table), TRUE); gtk_widget_set_visible(GTK_WIDGET(data->menu_conn_table), TRUE);
gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), 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_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->menu_conn_table), TRUE);
gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), TRUE); gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), TRUE);