Mercurial > dwindows
comparison gtk/dw.c @ 513:7755599311d4
Fixes search and replace errors.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 09 Mar 2004 05:58:52 +0000 |
parents | 80dbd5a1f403 |
children | 08d770271709 |
comparison
equal
deleted
inserted
replaced
512:8eb10e610270 | 513:7755599311d4 |
---|---|
3350 * Sets the visible line of an MLE box. | 3350 * Sets the visible line of an MLE box. |
3351 * Parameters: | 3351 * Parameters: |
3352 * handle: Handle to the MLE. | 3352 * handle: Handle to the MLE. |
3353 * line: Line to be visible. | 3353 * line: Line to be visible. |
3354 */ | 3354 */ |
3355 void dw_mle_set_cursor_visible(HWND handle, int line) | 3355 void dw_mle_set_visible(HWND handle, int line) |
3356 { | 3356 { |
3357 int _locked_by_me = FALSE; | 3357 int _locked_by_me = FALSE; |
3358 | 3358 |
3359 DW_MUTEX_LOCK; | 3359 DW_MUTEX_LOCK; |
3360 #if GTK_MAJOR_VERSION > 1 | 3360 #if GTK_MAJOR_VERSION > 1 |
3412 * Sets the editablity of an MLE box. | 3412 * Sets the editablity of an MLE box. |
3413 * Parameters: | 3413 * Parameters: |
3414 * handle: Handle to the MLE. | 3414 * handle: Handle to the MLE. |
3415 * state: TRUE if it can be edited, FALSE for readonly. | 3415 * state: TRUE if it can be edited, FALSE for readonly. |
3416 */ | 3416 */ |
3417 void dw_mle_set_cursor_editable(HWND handle, int state) | 3417 void dw_mle_set_editable(HWND handle, int state) |
3418 { | 3418 { |
3419 int _locked_by_me = FALSE; | 3419 int _locked_by_me = FALSE; |
3420 | 3420 |
3421 DW_MUTEX_LOCK; | 3421 DW_MUTEX_LOCK; |
3422 #if GTK_MAJOR_VERSION > 1 | 3422 #if GTK_MAJOR_VERSION > 1 |
3443 * Sets the word wrap state of an MLE box. | 3443 * Sets the word wrap state of an MLE box. |
3444 * Parameters: | 3444 * Parameters: |
3445 * handle: Handle to the MLE. | 3445 * handle: Handle to the MLE. |
3446 * state: TRUE if it wraps, FALSE if it doesn't. | 3446 * state: TRUE if it wraps, FALSE if it doesn't. |
3447 */ | 3447 */ |
3448 void dw_mle_set_cursor_word_wrap(HWND handle, int state) | 3448 void dw_mle_set_word_wrap(HWND handle, int state) |
3449 { | 3449 { |
3450 int _locked_by_me = FALSE; | 3450 int _locked_by_me = FALSE; |
3451 | 3451 |
3452 DW_MUTEX_LOCK; | 3452 DW_MUTEX_LOCK; |
3453 #if GTK_MAJOR_VERSION > 1 | 3453 #if GTK_MAJOR_VERSION > 1 |
4279 * Parameters: | 4279 * Parameters: |
4280 * handle: Handle to the tree containing the item. | 4280 * handle: Handle to the tree containing the item. |
4281 * item: Handle of the item to be modified. | 4281 * item: Handle of the item to be modified. |
4282 * itemdata: User defined data to be associated with item. | 4282 * itemdata: User defined data to be associated with item. |
4283 */ | 4283 */ |
4284 void dw_tree_item_change_data(HWND handle, HTREEITEM item, void *itemdata) | 4284 void dw_tree_item_set_data(HWND handle, HTREEITEM item, void *itemdata) |
4285 { | 4285 { |
4286 #if GTK_MAJOR_VERSION > 1 | 4286 #if GTK_MAJOR_VERSION > 1 |
4287 GtkWidget *tree; | 4287 GtkWidget *tree; |
4288 GtkTreeStore *store; | 4288 GtkTreeStore *store; |
4289 int _locked_by_me = FALSE; | 4289 int _locked_by_me = FALSE; |
7933 | 7933 |
7934 if(S_IFDIR & bleah.st_mode) | 7934 if(S_IFDIR & bleah.st_mode) |
7935 { | 7935 { |
7936 item = dw_tree_insert(tree, dent->d_name, 0, parent, (void *)parent); | 7936 item = dw_tree_insert(tree, dent->d_name, 0, parent, (void *)parent); |
7937 tempitem = dw_tree_insert(tree, "", 0, item, 0); | 7937 tempitem = dw_tree_insert(tree, "", 0, item, 0); |
7938 dw_tree_item_change_data(tree, item, (void *)tempitem); | 7938 dw_tree_item_set_data(tree, item, (void *)tempitem); |
7939 } | 7939 } |
7940 | 7940 |
7941 free(folder); | 7941 free(folder); |
7942 } | 7942 } |
7943 } | 7943 } |
8018 | 8018 |
8019 if(tempitem) | 8019 if(tempitem) |
8020 { | 8020 { |
8021 char *folder = _tree_folder(tree, item); | 8021 char *folder = _tree_folder(tree, item); |
8022 | 8022 |
8023 dw_tree_item_change_data(tree, item, 0); | 8023 dw_tree_item_set_data(tree, item, 0); |
8024 | 8024 |
8025 if(*folder) | 8025 if(*folder) |
8026 _populate_directory(tree, item, folder); | 8026 _populate_directory(tree, item, folder); |
8027 | 8027 |
8028 #if GTK_MAJOR_VERSION > 1 | 8028 #if GTK_MAJOR_VERSION > 1 |
8090 dw_box_pack_start(hbox, button, 50, 30, TRUE, FALSE, 3); | 8090 dw_box_pack_start(hbox, button, 50, 30, TRUE, FALSE, 3); |
8091 dw_signal_connect(button, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(_dw_folder_cancel_func), (void *)dwwait); | 8091 dw_signal_connect(button, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(_dw_folder_cancel_func), (void *)dwwait); |
8092 | 8092 |
8093 item = dw_tree_insert(tree, "/", 0, NULL, 0); | 8093 item = dw_tree_insert(tree, "/", 0, NULL, 0); |
8094 tempitem = dw_tree_insert(tree, "", 0, item, 0); | 8094 tempitem = dw_tree_insert(tree, "", 0, item, 0); |
8095 dw_tree_item_change_data(tree, item, (void *)tempitem); | 8095 dw_tree_item_set_data(tree, item, (void *)tempitem); |
8096 | 8096 |
8097 dw_window_set_size(window, 225, 300); | 8097 dw_window_set_size(window, 225, 300); |
8098 dw_window_show(window); | 8098 dw_window_show(window); |
8099 } | 8099 } |
8100 else | 8100 else |