[totem] grilo: "Remaining" is a guint



commit af5d401d866fef1aedae6de83ba5287b8c5e0e94
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 17 17:29:12 2014 +0100

    grilo: "Remaining" is a guint
    
    GrlSourceResultCb returns the number of remaining items as
    a guint so use that.

 src/plugins/grilo/grilo.ui      |    4 ++--
 src/plugins/grilo/totem-grilo.c |   12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/grilo/grilo.ui b/src/plugins/grilo/grilo.ui
index c691dd1..bb4278a 100644
--- a/src/plugins/grilo/grilo.ui
+++ b/src/plugins/grilo/grilo.ui
@@ -59,7 +59,7 @@
       <!-- column-name page -->
       <column type="gint"/>
       <!-- column-name remaining -->
-      <column type="gint"/>
+      <column type="guint"/>
     </columns>
   </object>
   <object class="GtkTreeStore" id="gw_browse_store_results">
@@ -90,7 +90,7 @@
       <!-- column-name page -->
       <column type="gint"/>
       <!-- column-name remaining -->
-      <column type="gint"/>
+      <column type="guint"/>
     </columns>
   </object>
   <object class="GtkVBox" id="gw_search">
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index bf9b907..22aef96 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -92,7 +92,7 @@ typedef struct {
        GrlSource *search_source;
        guint search_id;
        gint search_page;
-       gint search_remaining;
+       guint search_remaining;
        gchar *search_text;
 
        /* Toolbar widgets */
@@ -343,7 +343,7 @@ browse_cb (GrlSource *source,
        TotemGriloPlugin *self;
        GtkTreeIter parent;
        GtkWindow *window;
-       gint remaining_expected;
+       guint remaining_expected;
 
        bud = (BrowseUserData *) user_data;
        self = bud->totem_grilo;
@@ -706,7 +706,7 @@ browser_activated_cb (GdMainView  *view,
                       GtkTreePath *path,
                       gpointer user_data)
 {
-       gint remaining;
+       guint remaining;
        gint page;
        GtkTreeModel *model;
        GtkTreeIter iter;
@@ -1115,7 +1115,7 @@ get_more_browse_results_cb (GtkAdjustment *adjustment,
        GrlSource *source;
        GrlMedia *container;
        gint page;
-       gint remaining;
+       guint remaining;
        gboolean stop_processing = FALSE;
 
        if (adjustment_over_limit (adjustment) == FALSE)
@@ -1571,11 +1571,11 @@ remaining_to_text (GtkTreeViewColumn *column,
                   GtkTreeIter       *iter,
                   gpointer           user_data)
 {
-       gint remaining;
+       guint remaining;
        char *text;
 
        gtk_tree_model_get (model, iter, MODEL_RESULTS_REMAINING, &remaining, -1);
-       text = g_strdup_printf ("%d", remaining);
+       text = g_strdup_printf ("%u", remaining);
        g_object_set (cell, "text", text, NULL);
        g_free (text);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]