Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with text "Search for:" field in "Replace" pop up #1204

Closed
pwil3058 opened this issue Sep 2, 2016 · 23 comments
Closed

Problems with text "Search for:" field in "Replace" pop up #1204

pwil3058 opened this issue Sep 2, 2016 · 23 comments
Labels
duplicate This has already been reported
Milestone

Comments

@pwil3058
Copy link

pwil3058 commented Sep 2, 2016

Using Geany 1.28 on Korora 24 (Fedora 24 derivative) under Cinnamon 3.0.7 I'm experiencing strange problems with the text in the "Search for:" field in the "Replace" pop up that aren't show stoppers but are quite annoying.

At the end of a search that is unsuccessful this field is cleared and then becomes unusable in that I can't edit text in the field, paste into the field or restore text using the drop down list of previous searches. This can be quite annoying if one is trying to do a search with a complex regular expression which isn't quite right yet and needs testing and editing/refinement.

Closing the pop up and starting again yields a working pop up again so all is not lost.

This behaviour has only started recently and I have not noticed it before.

However, out of curiosity, I checked the equivalent field in the "Find" pop up and found the same problem is occurring there.

@elextr
Copy link
Member

elextr commented Sep 2, 2016

Versions of GTK? Is this #1135?

@elextr
Copy link
Member

elextr commented Sep 3, 2016

@pwil3058 you would have been better commenting here not on the closed issue #1135.

Can you try building from the latest Git version that contains the fix to see if it fixes your issue? There is a nightly tarball that minimises the build dependencies you need.

@pwil3058
Copy link
Author

pwil3058 commented Sep 3, 2016

I'll give it a go.

On 03/09/16 10:25, elextr wrote:

@pwil3058 https://github.com/pwil3058 you would have been better
commenting here not on the closed issue #1135
#1135.

Can you try building from the latest Git version that contains the fix
to see if it fixes your issue? There is a nightly tarball that minimises
the build dependencies you need.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
https://github.com/notifications/unsubscribe-auth/AAMguTdwf88gil2xO6zP_fxckz7mTs6Mks5qmL5tgaJpZM4JzZXn.

@elextr
Copy link
Member

elextr commented Sep 3, 2016

On 3 September 2016 at 10:26, Peter Williams notifications@github.com
wrote:

I'll give it a go.

​Don't forget you have to manually select --enable-gtk3 to the configure.​

If you untared the tarball into /some/dir giving /some/dir/geany adding
--prefix=/some/dir to the configure as well will allow you to install in
/some/dir and not touch your system install

On 03/09/16 10:25, elextr wrote:

@pwil3058 https://github.com/pwil3058 you would have been better
commenting here not on the closed issue #1135
#1135.

Can you try building from the latest Git version that contains the fix
to see if it fixes your issue? There is a nightly tarball that minimises
the build dependencies you need.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMguTdwf88gil2xO6zP_
fxckz7mTs6Mks5qmL5tgaJpZM4JzZXn>.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1204 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAxgTQ2lJwt7PVIqoXC14QPRyrKD66cJks5qmL60gaJpZM4JzZXn
.

@pwil3058
Copy link
Author

pwil3058 commented Sep 3, 2016

When I do:

./configure

I get "No such file or directory" so things aren't going well.

Peter

On 03/09/16 10:31, elextr wrote:

On 3 September 2016 at 10:26, Peter Williams notifications@github.com
wrote:

I'll give it a go.

​Don't forget you have to manually select --enable-gtk3 to the configure.​

If you untared the tarball into /some/dir giving /some/dir/geany adding
--prefix=/some/dir to the configure as well will allow you to install in
/some/dir and not touch your system install

On 03/09/16 10:25, elextr wrote:

@pwil3058 https://github.com/pwil3058 you would have been better
commenting here not on the closed issue #1135
#1135.

Can you try building from the latest Git version that contains the fix
to see if it fixes your issue? There is a nightly tarball that minimises
the build dependencies you need.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMguTdwf88gil2xO6zP_
fxckz7mTs6Mks5qmL5tgaJpZM4JzZXn>.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1204 (comment),
or mute
the thread

https://github.com/notifications/unsubscribe-auth/AAxgTQ2lJwt7PVIqoXC14QPRyrKD66cJks5qmL60gaJpZM4JzZXn
.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
https://github.com/notifications/unsubscribe-auth/AAMguS3lg-IzCQuuFG8Z4WIGBbZ5fPQfks5qmL_7gaJpZM4JzZXn.

@elextr
Copy link
Member

elextr commented Sep 3, 2016

did you do that inside the geany directory that was created by untaring the tarball?

@pwil3058
Copy link
Author

pwil3058 commented Sep 3, 2016

OK, I figured out that I need autoconf etc. So installed them and ran
./autogen.sh and started installing the libraries that it complained
about but ran into a problem with glib. It kept complaining about
needing glib even after I installed it so I installed glib-devel as well
but it still complained. I did the same with glibc in case it was a
package name error but still no joy.

So I'm more or less stymied.
Peter
PS This experience has reinforced my belief the PyGObject is the best
way to do GUIs as it hides all these difficult setup issues :-)

On 03/09/16 10:39, Peter Williams wrote:

When I do:

./configure

I get "No such file or directory" so things aren't going well.

Peter

On 03/09/16 10:31, elextr wrote:

On 3 September 2016 at 10:26, Peter Williams notifications@github.com
wrote:

I'll give it a go.

​Don't forget you have to manually select --enable-gtk3 to the
configure.​

If you untared the tarball into /some/dir giving /some/dir/geany adding
--prefix=/some/dir to the configure as well will allow you to install in
/some/dir and not touch your system install

On 03/09/16 10:25, elextr wrote:

@pwil3058 https://github.com/pwil3058 you would have been better
commenting here not on the closed issue #1135
#1135.

Can you try building from the latest Git version that contains the fix
to see if it fixes your issue? There is a nightly tarball that
minimises
the build dependencies you need.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub

#1204 (comment), or
mute the thread

<https://github.com/notifications/unsubscribe-auth/AAMguTdwf88gil2xO6zP_
fxckz7mTs6Mks5qmL5tgaJpZM4JzZXn>.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1204 (comment),
or mute
the thread

https://github.com/notifications/unsubscribe-auth/AAxgTQ2lJwt7PVIqoXC14QPRyrKD66cJks5qmL60gaJpZM4JzZXn

.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
https://github.com/notifications/unsubscribe-auth/AAMguS3lg-IzCQuuFG8Z4WIGBbZ5fPQfks5qmL_7gaJpZM4JzZXn.

@pwil3058
Copy link
Author

pwil3058 commented Sep 3, 2016

No, I did in the geany.git directory that I got by doing a git clone.

Peter

On 03/09/16 10:47, elextr wrote:

did you do that inside the geany directory that was created by untaring
the tarball?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
https://github.com/notifications/unsubscribe-auth/AAMguZsSd5vJZybSAU6_Fr87MAIJSwtKks5qmMORgaJpZM4JzZXn.

@elextr
Copy link
Member

elextr commented Sep 3, 2016

On 3 September 2016 at 10:51, Peter Williams notifications@github.com
wrote:

No, I did in the geany.git directory that I got by doing a git clone.

​Oh well, ok, then yeah you need to do autogen.sh first as you found. The
tarball has some things done for you.

RE glib did you put --enable-gtk3 on the configure? As I said the default
is gtk2.​

Peter

On 03/09/16 10:47, elextr wrote:

did you do that inside the geany directory that was created by untaring
the tarball?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMguZsSd5vJZybSAU6_
Fr87MAIJSwtKks5qmMORgaJpZM4JzZXn>.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1204 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAxgTUfTKJbkGoNzPOGlDEryFx_dvSXCks5qmMSSgaJpZM4JzZXn
.

@pwil3058
Copy link
Author

pwil3058 commented Sep 3, 2016

I haven't got that far yet. It keeps failing looking for glib even
though I have both glib and glib-devel (1.2.10) installed.

Peter

On 03/09/16 10:53, elextr wrote:

On 3 September 2016 at 10:51, Peter Williams notifications@github.com
wrote:

No, I did in the geany.git directory that I got by doing a git clone.

​Oh well, ok, then yeah you need to do autogen.sh first as you found. The
tarball has some things done for you.

RE glib did you put --enable-gtk3 on the configure? As I said the default
is gtk2.​

Peter

On 03/09/16 10:47, elextr wrote:

did you do that inside the geany directory that was created by untaring
the tarball?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMguZsSd5vJZybSAU6_
Fr87MAIJSwtKks5qmMORgaJpZM4JzZXn>.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1204 (comment),
or mute
the thread

https://github.com/notifications/unsubscribe-auth/AAxgTUfTKJbkGoNzPOGlDEryFx_dvSXCks5qmMSSgaJpZM4JzZXn
.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
https://github.com/notifications/unsubscribe-auth/AAMgueqBrceWRQrflQhsEMBcMbwluBbzks5qmMUCgaJpZM4JzZXn.

@codebrainz
Copy link
Member

What is the exact message it prints? What command are you running exactly when the error occurs?

@codebrainz
Copy link
Member

Note also that autogen.sh will forward arguments to configure script which it calls automatically, so ./autogen.sh --prefix=/some/where --enable-gtk3 or whichever options you want.

@pwil3058
Copy link
Author

pwil3058 commented Sep 3, 2016

~/.../GITHUB/geany.git $ sudo dnf install glib
[sudo] password for peter:
Last metadata expiration check: 0:39:04 ago on Sat Sep 3 10:13:11 2016.
Package glib-1:1.2.10-47.fc24.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
~/.../GITHUB/geany.git $ sudo dnf install glib-devel
Last metadata expiration check: 0:42:21 ago on Sat Sep 3 10:13:11 2016.
Package glib-devel-1:1.2.10-47.fc24.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
~/.../GITHUB/geany.git $ ./autogen.sh

Error: You must have `glib' installed.
You can get it from: ftp://ftp.gtk.org/pub/gtk
~/.../GITHUB/geany.git $ ./autogen.sh --enable-gtk3

Error: You must have `glib' installed.
You can get it from: ftp://ftp.gtk.org/pub/gtk

On 03/09/16 10:57, Matthew Brush wrote:

What is the exact message it prints? What command are you running
exactly when the error occurs?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
https://github.com/notifications/unsubscribe-auth/AAMguS3N77LqdQnNy5ZRg755iBReLAEPks5qmMYOgaJpZM4JzZXn.

@codebrainz
Copy link
Member

GLib 1.2 is something like 17 years old. I think you need at least 2.38 or so.

@codebrainz
Copy link
Member

Try glib2-devel.

@elextr
Copy link
Member

elextr commented Sep 3, 2016

@pwil3058 where did you get the versions you posted in #1135? The glib and gtk versions Geany is using are shown near the top of the menu->help->debug messages. Can you post that line (looks like 11:16:07: Geany INFO : GTK 3.18.9, GLib 2.48.1)

@pwil3058
Copy link
Author

pwil3058 commented Sep 3, 2016

From dnf. From geany I get:

11:11:26: Geany INFO : Geany 1.28, en_AU.utf8
11:11:26: Geany INFO : GTK 2.24.30, GLib 2.48.2

On 03/09/16 11:16, elextr wrote:

@pwil3058 https://github.com/pwil3058 where did you get the versions
you posted in #1135 #1135? The
glib and gtk versions Geany is using are shown near the top of the
menu->help->debug messages. Can you post that line (looks like
|11:16:07: Geany INFO : GTK 3.18.9, GLib 2.48.1|)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
https://github.com/notifications/unsubscribe-auth/AAMguTWMH-KgIiXpIzSAyR18eMkI9aR6ks5qmMqHgaJpZM4JzZXn.

@elextr
Copy link
Member

elextr commented Sep 3, 2016

OK, your problem is nothing to do with #1135, thats a GTK3 problem IIUC (@b4n correct?). So no need to make geany I don't think.

Your geany is built with gtk2.

It may be something to do with your theme, can you try a different one or two?

@pwil3058
Copy link
Author

pwil3058 commented Sep 3, 2016

I would say that it's either both a Gtk3 and Gtk2 problem or neither as
the symptoms are identical for me as they are for #1135.

My attempts to build are still failing as your auto configure stuff
can't find gtk+-3.0 on my system even though it's there. I tried
without the --enable-gtk3 option and after in installed gtk2-lib it
seems to be building.

I guess because they install packages that use both gtk+-2.0 and
gkt+-30, Fedora installs both of these versions of gtk+ (and even
provide version 1 as an optional package) using the names gtk2 and gtk3
(and gtk) respectively. Can your scripts handle that?

Peter
PS I actually prefer gtk2 programs to gtk3 as the interface has a better
appearance IMHO but in order to make GUIs using Python3 im switching to
PyGObject (which is gtk3) so I guess that I'll have to get used to it.

On 03/09/16 11:26, elextr wrote:

OK, your problem is nothing to do with #1135
#1135, thats a GTK3 problem IIUC
(@b4n https://github.com/b4n correct?). So no need to make geany I
don't think.

Your geany is built with gtk2.

It may be something to do with your theme, can you try a different one
or two?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
https://github.com/notifications/unsubscribe-auth/AAMguc_gXTroQY9rct2cVQGaECux94vqks5qmMyzgaJpZM4JzZXn.

@pwil3058
Copy link
Author

pwil3058 commented Sep 3, 2016

OK. Built successfully against gtk2 and installed in /usr/local :-)

Perfunctory tests (usually the best you can expect for a GUI) indicate
that the problem is indeed fixed :-). I'll keep this installed and use
it as my default for the time being in order to test it more extensively.

Thanks
Peter

On 03/09/16 11:56, Peter Williams wrote:

I would say that it's either both a Gtk3 and Gtk2 problem or neither as
the symptoms are identical for me as they are for #1135.

My attempts to build are still failing as your auto configure stuff
can't find gtk+-3.0 on my system even though it's there. I tried
without the --enable-gtk3 option and after in installed gtk2-lib it
seems to be building.

I guess because they install packages that use both gtk+-2.0 and
gkt+-30, Fedora installs both of these versions of gtk+ (and even
provide version 1 as an optional package) using the names gtk2 and gtk3
(and gtk) respectively. Can your scripts handle that?

Peter
PS I actually prefer gtk2 programs to gtk3 as the interface has a better
appearance IMHO but in order to make GUIs using Python3 im switching to
PyGObject (which is gtk3) so I guess that I'll have to get used to it.

On 03/09/16 11:26, elextr wrote:

OK, your problem is nothing to do with #1135
#1135, thats a GTK3 problem IIUC
(@b4n https://github.com/b4n correct?). So no need to make geany I
don't think.

Your geany is built with gtk2.

It may be something to do with your theme, can you try a different one
or two?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1204 (comment), or
mute the thread
https://github.com/notifications/unsubscribe-auth/AAMguc_gXTroQY9rct2cVQGaECux94vqks5qmMyzgaJpZM4JzZXn.

@elextr
Copy link
Member

elextr commented Sep 3, 2016

Ok, neat, thanks for testing, that fix will be in 1.29 when its released in a month or so.

@elextr elextr added the duplicate This has already been reported label Sep 3, 2016
@elextr elextr closed this as completed Sep 3, 2016
@b4n
Copy link
Member

b4n commented Sep 3, 2016

OK, your problem is nothing to do with #1135, thats a GTK3 problem IIUC (@b4n correct?).

No, it does affect GTK2 only actually. The GTK3 part of the fix is merely for the selection to be custom-colored again in >3.20, but it wouldn't be a problem unless the theme's selection background was white anyway.

@elextr
Copy link
Member

elextr commented Sep 3, 2016

@b4n, yeah, ok, thats visible when I read the actual patch

@b4n b4n added this to the 1.29 milestone Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This has already been reported
Projects
None yet
Development

No branches or pull requests

4 participants