After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 586537 - Get rid of libsexy, use new GtkLabel link support
Get rid of libsexy, use new GtkLabel link support
Status: RESOLVED FIXED
Product: vino
Classification: Applications
Component: Preferences Dialog
2.28.x
Other All
: Normal trivial
: ---
Assigned To: Vino Maintainer(s)
Vino Maintainer(s)
Depends on:
Blocks: 585385
 
 
Reported: 2009-06-21 15:07 UTC by Javier Jardón (IRC: jjardon)
Modified: 2010-06-21 20:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
Get rid of libsexy, use new GtkLabel link support (1.91 KB, patch)
2009-06-21 15:11 UTC, Javier Jardón (IRC: jjardon)
needs-work Details | Review
Get rid of libsexy, use new GtkLabel link support v2 (1.91 KB, patch)
2009-06-22 21:32 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
Get rid of libsexy, use new GtkLabel link support v3 (1.92 KB, patch)
2009-06-22 21:37 UTC, Javier Jardón (IRC: jjardon)
rejected Details | Review

Description Javier Jardón (IRC: jjardon) 2009-06-21 15:07:47 UTC
See http://live.gnome.org/GnomeGoals/DropLibsexy

Now that GtkLabel link support has been added to GTK+ (9dbb304), it would
be nice for vino to switch to it.

Trivial patch attached, but untested as I don't have gtk 2.17.1 installed here
Comment 1 Javier Jardón (IRC: jjardon) 2009-06-21 15:11:30 UTC
Created attachment 137118 [details] [review]
Get rid of libsexy, use new GtkLabel link support

I've used GTK_CHECK_VERSION(2,17,1) so it's only replaced if GTK+ >= 2.17.1
Comment 2 Jonh Wendell 2009-06-21 19:32:08 UTC
Please, take a look at sexu-url-label.c:sexy_url_label_init()

I've changed it to create the popup menu. Could you fix this as well?
Comment 3 Javier Jardón (IRC: jjardon) 2009-06-22 01:18:41 UTC
Hello John!

Well, sexy-url-label.c is only used when gtk+ < 2.17.1 so is not affected for this patch (and can be removed when you have a hard dependency with gtk+ 2.17.1)
Comment 4 Jonh Wendell 2009-06-22 11:22:31 UTC
Hi, Javier. What I'm talking is that I patched sexu-url-label.c:sexy_url_label_init() so that it fits my needs. It's that function that creates the popup-menu.

If I apply your patch, I'll loose that popup menu. Could you update your patch so that the menu is still there?
Comment 5 Javier Jardón (IRC: jjardon) 2009-06-22 21:32:53 UTC
Created attachment 137209 [details] [review]
Get rid of libsexy, use new GtkLabel link support v2

Hello, 

Sorry, my fault:
The problem was in vino-message-box.c:vino_message_box_init(), not in sexy-url-label.c:sexy_url_label_init()

Hope all is correct now.
Comment 6 Javier Jardón (IRC: jjardon) 2009-06-22 21:37:44 UTC
Created attachment 137210 [details] [review]
Get rid of libsexy, use new GtkLabel link support v3

Argh, 

sorry, this is the correct patch
Comment 7 Jonh Wendell 2009-06-22 22:48:07 UTC
Please, test your patch: Open vino-preferences and right-click on the link. You'll see what I'm talking about.
Comment 8 Luis Menina 2009-06-24 02:00:42 UTC
Seems there's no equivalent in GtkLabel to the "url-activated" signal of SexyUrlLabel. So we can't intercept the the click on a link automagically.
Comment 9 Luis Menina 2009-06-24 02:05:35 UTC
Ooops, sorry, yes there is since 2.17.1, it's "activate-current-link" (or "activate-link", I'm sorting out the difference between the two).
Comment 10 Luis Menina 2009-06-24 02:33:49 UTC
Ok, seems the comportment with respect to the popup menu didn't make it to GtkLabel. SexyUrlLabel implements the "Send address by email" as the first entry of the popup menu, which is replaced by an simple open in GtkLabel. So we need to override the populate-popup signal in order to fix that.
Comment 11 Jonh Wendell 2009-06-24 02:39:17 UTC
"SexyUrlLabel implements the "Send address by email" as the first
entry of the popup menu, which is replaced by an simple open in GtkLabel"

SexyUrlLabel does not implement this. I *have patched* it to have this behavior. You're right, we need to simulate this behavior in our label.
Comment 12 André Klapper 2009-11-12 19:23:25 UTC
Heja,
is this somehow on the list for 2.30?
vino is the only module left... :-/
Comment 13 Javier Jardón (IRC: jjardon) 2010-01-19 01:17:14 UTC
Hello John,

with my patch, you only lost the "Send address by email" text in the pop-up; It shows "Open link" instead
Comment 14 André Klapper 2010-02-23 10:41:07 UTC
fredp just said "vino has an internal copy of SexyUrlLabel, so it's not technically a dependency on libsexy".
Hence removing GNOME Target.
Comment 15 Jonh Wendell 2010-06-21 20:29:57 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.