2 * arch-tag: Header for totally random functions that didn't fit elsewhere
4 * Copyright (C) 2003 Colin Walters <walters@verbum.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
27 #include <gtk/gtkimage.h>
28 #include <gtk/gtkuimanager.h>
32 gboolean
rb_true_function (gpointer dummy
);
33 gboolean
rb_false_function (gpointer dummy
);
34 gpointer
rb_null_function (gpointer dummy
);
36 gboolean
rb_gvalue_compare (GValue
*a
, GValue
*b
);
38 int rb_compare_gtimeval (GTimeVal
*a
, GTimeVal
*b
);
39 char *rb_make_duration_string (guint duration
);
40 char *rb_make_elapsed_time_string (guint elapsed
, guint duration
, gboolean show_remaining
);
42 void rb_gtk_action_popup_menu (GtkUIManager
*uimanager
, const char *path
);
44 GtkWidget
*rb_image_new_from_stock (const gchar
*stock_id
, GtkIconSize size
);
46 gchar
*rb_uri_get_mount_point (const char *uri
);
47 gboolean
rb_uri_is_mounted (const char *uri
);
50 void rb_threads_init (void);
51 gboolean
rb_is_main_thread (void);
53 gchar
* rb_search_fold (const char *original
);
54 gchar
** rb_string_split_words (const gchar
*string
);
56 gboolean
rb_string_list_equal (GList
*a
, GList
*b
);
57 void rb_list_deep_free (GList
*list
);
58 GList
* rb_string_list_copy (GList
*list
);
60 GList
* rb_collate_hash_table_keys (GHashTable
*table
);
61 GList
* rb_collate_hash_table_values (GHashTable
*table
);
63 GList
* rb_uri_list_parse (const char *uri_list
);
64 const gchar
* rb_mime_get_friendly_name (const gchar
*mime_type
);
66 gboolean
rb_signal_accumulator_object_handled (GSignalInvocationHint
*hint
,
68 const GValue
*handler_return
,
70 void rb_value_array_append_data (GValueArray
*array
, GType type
, ...);
71 void rb_value_free (GValue
*val
);
75 #endif /* __RB_UTIL_H */