Skip to content

Commit

Permalink
oscplot.c: replace deprecated gtk3 function
Browse files Browse the repository at this point in the history
use gtk_tool_button_set_icon_name instead of gtk_tool_button_set_stock_id

Signed-off-by: Cristina Suteu <[email protected]>
  • Loading branch information
cristina-suteu committed Jan 30, 2024
1 parent 80f77a4 commit def1b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oscplot.c
Original file line number Diff line number Diff line change
Expand Up @@ -6876,11 +6876,11 @@ static void fullscreen_changed_cb(GtkWidget *widget, OscPlot *plot)

if (priv->fullscreen_state) {
gtk_window_unfullscreen(GTK_WINDOW(priv->window));
gtk_tool_button_set_stock_id(GTK_TOOL_BUTTON(priv->fullscreen_button), "gtk-fullscreen");
gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(priv->fullscreen_button), "gtk-fullscreen");
gtk_menu_item_set_label(GTK_MENU_ITEM(priv->menu_fullscreen), "Fullscreen");
} else {
gtk_window_fullscreen(GTK_WINDOW(priv->window));
gtk_tool_button_set_stock_id(GTK_TOOL_BUTTON(priv->fullscreen_button), "gtk-leave-fullscreen");
gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(priv->fullscreen_button), "gtk-leave-fullscreen");
gtk_menu_item_set_label(GTK_MENU_ITEM(priv->menu_fullscreen), "Leave Fullscreen");
}
}
Expand Down

0 comments on commit def1b17

Please sign in to comment.