Merge pull request 'Function for debug output controlling' (#24) from YanTheKaller/libublsettingsui-gtk3:master into master

Reviewed-on: #24
master v1.21
Dmitry Razumov 2 years ago
commit 5bde00f577

@ -480,6 +480,12 @@ int yon_confirmation_dialog_call(GtkWidget *self,dialog_confirmation_data *data)
return resp; return resp;
} }
void yon_debug_output(char*text){
if (template_config->debug_mode){
printf("%s\n",text);
}
}
// standard functions // standard functions
int yon_ubl_connect_config(_template_config *config){ int yon_ubl_connect_config(_template_config *config){

@ -250,6 +250,8 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...);
*/ */
void yon_open_browser(GtkWidget *self, char *link); void yon_open_browser(GtkWidget *self, char *link);
void yon_debug_output(char*text);
/**yon_ubl_connect_config(_template_config *config) /**yon_ubl_connect_config(_template_config *config)
* [EN] * [EN]
* *

Loading…
Cancel
Save