[empathy] changed the type of keynav signal
- From: Felix Kaser <kaserf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] changed the type of keynav signal
- Date: Thu, 29 Jul 2010 15:08:52 +0000 (UTC)
commit f42a546df394424e9ca71e123e2482bcc021ed82
Author: Felix Kaser <f kaser gmx net>
Date: Thu Jul 29 16:07:34 2010 +0200
changed the type of keynav signal
now VOID__BOXED is used instead of VOID__POINTER
libempathy-gtk/empathy-individual-view.c | 8 ++++----
libempathy-gtk/empathy-live-search.c | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index d847ee5..92bdeac 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -1285,15 +1285,15 @@ individual_view_search_activate_cb (GtkWidget *search,
static void
individual_view_search_key_navigation_cb (GtkWidget *search,
- gpointer eventkey,
+ GdkEvent *event,
EmpathyIndividualView *view)
{
- GdkEventKey *event = ((GdkEventKey *) eventkey);
- if (event->keyval == GDK_Up || event->keyval == GDK_Down)
+ GdkEventKey *eventkey = ((GdkEventKey *) event);
+ if (eventkey->keyval == GDK_Up || eventkey->keyval == GDK_Down)
{
GdkEvent *new_event;
- new_event = gdk_event_copy ((GdkEvent *) event);
+ new_event = gdk_event_copy (event);
gtk_widget_grab_focus (GTK_WIDGET (view));
gtk_widget_event (GTK_WIDGET (view), new_event);
gtk_widget_grab_focus (search);
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c
index 414a266..3b6e18e 100644
--- a/libempathy-gtk/empathy-live-search.c
+++ b/libempathy-gtk/empathy-live-search.c
@@ -394,8 +394,8 @@ empathy_live_search_class_init (EmpathyLiveSearchClass *klass)
G_SIGNAL_RUN_LAST,
0,
NULL, NULL,
- g_cclosure_marshal_VOID__POINTER,
- G_TYPE_NONE, 1, G_TYPE_POINTER);
+ g_cclosure_marshal_VOID__BOXED,
+ G_TYPE_NONE, 1, GDK_TYPE_EVENT | G_SIGNAL_TYPE_STATIC_SCOPE);
param_spec = g_param_spec_object ("hook-widget", "Live Searchs Hook Widget",
"The live search catches key-press-events on this widget",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]