Mercurial > dwindows
comparison gtk4/dw.c @ 2628:d3d8a93124f1
GTK4: Fix compilation after style standarization.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 01 Aug 2021 12:44:49 +0000 |
parents | 401a3b9f21ba |
children | 650f8b062317 |
comparison
equal
deleted
inserted
replaced
2627:814c81cae51d | 2628:d3d8a93124f1 |
---|---|
516 usleep(period * 1000); | 516 usleep(period * 1000); |
517 #endif | 517 #endif |
518 } | 518 } |
519 | 519 |
520 /* Finds the translation function for a given signal name */ | 520 /* Finds the translation function for a given signal name */ |
521 static SignalList _dw_findsignal(const char *signame) | 521 static DWSignalList _dw_findsignal(const char *signame) |
522 { | 522 { |
523 int z=0; | 523 int z=0; |
524 static SignalList empty = {0}; | 524 static DWSignalList empty = {0}; |
525 | 525 |
526 while(DWSignalTranslate[z].func) | 526 while(DWSignalTranslate[z].func) |
527 { | 527 { |
528 if(strcasecmp(signame, DWSignalTranslate[z].name) == 0) | 528 if(strcasecmp(signame, DWSignalTranslate[z].name) == 0) |
529 return DWSignalTranslate[z]; | 529 return DWSignalTranslate[z]; |
10913 * discfunc: The pointer to the function called when this handler is removed. | 10913 * discfunc: The pointer to the function called when this handler is removed. |
10914 * data: User data to be passed to the handler function. | 10914 * data: User data to be passed to the handler function. |
10915 */ | 10915 */ |
10916 void API dw_signal_connect_data(HWND window, const char *signame, void *sigfunc, void *discfunc, void *data) | 10916 void API dw_signal_connect_data(HWND window, const char *signame, void *sigfunc, void *discfunc, void *data) |
10917 { | 10917 { |
10918 SignalList signal = _dw_findsignal(signame); | 10918 DWSignalList signal = _dw_findsignal(signame); |
10919 | 10919 |
10920 if(signal.func) | 10920 if(signal.func) |
10921 { | 10921 { |
10922 GObject *object = (GObject *)window; | 10922 GObject *object = (GObject *)window; |
10923 void **params; | 10923 void **params; |
10959 * window: Window handle of callback to be removed. | 10959 * window: Window handle of callback to be removed. |
10960 */ | 10960 */ |
10961 void API dw_signal_disconnect_by_name(HWND window, const char *signame) | 10961 void API dw_signal_disconnect_by_name(HWND window, const char *signame) |
10962 { | 10962 { |
10963 int z, count; | 10963 int z, count; |
10964 SignalList signal; | 10964 DWSignalList signal; |
10965 void **params = alloca(sizeof(void *) * 3); | 10965 void **params = alloca(sizeof(void *) * 3); |
10966 | 10966 |
10967 params[2] = _dw_find_signal_window(window, signame); | 10967 params[2] = _dw_find_signal_window(window, signame); |
10968 count = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(params[2]), "_dw_sigcounter")); | 10968 count = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(params[2]), "_dw_sigcounter")); |
10969 signal = _dw_findsignal(signame); | 10969 signal = _dw_findsignal(signame); |