|
|
|
@ -179,10 +179,8 @@ void on_pack_install_activate(GtkCellRendererToggle* ,gchar* path,main_window *w
|
|
|
|
int installed;
|
|
|
|
int installed;
|
|
|
|
gtk_tree_model_get(GTK_TREE_MODEL(model),&iter,1,&installed,8,&package,-1);
|
|
|
|
gtk_tree_model_get(GTK_TREE_MODEL(model),&iter,1,&installed,8,&package,-1);
|
|
|
|
if (!installed){
|
|
|
|
if (!installed){
|
|
|
|
dialog_confirmation_data *data = malloc(sizeof(dialog_confirmation_data));
|
|
|
|
dialog_confirmation_data *data = yon_confirmation_dialog_data_new();
|
|
|
|
data->action_text=yon_char_unite(INSTALL_CONFIRMATION_LABEL(package),"\n",INSTALL_ATTENTION_LABEL,NULL);
|
|
|
|
data->action_text=yon_char_unite(INSTALL_CONFIRMATION_LABEL(package),"\n",INSTALL_ATTENTION_LABEL,NULL);
|
|
|
|
data->function=NULL;
|
|
|
|
|
|
|
|
data->data=NULL;
|
|
|
|
|
|
|
|
if (yon_confirmation_dialog_call(widgets->Window,data)==GTK_RESPONSE_ACCEPT){
|
|
|
|
if (yon_confirmation_dialog_call(widgets->Window,data)==GTK_RESPONSE_ACCEPT){
|
|
|
|
if (!yon_char_is_empty(package)){
|
|
|
|
if (!yon_char_is_empty(package)){
|
|
|
|
char *command = install_proprietary_command(package);
|
|
|
|
char *command = install_proprietary_command(package);
|
|
|
|
@ -191,10 +189,8 @@ void on_pack_install_activate(GtkCellRendererToggle* ,gchar* path,main_window *w
|
|
|
|
}
|
|
|
|
}
|
|
|
|
free(data);
|
|
|
|
free(data);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
dialog_confirmation_data *data = malloc(sizeof(dialog_confirmation_data));
|
|
|
|
dialog_confirmation_data *data = yon_confirmation_dialog_data_new();
|
|
|
|
data->action_text=REMOVE_CONFIRMATION_LABEL(package);
|
|
|
|
data->action_text=REMOVE_CONFIRMATION_LABEL(package);
|
|
|
|
data->function=NULL;
|
|
|
|
|
|
|
|
data->data=NULL;
|
|
|
|
|
|
|
|
if (yon_confirmation_dialog_call(widgets->Window,data)==GTK_RESPONSE_ACCEPT){
|
|
|
|
if (yon_confirmation_dialog_call(widgets->Window,data)==GTK_RESPONSE_ACCEPT){
|
|
|
|
if (!yon_char_is_empty(package)){
|
|
|
|
if (!yon_char_is_empty(package)){
|
|
|
|
char *command = delete_proprietary_command(package);
|
|
|
|
char *command = delete_proprietary_command(package);
|
|
|
|
@ -219,10 +215,8 @@ void on_module_install_activate(GtkCellRendererToggle* ,gchar* path,main_window
|
|
|
|
int installed;
|
|
|
|
int installed;
|
|
|
|
gtk_tree_model_get(GTK_TREE_MODEL(main_config.list),&iter,1,&installed,7,&package,-1);
|
|
|
|
gtk_tree_model_get(GTK_TREE_MODEL(main_config.list),&iter,1,&installed,7,&package,-1);
|
|
|
|
if (!installed){
|
|
|
|
if (!installed){
|
|
|
|
dialog_confirmation_data *data = malloc(sizeof(dialog_confirmation_data));
|
|
|
|
dialog_confirmation_data *data = yon_confirmation_dialog_data_new();
|
|
|
|
data->action_text=INSTALL_CONFIRMATION_LABEL(package);
|
|
|
|
data->action_text=INSTALL_CONFIRMATION_LABEL(package);
|
|
|
|
data->function=NULL;
|
|
|
|
|
|
|
|
data->data=NULL;
|
|
|
|
|
|
|
|
if (yon_confirmation_dialog_call(widgets->Window,data)==GTK_RESPONSE_ACCEPT){
|
|
|
|
if (yon_confirmation_dialog_call(widgets->Window,data)==GTK_RESPONSE_ACCEPT){
|
|
|
|
if (!yon_char_is_empty(package)){
|
|
|
|
if (!yon_char_is_empty(package)){
|
|
|
|
char *command = install_proprietary_command(package);
|
|
|
|
char *command = install_proprietary_command(package);
|
|
|
|
@ -231,10 +225,8 @@ void on_module_install_activate(GtkCellRendererToggle* ,gchar* path,main_window
|
|
|
|
}
|
|
|
|
}
|
|
|
|
free(data);
|
|
|
|
free(data);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
dialog_confirmation_data *data = malloc(sizeof(dialog_confirmation_data));
|
|
|
|
dialog_confirmation_data *data = yon_confirmation_dialog_data_new();
|
|
|
|
data->action_text=REMOVE_CONFIRMATION_LABEL(package);
|
|
|
|
data->action_text=REMOVE_CONFIRMATION_LABEL(package);
|
|
|
|
data->function=NULL;
|
|
|
|
|
|
|
|
data->data=NULL;
|
|
|
|
|
|
|
|
if (yon_confirmation_dialog_call(widgets->Window,data)==GTK_RESPONSE_ACCEPT){
|
|
|
|
if (yon_confirmation_dialog_call(widgets->Window,data)==GTK_RESPONSE_ACCEPT){
|
|
|
|
if (!yon_char_is_empty(package)){
|
|
|
|
if (!yon_char_is_empty(package)){
|
|
|
|
char *command = delete_proprietary_command(package);
|
|
|
|
char *command = delete_proprietary_command(package);
|
|
|
|
@ -1655,7 +1647,7 @@ int main(int argc, char *argv[]){
|
|
|
|
yon_root_button_setup(widgets,argv,argc);
|
|
|
|
yon_root_button_setup(widgets,argv,argc);
|
|
|
|
|
|
|
|
|
|
|
|
if (system(yon_check_database_command)){
|
|
|
|
if (system(yon_check_database_command)){
|
|
|
|
dialog_confirmation_data *data = malloc(sizeof(dialog_confirmation_data));
|
|
|
|
dialog_confirmation_data *data = yon_confirmation_dialog_data_new();
|
|
|
|
data->action_text=DATABASE_UNACCESSIBLE_LABEL;
|
|
|
|
data->action_text=DATABASE_UNACCESSIBLE_LABEL;
|
|
|
|
data->function = on_database_update;
|
|
|
|
data->function = on_database_update;
|
|
|
|
data->data = widgets;
|
|
|
|
data->data = widgets;
|
|
|
|
|