Skip to content

Commit

Permalink
* ui_im_status_screen-cocoa.m: Fix errors in -Werror=incompatible-poi…
Browse files Browse the repository at this point in the history
…nter-types.
  • Loading branch information
arakiken committed Aug 12, 2024
1 parent a60e83d commit 08ba985
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2024-08-12 Araki Ken <arakiken@users.sf.net>

* ui_im_status_screen-cocoa.m: Fix errors in -Werror=incompatible-pointer-types.

* cocoa.m, cocoatouch.m: Fix errors in -Werror=incompatible-pointer-types.

* im_canna.c, quartz/ui_imagelib.c: Fix errors in -Werror=incompatible-pointer-types.
Expand Down
12 changes: 3 additions & 9 deletions uitoolkit/quartz/ui_im_status_screen-cocoa.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,24 @@
* methods of ui_im_status_screen_t
*/

static int destroy(ui_im_status_screen_t* stat_screen) {
static void destroy(ui_im_status_screen_t* stat_screen) {
NSWindow* window = stat_screen->window.my_window;

[window release];

free(stat_screen);

return 1;
}

static int show(ui_im_status_screen_t* stat_screen) {
static void show(ui_im_status_screen_t* stat_screen) {
NSWindow* window = stat_screen->window.my_window;

[window orderFront:window];

return 1;
}

static int hide(ui_im_status_screen_t* stat_screen) {
static void hide(ui_im_status_screen_t* stat_screen) {
NSWindow* window = stat_screen->window.my_window;

[window orderOut:window];

return 1;
}

static int set_spot(ui_im_status_screen_t* stat_screen, int x, int y) {
Expand Down

0 comments on commit 08ba985

Please sign in to comment.