Fix some compiler warnings
This commit is contained in:
parent
bd65ef323b
commit
0b16997f1a
4 changed files with 8 additions and 8 deletions
1
AUTHORS
1
AUTHORS
|
@ -11,6 +11,7 @@ Contributors:
|
||||||
Dale Whittaker <dayul@users.sf.net>
|
Dale Whittaker <dayul@users.sf.net>
|
||||||
Anders F Björklund <afb@macports.org>
|
Anders F Björklund <afb@macports.org>
|
||||||
Alexander Hesse <alex@phicode.de>
|
Alexander Hesse <alex@phicode.de>
|
||||||
|
Brian Vuyk <brian@brianvuyk.com>
|
||||||
|
|
||||||
Graphics:
|
Graphics:
|
||||||
extension: Nancy Runge <nancy@twotoasts.de>
|
extension: Nancy Runge <nancy@twotoasts.de>
|
||||||
|
|
|
@ -788,7 +788,7 @@ midori_history_add_items (void* data,
|
||||||
{
|
{
|
||||||
parent = katze_array_get_nth_item (array, j);
|
parent = katze_array_get_nth_item (array, j);
|
||||||
newdate = katze_item_get_added (KATZE_ITEM (parent));
|
newdate = katze_item_get_added (KATZE_ITEM (parent));
|
||||||
if (sokoke_same_day (&date, &newdate))
|
if (sokoke_same_day ((time_t *)&date, (time_t *)&newdate))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (j == n)
|
if (j == n)
|
||||||
|
|
|
@ -2914,8 +2914,7 @@ gtk_notebook_switch_page_cb (GtkWidget* notebook,
|
||||||
midori_view_get_icon (MIDORI_VIEW (view)));
|
midori_view_get_icon (MIDORI_VIEW (view)));
|
||||||
|
|
||||||
title = midori_view_get_display_title (MIDORI_VIEW (view));
|
title = midori_view_get_display_title (MIDORI_VIEW (view));
|
||||||
window_title = g_strconcat (title, " - ",
|
window_title = g_strconcat (title, " - ", g_get_application_name (), NULL);
|
||||||
g_get_application_name (), NULL);
|
|
||||||
gtk_window_set_title (GTK_WINDOW (browser), window_title);
|
gtk_window_set_title (GTK_WINDOW (browser), window_title);
|
||||||
g_free (window_title);
|
g_free (window_title);
|
||||||
|
|
||||||
|
@ -3470,7 +3469,7 @@ _tree_store_insert_history_item (GtkTreeStore* treestore,
|
||||||
if ((date = katze_item_get_added (item)))
|
if ((date = katze_item_get_added (item)))
|
||||||
{
|
{
|
||||||
now = time (NULL);
|
now = time (NULL);
|
||||||
age = sokoke_days_between (&date, &now);
|
age = sokoke_days_between ((time_t *)&date, (time_t *)&now);
|
||||||
gtk_tree_store_insert_with_values (treestore, &iter, parent,
|
gtk_tree_store_insert_with_values (treestore, &iter, parent,
|
||||||
0, 0, item, 1, age, -1);
|
0, 0, item, 1, age, -1);
|
||||||
g_object_unref (item);
|
g_object_unref (item);
|
||||||
|
@ -3523,7 +3522,7 @@ midori_browser_new_history_item (MidoriBrowser* browser,
|
||||||
gtk_tree_model_get (treemodel, &iter, 0, &parent, 1, &age, -1);
|
gtk_tree_model_get (treemodel, &iter, 0, &parent, 1, &age, -1);
|
||||||
date = katze_item_get_added (KATZE_ITEM (parent));
|
date = katze_item_get_added (KATZE_ITEM (parent));
|
||||||
date_ = (time_t)date;
|
date_ = (time_t)date;
|
||||||
newage = sokoke_days_between (&date, &now);
|
newage = sokoke_days_between ((time_t *)&date, (time_t *)&now);
|
||||||
if (newage == 0)
|
if (newage == 0)
|
||||||
{
|
{
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
|
|
|
@ -29,7 +29,7 @@ error_dialog (const gchar* short_message,
|
||||||
const gchar* detailed_message)
|
const gchar* detailed_message)
|
||||||
{
|
{
|
||||||
GtkWidget* dialog = gtk_message_dialog_new (
|
GtkWidget* dialog = gtk_message_dialog_new (
|
||||||
NULL, 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, short_message);
|
NULL, 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", short_message);
|
||||||
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
|
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
|
||||||
"%s", detailed_message);
|
"%s", detailed_message);
|
||||||
gtk_widget_show (dialog);
|
gtk_widget_show (dialog);
|
||||||
|
@ -94,8 +94,8 @@ sokoke_magic_uri (const gchar* uri,
|
||||||
KatzeItem* item;
|
KatzeItem* item;
|
||||||
|
|
||||||
g_return_val_if_fail (uri, NULL);
|
g_return_val_if_fail (uri, NULL);
|
||||||
if (search_engines)
|
g_return_val_if_fail (!search_engines ||
|
||||||
g_return_val_if_fail (katze_array_is_a (search_engines, KATZE_TYPE_ITEM), NULL);
|
katze_array_is_a (search_engines, KATZE_TYPE_ITEM), NULL);
|
||||||
|
|
||||||
/* Add file:// if we have a local path */
|
/* Add file:// if we have a local path */
|
||||||
if (g_path_is_absolute (uri))
|
if (g_path_is_absolute (uri))
|
||||||
|
|
Loading…
Reference in a new issue