summaryrefslogtreecommitdiff
path: root/src/math-buttons.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-06-01 12:18:13 +0200
committerraveit65 <[email protected]>2018-06-03 08:58:05 +0200
commit58f106ab043c6d1b0199bb8a0f8552deb32e12ef (patch)
tree72f9f5d52da1486668e584c17d2df3ad070b09aa /src/math-buttons.c
parent074773ba71ac5a2536a5791f646ff0f7af4cdd43 (diff)
downloadmate-calc-58f106ab043c6d1b0199bb8a0f8552deb32e12ef.tar.bz2
mate-calc-58f106ab043c6d1b0199bb8a0f8552deb32e12ef.tar.xz
UI: avoid deprecated GtkButton:use-stock
Diffstat (limited to 'src/math-buttons.c')
-rw-r--r--src/math-buttons.c13
1 files changed, 13 insertions, 0 deletions
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;