[gnome-photos/wip/rishi/issue88: 2/2] properties-dialog: Pass an unsigned long to ngettext



commit 0a6251d2e6e2daa5cb855612f8887b7cea7856e7
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]