GTK problem with File menus-openSuse 11.1
- John Van Vliet
- Posts: 2944
- Joined: 28.08.2002
- With us: 22 years 2 months
Re: GTK problem with File menus-openSuse 11.1
--- edit ---
Last edited by John Van Vliet on 21.10.2013, 01:32, edited 1 time in total.
-
Topic authorcartrite
- Posts: 1978
- Joined: 15.09.2005
- With us: 19 years 2 months
- Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine
Re: GTK problem with File menus-openSuse 11.1
Even with an minor update to gtk2, gio, glib2, etc the other day, it's still broken and I can't figure out why. I haven't gotten any responce at the Suse forum either.
cartrite
I was starting to think it was my system.Indeed now the image-capture file selector of celestia-gtk is broken
as well ($HOME missing) in my new installation, while celestia-gnome works fine.
cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4
-
Topic authorcartrite
- Posts: 1978
- Joined: 15.09.2005
- With us: 19 years 2 months
- Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine
Re: GTK problem with File menus-openSuse 11.1
I did some internet searching for an answer and today I found out 2 things. !. there was a bug reported in Feb 08 that described the same problem on the gtk mailing list. Unfortunately, he never got an answer.
2.I also seen another mail in the gtk maing lists describing the same problem. He also got no answer but described his problem in a slightly different way. He said that the file menu was empty but the same file menu built with glade worked. So I did a little experiment today with glade.
I created 2 projects with a simple filechooser menu and converted them to c code. The first project was a gnome project and the second a gtk project. They both produced similar code except the gtk support.c file had an addition dealing with setting the pixmap directory.
Neither project had code calling
But both projects ran after building. They both brought up a fully functional file save menu.
I'm wondering how much code is left out by glade?
EDIT*****************
For a while last night I thought gtk would work if I ran it from the build location but I was actually building gnome. so........
Using code similar to what I posted above did nothing.
cartrite
2.I also seen another mail in the gtk maing lists describing the same problem. He also got no answer but described his problem in a slightly different way. He said that the file menu was empty but the same file menu built with glade worked. So I did a little experiment today with glade.
I created 2 projects with a simple filechooser menu and converted them to c code. The first project was a gnome project and the second a gtk project. They both produced similar code except the gtk support.c file had an addition dealing with setting the pixmap directory.
Code: Select all
static GList *pixmaps_directories = NULL;
/* Use this function to set the directory containing installed pixmaps. */
void
add_pixmap_directory (const gchar *directory)
{
pixmaps_directories = g_list_prepend (pixmaps_directories,
g_strdup (directory));
}
/* This is an internally used function to find pixmap files. */
static gchar*
find_pixmap_file (const gchar *filename)
{
GList *elem;
/* We step through each of the pixmaps directory to find it. */
elem = pixmaps_directories;
while (elem)
{
gchar *pathname = g_strdup_printf ("%s%s%s", (gchar*)elem->data,
G_DIR_SEPARATOR_S, filename);
if (g_file_test (pathname, G_FILE_TEST_EXISTS))
return pathname;
g_free (pathname);
elem = elem->next;
}
return NULL;
}
Neither project had code calling
Code: Select all
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(something), g_get_home_dir());
But both projects ran after building. They both brought up a fully functional file save menu.
I'm wondering how much code is left out by glade?
EDIT*****************
For a while last night I thought gtk would work if I ran it from the build location but I was actually building gnome. so........
Using code similar to what I posted above did nothing.
cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4
-
Topic authorcartrite
- Posts: 1978
- Joined: 15.09.2005
- With us: 19 years 2 months
- Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine
Re: GTK problem with File menus-openSuse 11.1
I think that gtk code needs to be updated. Gnome still uses GnomeVFS and GTK, since it doesn't use the gnomelib, uses GVFS. There is currently no code written to deal with gvfs. From a readme file that is part of the gvfs docs.
cartrite
cartrite
So it looks like the reason the file menus are blank is because they are not mounted by celestia? They are mounted though. I can run gvfs-ls /home/cartrite and it will give a list of all the folders and files in my home directory. I can also see my home directory in the yellow hint tab that shows when the cursor hovers over the space below Recently Used. Soon, this may also affect gnome ui's. I'm still not sure how to use this fuse support. I'm not sure but it sounds like that could be used to get gtk to work?gvfs is a userspace virtual filesystem designed to work with the i/o
abstractions of gio (a library availible in glib >= 2.15.1). It
installs several modules that are automatically used by applications
using the APIs of libgio. There is also fuse support that allows
applications not using gio to access the gvfs filesystems.
The gvfs model differs from e.g. gnome-vfs in that filesystems must
be mounted before they are used. There is a central daemon (gvfsd)
that handles coordinting mounts, and then each mount is (typically)
in its own daemon process (although mounts can share daemon process).
gvfs comes with a set of backends, including trash support, sftp,
smb, http, dav and others. More backends are planned.
gvfs also contains modules for gio that implement hal volume monitors
and the gnome uri-scheme handler configuration.
There is a set of command line programs starting with "gvfs-" that
lets you run commands (like cat, ls, stat, etc) on files in the gvfs
mounts.
cartrite
cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4
- John Van Vliet
- Posts: 2944
- Joined: 28.08.2002
- With us: 22 years 2 months
Re: GTK problem with File menus-openSuse 11.1
--- edit ---
Last edited by John Van Vliet on 21.10.2013, 01:31, edited 1 time in total.
-
Topic authorcartrite
- Posts: 1978
- Joined: 15.09.2005
- With us: 19 years 2 months
- Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine
Re: GTK problem with File menus-openSuse 11.1
Yeah I do. Use ext3. That shouldn't matter. I think the gvfs needs special code to deal with the different file system and there is none. If you notice that read me I posted above, glib 2.15 started using gvfs and gnome didn't. Gnome still doesn't on Suse 11.1. If your gtk is using gvfs and it works for you, then I'll have to assume there is a bug in the version Suse 11.1 uses.john Van Vliet wrote:cartrite
an idea ?? maybe
are you using LVM for the disk or a ext3 partition for / , /home , /tmp , /???
this is the version of gtk i am using
GTK = 2.10.0
cairo = 1.8.8
This is probably the short answer, but how do you use "Fuse"? Probably better though if the code was updated. I've been looking into it but haven't came up with anything that works yet.There is also fuse support that allows
applications not using gio to access the gvfs filesystems.
cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4
- John Van Vliet
- Posts: 2944
- Joined: 28.08.2002
- With us: 22 years 2 months
Re: GTK problem with File menus-openSuse 11.1
--- edit ---