summaryrefslogtreecommitdiff
path: root/src/math-variable-popup.c
diff options
context:
space:
mode:
authorLaurent Napias <[email protected]>2019-06-29 10:49:33 +0200
committerraveit65 <[email protected]>2019-07-03 15:04:19 +0200
commitd7195c1d58c93398efd3567ed69558b657e7b74b (patch)
tree2a37db47816a37eb01d95d5933de9c1e079ed599 /src/math-variable-popup.c
parent87d647ad3be67c033dbb6aa80cfcdd4cbce3a42d (diff)
downloadmate-calc-d7195c1d58c93398efd3567ed69558b657e7b74b.tar.bz2
mate-calc-d7195c1d58c93398efd3567ed69558b657e7b74b.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'src/math-variable-popup.c')
-rw-r--r--src/math-variable-popup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math-variable-popup.c b/src/math-variable-popup.c
index 787d13e..fee5526 100644
--- a/src/math-variable-popup.c
+++ b/src/math-variable-popup.c
@@ -72,7 +72,7 @@ variable_name_changed_cb(GtkWidget *widget, MathVariablePopup *popup)
const gchar *text = gtk_entry_get_text(GTK_ENTRY(popup->priv->variable_name_entry));
gtk_widget_set_sensitive(popup->priv->add_variable_button, text[0] != '\0');
}
-
+
static void
add_variable_cb(GtkWidget *widget, MathVariablePopup *popup)
@@ -102,7 +102,7 @@ save_variable_cb(GtkWidget *widget, MathVariablePopup *popup)
MPNumber z;
name = g_object_get_data(G_OBJECT(widget), "variable_name");
- if (math_equation_get_number(popup->priv->equation, &z))
+ if (math_equation_get_number(popup->priv->equation, &z))
math_variables_set(math_equation_get_variables(popup->priv->equation), name, &z);
else if (math_equation_is_result(popup->priv->equation))
math_variables_set(math_equation_get_variables(popup->priv->equation), name, math_equation_get_answer(popup->priv->equation));
@@ -118,7 +118,7 @@ delete_variable_cb(GtkWidget *widget, MathVariablePopup *popup)
{
const gchar *name;
- name = g_object_get_data(G_OBJECT(widget), "variable_name");
+ name = g_object_get_data(G_OBJECT(widget), "variable_name");
math_variables_delete(math_equation_get_variables(popup->priv->equation), name);
gtk_widget_destroy(gtk_widget_get_toplevel(widget));