fix: edit buttons sensitivity in menubar
This commit is contained in:
parent
5372e77c73
commit
5d8acb43cf
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue