Fix 32bit build after the history changes
This commit is contained in:
parent
08f2c028ca
commit
af610d48e4
1 changed files with 3 additions and 3 deletions
|
@ -2887,7 +2887,7 @@ midori_browser_history_render_text_cb (GtkTreeViewColumn* column,
|
||||||
{
|
{
|
||||||
KatzeItem* item;
|
KatzeItem* item;
|
||||||
char* sdate;
|
char* sdate;
|
||||||
gint age;
|
gint64 age;
|
||||||
|
|
||||||
gtk_tree_model_get (model, iter, 0, &item, 1, &age, -1);
|
gtk_tree_model_get (model, iter, 0, &item, 1, &age, -1);
|
||||||
|
|
||||||
|
@ -2909,7 +2909,7 @@ midori_browser_history_render_text_cb (GtkTreeViewColumn* column,
|
||||||
}
|
}
|
||||||
else if (age > 1)
|
else if (age > 1)
|
||||||
{
|
{
|
||||||
sdate = g_strdup_printf (_("%d days ago"), age);
|
sdate = g_strdup_printf (_("%" G_GINT64_FORMAT " days ago"), age);
|
||||||
g_object_set (renderer, "text", sdate, NULL);
|
g_object_set (renderer, "text", sdate, NULL);
|
||||||
g_free (sdate);
|
g_free (sdate);
|
||||||
}
|
}
|
||||||
|
@ -4103,7 +4103,7 @@ midori_browser_init (MidoriBrowser* browser)
|
||||||
|
|
||||||
/* History */
|
/* History */
|
||||||
box = gtk_vbox_new (FALSE, 0);
|
box = gtk_vbox_new (FALSE, 0);
|
||||||
treestore = gtk_tree_store_new (2, KATZE_TYPE_ITEM, G_TYPE_INT);
|
treestore = gtk_tree_store_new (2, KATZE_TYPE_ITEM, G_TYPE_INT64);
|
||||||
treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (treestore));
|
treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (treestore));
|
||||||
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), FALSE);
|
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), FALSE);
|
||||||
column = gtk_tree_view_column_new ();
|
column = gtk_tree_view_column_new ();
|
||||||
|
|
Loading…
Reference in a new issue