aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-search-bar.c7
-rw-r--r--libempathy-gtk/empathy-search-bar.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-search-bar.c b/libempathy-gtk/empathy-search-bar.c
index cc2b97753..2116d598a 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 c17778b7f..2e4e0d76e 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