[balsa/gtk3] Deprecation cleanup
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Deprecation cleanup
- Date: Mon, 24 Jan 2011 02:56:58 +0000 (UTC)
commit 7ec9fc6a432afdd16d7152ba3465cd0847a02340
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Jan 23 21:55:58 2011 -0500
Deprecation cleanup
* src/balsa-mime-widget-text.c (text_view_url_popup):
deprecation cleanup.
ChangeLog | 5 +++++
src/balsa-mime-widget-text.c | 12 +++++++++---
2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3d7dfe6..f818298 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2011-01-23 Peter Bloomfield
+ * src/balsa-mime-widget-text.c (text_view_url_popup):
+ deprecation cleanup.
+
+2011-01-23 Peter Bloomfield
+
* libbalsa/address-view.c (lbav_ensure_blank_line_idle_cb),
(libbalsa_address_view_new): clean up, and make
LibBalsaAddressView opaque.
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index 6e869ad..cba6acf 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -494,17 +494,23 @@ text_view_url_popup(GtkTextView *textview, GtkMenu *menu)
GList *url_list = g_object_get_data(G_OBJECT(textview), "url-list");
message_url_t *url;
gint x, y;
- GdkModifierType mask;
GdkWindow *window;
+ GdkDisplay *display;
+ GdkDeviceManager *manager;
+ GdkDevice *device;
GtkWidget *menu_item;
-
+
/* no url list: no check... */
if (!url_list)
return FALSE;
/* check if we are over an url */
window = gtk_text_view_get_window(textview, GTK_TEXT_WINDOW_TEXT);
- gdk_window_get_pointer(window, &x, &y, &mask);
+ display = gdk_window_get_display(window);
+ manager = gdk_display_get_device_manager(display);
+ device = gdk_device_manager_get_client_pointer(manager);
+ gdk_window_get_device_position(window, device, &x, &y, NULL);
+
url = find_url(GTK_WIDGET(textview), x, y, url_list);
if (!url)
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]