diff dw.h @ 2036:48b91f535f82

GTK: More const changes... a few more commits to finish.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 17 Nov 2019 05:16:04 +0000
parents ea303d356419
children 2c2530f8cbef
line wrap: on
line diff
--- a/dw.h	Sun Nov 17 04:07:39 2019 +0000
+++ b/dw.h	Sun Nov 17 05:16:04 2019 +0000
@@ -1599,19 +1599,19 @@
 HWND API dw_text_new(const char *text, unsigned long id);
 HWND API dw_status_text_new(const char *text, unsigned long id);
 HWND API dw_mle_new(unsigned long id);
-HWND API dw_entryfield_new(char *text, unsigned long id);
+HWND API dw_entryfield_new(const char *text, unsigned long id);
 HWND API dw_entryfield_password_new(const char *text, ULONG id);
-HWND API dw_combobox_new(char *text, unsigned long id);
-HWND API dw_button_new(char *text, unsigned long id);
-HWND API dw_spinbutton_new(char const *text, unsigned long id);
-HWND API dw_radiobutton_new(char *text, ULONG id);
+HWND API dw_combobox_new(const char *text, unsigned long id);
+HWND API dw_button_new(const char *text, unsigned long id);
+HWND API dw_spinbutton_new(const char *text, unsigned long id);
+HWND API dw_radiobutton_new(const char *text, ULONG id);
 HWND API dw_percent_new(unsigned long id);
 HWND API dw_slider_new(int vertical, int increments, ULONG id);
 HWND API dw_scrollbar_new(int vertical, ULONG id);
-HWND API dw_checkbox_new(char *text, unsigned long id);
+HWND API dw_checkbox_new(const char *text, unsigned long id);
 HWND API dw_listbox_new(unsigned long id, int multi);
 void API dw_listbox_append(HWND handle, const char *text);
-void API dw_listbox_insert(HWND handle, char *text, int pos);
+void API dw_listbox_insert(HWND handle, const char *text, int pos);
 void API dw_listbox_list_append(HWND handle, char **text, int count);
 void API dw_listbox_clear(HWND handle);
 int API dw_listbox_count(HWND handle);
@@ -1651,7 +1651,7 @@
 void API dw_window_set_focus(HWND handle);
 void API dw_window_default(HWND window, HWND defaultitem);
 void API dw_window_click_default(HWND window, HWND next);
-unsigned int API dw_mle_import(HWND handle, char *buffer, int startpoint);
+unsigned int API dw_mle_import(HWND handle, const char *buffer, int startpoint);
 void API dw_mle_export(HWND handle, char *buffer, int startpoint, int length);
 void API dw_mle_get_size(HWND handle, unsigned long *bytes, unsigned long *lines);
 void API dw_mle_delete(HWND handle, int startpoint, int length);
@@ -1663,7 +1663,7 @@
 void API dw_mle_set_editable(HWND handle, int state);
 void API dw_mle_set_word_wrap(HWND handle, int state);
 void API dw_mle_set_auto_complete(HWND handle, int state);
-int API dw_mle_search(HWND handle, char *text, int point, unsigned long flags);
+int API dw_mle_search(HWND handle, const char *text, int point, unsigned long flags);
 void API dw_spinbutton_set_pos(HWND handle, long position);
 void API dw_spinbutton_set_limits(HWND handle, long upper, long lower);
 void API dw_entryfield_set_limit(HWND handle, ULONG limit);
@@ -1733,7 +1733,7 @@
 float API dw_splitbar_get(HWND handle);
 HMENUI API dw_menu_new(unsigned long id);
 HMENUI API dw_menubar_new(HWND location);
-HWND API dw_menu_append_item(HMENUI menu, char *title, unsigned long id, unsigned long flags, int end, int check, HMENUI submenu);
+HWND API dw_menu_append_item(HMENUI menu, const char *title, unsigned long id, unsigned long flags, int end, int check, HMENUI submenu);
 int API dw_menu_delete_item(HMENUI menu, unsigned long id);
 DW_DEPRECATED(void API dw_menu_item_set_check(HMENUI menu, unsigned long id, int check), "Use dw_menu_item_set_state() for new code.");
 void API dw_menu_item_set_state( HMENUI menux, unsigned long id, unsigned long state);
@@ -1786,7 +1786,7 @@
 int API dw_messagebox(const char *title, int flags, const char *format, ...);
 void API dw_environment_query(DWEnv *env);
 int API dw_exec(const char *program, int type, char **params);
-int API dw_browse(char *url);
+int API dw_browse(const char *url);
 char * API dw_file_browse(const char *title, const char *defpath, const char *ext, int flags);
 char * API dw_user_dir(void);
 char * API dw_app_dir(void);
@@ -1795,7 +1795,7 @@
 void * API dw_dialog_wait(DWDialog *dialog);
 void API dw_window_set_data(HWND window, const char *dataname, void *data);
 void * API dw_window_get_data(HWND window, const char *dataname);
-int API dw_module_load(char *name, HMOD *handle);
+int API dw_module_load(const char *name, HMOD *handle);
 int API dw_module_symbol(HMOD handle, const char *name, void**func);
 int API dw_module_close(HMOD handle);
 int API dw_timer_connect(int interval, void *sigfunc, void *data);
@@ -1824,7 +1824,7 @@
 HWND API dw_calendar_new(unsigned long id);
 void API dw_calendar_set_date(HWND window, unsigned int year, unsigned int month, unsigned int day);
 void API dw_calendar_get_date(HWND window, unsigned int *year, unsigned int *month, unsigned int *day);
-HPRINT API dw_print_new(char *jobname, unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata);
+HPRINT API dw_print_new(const char *jobname, unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata);
 int API dw_print_run(HPRINT print, unsigned long flags);
 void API dw_print_cancel(HPRINT print);
 wchar_t * API dw_utf8_to_wchar(const char *utf8string);