[gnome-photos/wip/rishi/issue88: 3/3] properties-dialog: Pass an unsigned long to ngettext
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/issue88: 3/3] properties-dialog: Pass an unsigned long to ngettext
- Date: Fri, 16 Feb 2018 18:42:47 +0000 (UTC)
commit 09a4447e46e04458e322a2940276253b27499fc2
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Feb 16 18:08:33 2018 +0100
properties-dialog: Pass an unsigned long to ngettext
Fallout from d274adf0d7ff95cb1e70bfc317313168f59b46fc
https://gitlab.gnome.org/GNOME/gnome-photos/issues/88
src/photos-properties-dialog.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/photos-properties-dialog.c b/src/photos-properties-dialog.c
index acc165dd..5a190614 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -651,8 +651,9 @@ photos_properties_dialog_constructed (GObject *object)
{
GtkWidget *dims_data;
g_autofree gchar *dims_str = NULL;
+ gulong n = (gulong) height;
- dims_str = g_strdup_printf (ngettext ("%ld × %ld pixel", "%ld × %ld pixels", height), width, height);
+ dims_str = g_strdup_printf (ngettext ("%ld × %ld pixel", "%ld × %ld pixels", n), width, height);
dims_data = gtk_label_new (dims_str);
gtk_widget_set_halign (dims_data, GTK_ALIGN_START);
gtk_grid_attach_next_to (GTK_GRID (self->grid), dims_data, dimensions_w, GTK_POS_RIGHT, 2, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]