| The Following 11 Users Say Thank You to Android_808 For This Useful Post: | ||
|
|
2017-03-04
, 16:38
|
|
Posts: 3,058 |
Thanked: 12,894 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#152
|
| The Following 3 Users Say Thank You to freemangordon For This Useful Post: | ||
|
|
2017-03-04
, 21:21
|
|
Posts: 1,200 |
Thanked: 3,020 times |
Joined on Dec 2010
|
#153
|
GFile * g_file_new_for_path (const char *path);
GMount *
g_file_find_enclosing_mount (GFile *file,
GCancellable *cancellable,
GError **error);
void
g_file_find_enclosing_mount_async (GFile *file,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GVolume * g_mount_get_volume (GMount *mount);
| The Following 5 Users Say Thank You to Android_808 For This Useful Post: | ||
|
|
2017-03-04
, 21:42
|
|
Posts: 1,200 |
Thanked: 3,020 times |
Joined on Dec 2010
|
#154
|
| The Following 6 Users Say Thank You to Android_808 For This Useful Post: | ||
|
|
2017-03-04
, 22:26
|
|
Posts: 3,058 |
Thanked: 12,894 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#155
|
How about:
Create a GFile
Get the enclosing mount for that GFileCode:GFile * g_file_new_for_path (const char *path);
orCode:GMount * g_file_find_enclosing_mount (GFile *file, GCancellable *cancellable, GError **error);
Then get the volume from the mountCode:void g_file_find_enclosing_mount_async (GFile *file, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
Code:GVolume * g_mount_get_volume (GMount *mount);
| The Following 5 Users Say Thank You to freemangordon For This Useful Post: | ||
|
|
2017-03-04
, 23:06
|
|
Posts: 1,200 |
Thanked: 3,020 times |
Joined on Dec 2010
|
#156
|
| The Following 5 Users Say Thank You to Android_808 For This Useful Post: | ||
|
|
2017-03-04
, 23:26
|
|
Posts: 3,058 |
Thanked: 12,894 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#157
|
|
|
2017-03-04
, 23:49
|
|
Posts: 3,058 |
Thanked: 12,894 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#158
|
| The Following 4 Users Say Thank You to freemangordon For This Useful Post: | ||
|
|
2017-03-05
, 09:21
|
|
Posts: 3,058 |
Thanked: 12,894 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#159
|
| The Following 7 Users Say Thank You to freemangordon For This Useful Post: | ||
|
|
2017-04-06
, 15:36
|
|
Posts: 3,058 |
Thanked: 12,894 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#160
|
| The Following 10 Users Say Thank You to freemangordon For This Useful Post: | ||
diff --git a/tests/check-hildon-font-selection-dialog.c b/tests/check-hildon-font-selection-dialog.c index ec79a12..43bbeab 100644 --- a/tests/check-hildon-font-selection-dialog.c +++ b/tests/check-hildon-font-selection-dialog.c @@ -69,11 +69,10 @@ fx_setup_default_font_selection_dialog () static void fx_teardown_default_font_selection_dialog () { - - gtk_widget_destroy(GTK_WIDGET(font_selection_dialog)); +//FIXME the following line causes a segfault. + //gtk_widget_destroy(GTK_WIDGET(font_selection_dialog)); gtk_widget_destroy(GTK_WIDGET(showed_window)); - }Instructions for building so that tests can run using the module are in the commit message:
https://github.com/android-808/hildo...9a7cfe8625f3c1