summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-02-17 21:29:39 +0100
committerBastien Nocera <hadess@hadess.net>2022-02-17 22:42:23 +0100
commit1f0c4e58508f89cb0c6d1b096a1f1f094f1cbf53 (patch)
tree0019b748bac6adcace64c5bc25cef2a12240f1e5 /src/plugins
parent44def51aca7b369c3d69b60a98480bc92d8e41ff (diff)
downloadtotem-1f0c4e58508f89cb0c6d1b096a1f1f094f1cbf53.tar.gz
all: Convert totem_time_to_string() to using flags
See https://blog.ometer.com/2011/01/20/boolean-parameters-are-wrong/
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/skipto/totem-time-entry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/skipto/totem-time-entry.c b/src/plugins/skipto/totem-time-entry.c
index eb03f17e3..501d1784a 100644
--- a/src/plugins/skipto/totem-time-entry.c
+++ b/src/plugins/skipto/totem-time-entry.c
@@ -120,7 +120,7 @@ output_cb (GtkSpinButton *self, gpointer user_data)
{
gchar *text;
- text = totem_time_to_string ((gint64) gtk_spin_button_get_value (self) * 1000, FALSE, FALSE);
+ text = totem_time_to_string ((gint64) gtk_spin_button_get_value (self) * 1000, TOTEM_TIME_FLAG_NONE);
gtk_entry_set_text (GTK_ENTRY (self), text);
g_free (text);
@@ -168,7 +168,7 @@ changed_cb (GtkAdjustment *adjustment, TotemTimeEntry *self)
/* Set the width of the entry according to the length of the longest string it'll now accept */
upper = (guint) gtk_adjustment_get_upper (adjustment); /* in seconds */
- time_string = totem_time_to_string (((gint64) upper) * 1000, FALSE, FALSE);
+ time_string = totem_time_to_string (((gint64) upper) * 1000, TOTEM_TIME_FLAG_NONE);
width = strlen (time_string);
g_free (time_string);