[empathy] add empathy_search_bar_paste_clipboard()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] add empathy_search_bar_paste_clipboard()
- Date: Tue, 14 Sep 2010 09:17:25 +0000 (UTC)
commit b932028b82cfb31da782beab7bc71248cc19e24f
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Sep 14 11:12:41 2010 +0200
add empathy_search_bar_paste_clipboard()
libempathy-gtk/empathy-search-bar.c | 7 +++++++
libempathy-gtk/empathy-search-bar.h | 1 +
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-search-bar.c b/libempathy-gtk/empathy-search-bar.c
index cc2b977..2116d59 100644
--- a/libempathy-gtk/empathy-search-bar.c
+++ b/libempathy-gtk/empathy-search-bar.c
@@ -315,3 +315,10 @@ empathy_search_bar_class_init (EmpathySearchBarClass *class)
widget_class->size_allocate = empathy_search_bar_size_allocate;
}
+void
+empathy_search_bar_paste_clipboard (EmpathySearchBar *self)
+{
+ EmpathySearchBarPriv *priv = GET_PRIV (self);
+
+ gtk_editable_paste_clipboard (GTK_EDITABLE (priv->search_entry));
+}
diff --git a/libempathy-gtk/empathy-search-bar.h b/libempathy-gtk/empathy-search-bar.h
index c17778b..2e4e0d7 100644
--- a/libempathy-gtk/empathy-search-bar.h
+++ b/libempathy-gtk/empathy-search-bar.h
@@ -59,6 +59,7 @@ GType empathy_search_bar_get_type (void) G_GNUC_CONST;
GtkWidget * empathy_search_bar_new (EmpathyChatView *view);
void empathy_search_bar_show (EmpathySearchBar *searchbar);
void empathy_search_bar_hide (EmpathySearchBar *searchbar);
+void empathy_search_bar_paste_clipboard (EmpathySearchBar *searchbar);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]