Ok, I'm new to this list, got directed here from a discussion started earlier today here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1594456&gro...
Anyway, I've downloaded the latest source via the SVN (r985) and compiled it. I have noticed that the scrollbars do not only get cut of in the terminal window as I mentioned in the discussion in the above link, but also in the status window, scribble pad, etc..., so I thought I would see if I can maybe find a solution for it.
I've been plodding away at the source code for a few hours, seeing if I can find a solution, but mainly just becoming familiar with the source code for now (and GTK in general) and hopefully find where the problem could probably be.
I initially believed it could be located in msgwindow.c file but it could also be the way the message panel is inserted, or one of it's properties maybe. The control I believe I should be looking at, "scrolledwindow1" or one of it's children, after having a look at the geany.glade file.
I will keep plodding away as I find this quite interesting anyway, whether I can fix it or not. Any hints that might help will be much appreciated though.
I'm not an experienced Gnome programmer as of yet, as I have only just left behind the Windoze environment, but I have about 12-13 years programming experience mainly in Pascal (DOS), and Delphi (Win32), but the last 5 years now also in PHP and Java... and some C++, so C code doesn't scare me a bit ;-)
I've always been interested in either joining an open source project, starting a new one, or just helping bits and pieces on existing projects where I can, but I'm afraid I have very little GTK knowledge as of yet. I have been programming in DOS, Win32, and OpenGL for 10+ years, both low and high level, and I learn new things very quickly.
I think I should start learning GTK programming now as this interests me (and the Gnome project in general), maybe in the future I can be of a bit of help.
Oh, I also speak two languages, English... and Dutch (although a little rusty in Dutch), but I see you already have a Dutch translator?
On Sat, 11 Nov 2006 23:44:05 +1300, Rob van der Linde robvdl@paradise.net.nz wrote:
Hi,
Anyway, I've downloaded the latest source via the SVN (r985) and compiled it. I have noticed that the scrollbars do not only get cut of in the terminal window as I mentioned in the discussion in the above link, but also in the status window, scribble pad, etc..., so I thought I would see if I can maybe find a solution for it.
I've been plodding away at the source code for a few hours, seeing if I can find a solution, but mainly just becoming familiar with the source code for now (and GTK in general) and hopefully find where the problem could probably be.
I initially believed it could be located in msgwindow.c file but it could also be the way the message panel is inserted, or one of it's properties maybe. The control I believe I should be looking at, "scrolledwindow1" or one of it's children, after having a look at the geany.glade file.
You can also look into src/interface.c, this is the generated code from Glade. But changes should be done in geany.glade because the interface.c will be overwridden each time glade is used.
Oh, I also speak two languages, English... and Dutch (although a little rusty in Dutch), but I see you already have a Dutch translator?
Yes, we have. But feel free to contact Kurt De Bree(the Dutch translator) or Frank (frank@frank.uvena.de, our translation maintainer) to help translating, if you like to.
Thanks for your help.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On 11/11/06 10:44:05, Rob van der Linde wrote:
Ok, I'm new to this list, got directed here from a discussion started earlier today here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1594456&gro...
Anyway, I've downloaded the latest source via the SVN (r985) and compiled it. I have noticed that the scrollbars do not only get cut of in the terminal window as I mentioned in the discussion in the above link, but also in the status window, scribble pad, etc..., so I thought I would see if I can maybe find a solution for it.
[...] I initially believed it could be located in msgwindow.c file but it could also be the way the message panel is inserted, or one of it's properties maybe. The control I believe I should be looking at, "scrolledwindow1" or one of it's children, after having a look at the geany.glade file.
This could be related to the virtual terminal (vte) widget - we had a problem before that the default width of the vte would push the hscrollbar out of view with larger vte font sizes, and it affected all the message window tabs. The solution was to call vte_terminal_set_size in vte_char_size_changed, here's the revision link: http://svn.sourceforge.net/viewvc/geany?view=rev&revision=565
This might not be relevant, but I would try running geany without the vte: 'geany -t' and see if that affects the problem.
I've always been interested in either joining an open source project, starting a new one, or just helping bits and pieces on existing projects where I can, but I'm afraid I have very little GTK knowledge as of yet. I have been programming in DOS, Win32, and OpenGL for 10+ years, both low and high level, and I learn new things very quickly.
Welcome to the list...
Regards, Nick
On Sat, 2006-11-11 at 16:39 +0000, Nick Treleaven wrote:
This could be related to the virtual terminal (vte) widget - we had a problem before that the default width of the vte would push the hscrollbar out of view with larger vte font sizes, and it affected all the message window tabs. The solution was to call vte_terminal_set_size in vte_char_size_changed, here's the revision link: http://svn.sourceforge.net/viewvc/geany?view=rev&revision=565
Yes, I see what you mean, I've been playing around with the vte.c file for a few hours today, but haven't been able to find a fix for the vertical scrollbar as of yet.
I've downloaded the source code for Anjuta 2.0.2 and have been comparing Geany's vte.c file against the Anjuta terminal.c file. Since Anjuta's appears to not have the scrollbar thing, I thought I'd use that as a reference.
I think what I will do just for fun is see if I can rebuild vte.c using Ajuta's terminal.c file as a reference. Don't worry about me, I enjoy hacking away at source anyway, if I find a solution, I will post it, if not, well... at least I would have learned something about GTK.
I have found the bug with the cut off vertical terminal scrollbars ;-) and the fix is really easy, only a single line needs to be added to vte.c, I found this by comparing with the Anjuta source..
ok, so vte.c, line 151 says:
vf->vte_terminal_set_size(VTE_TERMINAL(vte), 30, 1);
Just above this line, add the following new line:
gtk_widget_set_size_request(GTK_WIDGET(vte), 10, 10);
I have checked and rechecked, and I am pretty confident that just adding this one line fixes it. I even did a clean CVS checkout of the latest revision 987 and added just this one line and it has fixed the problem.
On 12/11/06 07:15:18, Rob van der Linde wrote:
I have found the bug with the cut off vertical terminal scrollbars ;-) and the fix is really easy, only a single line needs to be added to vte.c, I found this by comparing with the Anjuta source..
Thanks for this, committed in SVN r988. Good idea to check it against the Anjuta terminal plugin. The scrollbar problem didn't affect my setup, so hopefully I'll never see this bug now ;-)
Regards, Nick