aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/gossip-ui-utils.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-06-07 04:20:50 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-06-07 04:20:50 +0800
commita3a321f7e30e09c0adce157d3894642bad32e42c (patch)
treedfd9d8951bdec45d00025c9f5d09f9a68a7f5204 /libempathy-gtk/gossip-ui-utils.c
parent51f7f13d735f8db9ead25711641f2974c18b2737 (diff)
downloadgsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.tar
gsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.tar.gz
gsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.tar.bz2
gsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.tar.lz
gsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.tar.xz
gsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.tar.zst
gsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.zip
Implement editing and viewing contact information with right click on the
2007-06-06 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-contact-dialogs.glade: * libempathy-gtk/empathy-contact-widget.glade: * libempathy-gtk/empathy-status-icon.c: * libempathy-gtk/empathy-contact-dialogs.c: * libempathy-gtk/empathy-contact-dialogs.h: * libempathy-gtk/gossip-ui-utils.c: * libempathy-gtk/empathy-subscription-dialog.glade: * libempathy-gtk/empathy-contact-widget.c: * libempathy-gtk/gossip-ui-utils.h: * libempathy-gtk/gossip-contact-list-view.c: * libempathy-gtk/empathy-subscription-dialog.c: * libempathy-gtk/Makefile.am: * libempathy-gtk/empathy-subscription-dialog.h: Implement editing and viewing contact information with right click on the roster. svn path=/trunk/; revision=128
Diffstat (limited to 'libempathy-gtk/gossip-ui-utils.c')
-rw-r--r--libempathy-gtk/gossip-ui-utils.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libempathy-gtk/gossip-ui-utils.c b/libempathy-gtk/gossip-ui-utils.c
index f9628f014..f834ceb0c 100644
--- a/libempathy-gtk/gossip-ui-utils.c
+++ b/libempathy-gtk/gossip-ui-utils.c
@@ -1254,6 +1254,21 @@ gossip_window_present (GtkWindow *window,
}
}
+GtkWindow *
+gossip_get_toplevel_window (GtkWidget *widget)
+{
+ GtkWidget *toplevel;
+
+ g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
+
+ toplevel = gtk_widget_get_toplevel (widget);
+ if (GTK_IS_WINDOW (toplevel)) {
+ return GTK_WINDOW (toplevel);
+ }
+
+ return NULL;
+}
+
/* The URL opening code can't handle schemeless strings, so we try to be
* smart and add http if there is no scheme or doesn't look like a mail
* address. This should work in most cases, and let us click on strings