Dale Whittaker <dayul@users.sf.net>
Anders F Björklund <afb@macports.org>
Alexander Hesse <alex@phicode.de>
+ Brian Vuyk <brian@brianvuyk.com>
Graphics:
extension: Nancy Runge <nancy@twotoasts.de>
{
parent = katze_array_get_nth_item (array, j);
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;
}
if (j == n)
midori_view_get_icon (MIDORI_VIEW (view)));
title = midori_view_get_display_title (MIDORI_VIEW (view));
- window_title = g_strconcat (title, " - ",
- g_get_application_name (), NULL);
+ window_title = g_strconcat (title, " - ", g_get_application_name (), NULL);
gtk_window_set_title (GTK_WINDOW (browser), window_title);
g_free (window_title);
if ((date = katze_item_get_added (item)))
{
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,
0, 0, item, 1, age, -1);
g_object_unref (item);
gtk_tree_model_get (treemodel, &iter, 0, &parent, 1, &age, -1);
date = katze_item_get_added (KATZE_ITEM (parent));
date_ = (time_t)date;
- newage = sokoke_days_between (&date, &now);
+ newage = sokoke_days_between ((time_t *)&date, (time_t *)&now);
if (newage == 0)
{
found = TRUE;
const gchar* detailed_message)
{
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),
"%s", detailed_message);
gtk_widget_show (dialog);
KatzeItem* item;
g_return_val_if_fail (uri, NULL);
- if (search_engines)
- g_return_val_if_fail (katze_array_is_a (search_engines, KATZE_TYPE_ITEM), NULL);
+ g_return_val_if_fail (!search_engines ||
+ katze_array_is_a (search_engines, KATZE_TYPE_ITEM), NULL);
/* Add file:// if we have a local path */
if (g_path_is_absolute (uri))