aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk.c')
-rw-r--r--src/fs/gnunet-fs-gtk.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c
index f11647d9..27ca9eee 100644
--- a/src/fs/gnunet-fs-gtk.c
+++ b/src/fs/gnunet-fs-gtk.c
@@ -25,6 +25,7 @@
25 */ 25 */
26#include "gnunet-fs-gtk-common.h" 26#include "gnunet-fs-gtk-common.h"
27#include "gnunet-fs-gtk-event_handler.h" 27#include "gnunet-fs-gtk-event_handler.h"
28#include <gdk/gdkkeysyms.h>
28 29
29/** 30/**
30 * Should gnunet-fs-gtk start in tray mode? 31 * Should gnunet-fs-gtk start in tray mode?
@@ -537,6 +538,27 @@ main_window_search_button_clicked_cb (GtkButton *button, gpointer user_data)
537 GNUNET_FS_uri_destroy (uri); 538 GNUNET_FS_uri_destroy (uri);
538} 539}
539 540
541#ifndef GDK_KEY_Return
542#define GDK_KEY_Return GDK_Return
543#endif
544
545gboolean
546main_window_search_entry_key_press_event_cb (GtkWidget *widget,
547 GdkEventKey *event, gpointer user_data)
548{
549 GtkBuilder *builder;
550 builder = GTK_BUILDER (user_data);
551
552 if (event->keyval == GDK_KEY_Return)
553 {
554 GtkWidget *find = GTK_WIDGET (gtk_builder_get_object (builder,
555 "main_window_search_button"));
556 main_window_search_button_clicked_cb (GTK_BUTTON (find), user_data);
557 return TRUE;
558 }
559 return FALSE;
560}
561
540/** 562/**
541 * Add pseudonym data to tree store 563 * Add pseudonym data to tree store
542 * 564 *