From 58f106ab043c6d1b0199bb8a0f8552deb32e12ef Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Fri, 1 Jun 2018 12:18:13 +0200 Subject: UI: avoid deprecated GtkButton:use-stock --- src/math-buttons.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/math-buttons.c b/src/math-buttons.c index 42191ef..69aad47 100644 --- a/src/math-buttons.c +++ b/src/math-buttons.c @@ -584,6 +584,19 @@ load_mode(MathButtons *buttons, ButtonMode mode) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), TRUE); } + /* put the icon name "process-stop" in the buttons + button1, button3, button5, button7, button9, + button11, button13, button15, button17, button19 + taken from buttons-financial.ui */ + for (i = 1; i < 20; i++) { + if (i % 2) { + widget = GET_WIDGET (builder, g_strdup_printf ("button%d",i)); + if (GTK_IS_BUTTON(widget)) + gtk_button_set_image (GTK_BUTTON (widget), + gtk_image_new_from_icon_name ("process-stop", GTK_ICON_SIZE_BUTTON)); + } + } + if (mode == PROGRAMMING) { GtkListStore *model; GtkTreeIter iter; -- cgit v1.2.1