Skip to content

Commit

Permalink
Fix -Wincompatible-pointer-types in main-window-statusbar.c
Browse files Browse the repository at this point in the history
  • Loading branch information
wandrien committed May 4, 2023
1 parent 880f1e9 commit e3eb39f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main-window-statusbar.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,15 @@ static void update_status(FmMainWin * win, guint type, const char* status_text)
gtk_statusbar_pop(win->statusbar.statusbar, win->statusbar.ctx);
if (status_text)
gtk_statusbar_push(win->statusbar.statusbar, win->statusbar.ctx, status_text);
gtk_widget_set_tooltip_text(win->statusbar.statusbar, status_text);
gtk_widget_set_tooltip_text(GTK_WIDGET(win->statusbar.statusbar), status_text);
break;
}
case FM_STATUS_TEXT_SELECTED_FILES:
{
gtk_statusbar_pop(win->statusbar.statusbar, win->statusbar.ctx2);
if (status_text)
gtk_statusbar_push(win->statusbar.statusbar, win->statusbar.ctx2, status_text);
gtk_widget_set_tooltip_text(win->statusbar.statusbar, status_text);
gtk_widget_set_tooltip_text(GTK_WIDGET(win->statusbar.statusbar), status_text);
break;
}
case FM_STATUS_TEXT_FS_INFO:
Expand Down Expand Up @@ -369,7 +369,7 @@ static void update_statusbar(FmMainWin * win)

const char * status_text;

gtk_widget_set_tooltip_text(win->statusbar.statusbar, "");
gtk_widget_set_tooltip_text(GTK_WIDGET(win->statusbar.statusbar), "");

status_text = fm_tab_page_get_status_text(page, FM_STATUS_TEXT_NORMAL);
update_status(win, FM_STATUS_TEXT_NORMAL, status_text);
Expand Down

0 comments on commit e3eb39f

Please sign in to comment.