Active Topics

 


Reply
Thread Tools
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#151
Commits done, except one:

Code:
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));
-
 }
I still need to get to the bottom of this one.

Instructions for building so that tests can run using the module are in the commit message:
https://github.com/android-808/hildo...9a7cfe8625f3c1
 

The Following 11 Users Say Thank You to Android_808 For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#152
I am stuck porting gnome-vfs part of libhildonfm, esp in finding (gio) replacement of gnome_vfs_volume_monitor_get_volume_for_path. Any hint?
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 3 Users Say Thank You to freemangordon For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#153
How about:

Create a GFile
Code:
GFile *
g_file_new_for_path (const char *path);
Get the enclosing mount for that GFile
Code:
GMount *
g_file_find_enclosing_mount (GFile *file,
                             GCancellable *cancellable,
                             GError **error);
or

Code:
void
g_file_find_enclosing_mount_async (GFile *file,
                                   int io_priority,
                                   GCancellable *cancellable,
                                   GAsyncReadyCallback callback,
                                   gpointer user_data);
Then get the volume from the mount
Code:
GVolume *
g_mount_get_volume (GMount *mount);
 

The Following 5 Users Say Thank You to Android_808 For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#154
Additionally, it might be worth taking a look at gtkplacessidebar.c, theres quite a lot of GVolume, GMount related code there.
 

The Following 6 Users Say Thank You to Android_808 For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#155
Originally Posted by Android_808 View Post
How about:

Create a GFile
Code:
GFile *
g_file_new_for_path (const char *path);
Get the enclosing mount for that GFile
Code:
GMount *
g_file_find_enclosing_mount (GFile *file,
                             GCancellable *cancellable,
                             GError **error);
or

Code:
void
g_file_find_enclosing_mount_async (GFile *file,
                                   int io_priority,
                                   GCancellable *cancellable,
                                   GAsyncReadyCallback callback,
                                   gpointer user_data);
Then get the volume from the mount
Code:
GVolume *
g_mount_get_volume (GMount *mount);
Already tried that, doesn't work. I looked at lots of code over the inet, g_file_find_enclosing_mount is used all over the place, but it doesn't work like one may think of.
I am playing with g_file_find_enclosing_mount(), gio Unix Mounts, GVfs and what not for the last couple of days with no success.

It is even worse - on my ubuntu 14.04, g_volume_monitor_get_mounts() returns only one mount - sftp:// mount to my devuan VM, but nothing about local mounts ("/", "run", ...)
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 5 Users Say Thank You to freemangordon For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#156
We also use it in hildon-desktop, in hd-backgrounds.c IIRC. I checked my Cordia version but evidently they ripped it out. The few examples I came across were gnome-main-menu, which has now disabled the code as they were using it for thumbnail generation.

I haven't looked at hildonfm yet. The thumbnail code ripped out of hildon-home and hildon-thumbnail I was going to take a look at xfce as their generator is a descendant of ours.

I'll try and find some more examples.
 

The Following 5 Users Say Thank You to Android_808 For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#157
I made some progress on at least finding the GUnixMountEntry for a path. Still, there is no way to find GMount out of GUnixMountEntry (GMount is the replacement of GnomeVFSVolume according to https://developer.gnome.org/gio/stable/ch33.html)

What I got so far is that GMount is "user visible mount" - whatever it is. IOW - this is what is seen in "places" in nautilus, IIUC.
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 6 Users Say Thank You to freemangordon For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#158
ok, it seems the piece of code I am trying to port is only interested in local mounts, so GUnixMountEntry should do the job. It is already too late here so I will continue tomorrow, but I think I have an idea on what to do.
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 4 Users Say Thank You to freemangordon For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#159
I guess https://github.com/fremantle-gtk2/li...bd3389707b83d8 should do the job, will see once it is fully ported
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 7 Users Say Thank You to freemangordon For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#160
libhildonfm is almost finished, yet I wonder what is the best way to deal with hildon_get_user_named_dir

Nokia implemented it in glib, but I don;t want to patch it. Maybe we should teach Maemo to use the same dirs as the other DEs, however, I can't find the equivalent of NOKIA_CAMERA_DIR
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 10 Users Say Thank You to freemangordon For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:32.