udapted vi.po
[rhythmbox.git] / lib / rb-util.h
blobf400896466b57f7006b2885be8067bf32272416f
1 /*
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)
9 * any later version.
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.
22 #ifndef __RB_UTIL_H
23 #define __RB_UTIL_H
25 #include <stdarg.h>
26 #include <glib.h>
27 #include <gtk/gtkimage.h>
28 #include <gtk/gtkuimanager.h>
30 G_BEGIN_DECLS
32 gboolean rb_true_function (gpointer dummy);
33 gboolean rb_false_function (gpointer dummy);
34 gpointer rb_null_function (gpointer dummy);
35 gpointer rb_copy_function (gpointer data);
37 int rb_gvalue_compare (GValue *a, GValue *b);
39 int rb_compare_gtimeval (GTimeVal *a, GTimeVal *b);
40 char *rb_make_duration_string (guint duration);
41 char *rb_make_elapsed_time_string (guint elapsed, guint duration, gboolean show_remaining);
43 void rb_gtk_action_popup_menu (GtkUIManager *uimanager, const char *path);
45 GtkWidget *rb_image_new_from_stock (const gchar *stock_id, GtkIconSize size);
47 gchar *rb_uri_get_mount_point (const char *uri);
48 gboolean rb_uri_is_mounted (const char *uri);
51 void rb_threads_init (void);
52 gboolean rb_is_main_thread (void);
54 gchar* rb_search_fold (const char *original);
55 gchar** rb_string_split_words (const gchar *string);
57 gboolean rb_string_list_equal (GList *a, GList *b);
58 void rb_list_deep_free (GList *list);
59 GList* rb_string_list_copy (GList *list);
61 GList* rb_collate_hash_table_keys (GHashTable *table);
62 GList* rb_collate_hash_table_values (GHashTable *table);
64 GList* rb_uri_list_parse (const char *uri_list);
65 const gchar* rb_mime_get_friendly_name (const gchar *mime_type);
67 gboolean rb_signal_accumulator_object_handled (GSignalInvocationHint *hint,
68 GValue *return_accu,
69 const GValue *handler_return,
70 gpointer dummy);
71 void rb_value_array_append_data (GValueArray *array, GType type, ...);
72 void rb_value_free (GValue *val);
74 G_END_DECLS
76 #endif /* __RB_UTIL_H */