|
|
|
|
@ -68,6 +68,7 @@ void yon_open_browser(GtkWidget *self, char *link){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_open_documentation_confirmation(GtkWidget *self, char *link){
|
|
|
|
|
textdomain(template_ui_LocaleName);
|
|
|
|
|
if (template_app_information.always_open_documentation==0){
|
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(ui_glade_path_documentation);
|
|
|
|
|
template_documentation_confirmation_window *window = malloc(sizeof(template_documentation_confirmation_window));
|
|
|
|
|
@ -81,13 +82,14 @@ void on_open_documentation_confirmation(GtkWidget *self, char *link){
|
|
|
|
|
gtk_window_set_icon_name(GTK_WINDOW(window->Window),yon_char_append("com.ublinux.",template_app_information.app_tech_name));
|
|
|
|
|
gtk_widget_show_all(window->Window);
|
|
|
|
|
g_signal_connect(G_OBJECT(window->CloseButton),"clicked",G_CALLBACK(on_subwindow_close),NULL);
|
|
|
|
|
g_signal_connect(G_OBJECT(window->AcceptButton),"clicked",G_CALLBACK(yon_open_browser),yon_char_new(link));
|
|
|
|
|
g_signal_connect(G_OBJECT(window->AcceptButton),"clicked",G_CALLBACK(yon_open_browser),yon_char_new(_(link)));
|
|
|
|
|
g_signal_connect(G_OBJECT(window->AcceptButton),"clicked",G_CALLBACK(on_subwindow_close),NULL);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
yon_open_browser(self,link);
|
|
|
|
|
yon_open_browser(self,_(link));
|
|
|
|
|
}
|
|
|
|
|
textdomain(template_app_information.app_locale);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**on_link(GtkWidget *self, char* uri, gpointer user_data)
|
|
|
|
|
|