r965 - trunk/src/target/OM-2007/applications/openmoko-dialer/src
thomas at sita.openmoko.org
thomas at sita.openmoko.org
Mon Feb 12 14:06:00 CET 2007
Author: thomas
Date: 2007-02-12 14:05:59 +0100 (Mon, 12 Feb 2007)
New Revision: 965
Modified:
trunk/src/target/OM-2007/applications/openmoko-dialer/src/moko-dialer-panel.c
Log:
* Allow the "button-release-event" signal to propagate further (prevents buttons
remaining in "pressed" state after click)
Modified: trunk/src/target/OM-2007/applications/openmoko-dialer/src/moko-dialer-panel.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-dialer/src/moko-dialer-panel.c 2007-02-12 12:49:54 UTC (rev 964)
+++ trunk/src/target/OM-2007/applications/openmoko-dialer/src/moko-dialer-panel.c 2007-02-12 13:05:59 UTC (rev 965)
@@ -26,10 +26,9 @@
};
//forward definition
- static void moko_dialer_panel_pressed (MokoDigitButton * button,
+ static gboolean moko_dialer_panel_pressed (MokoDigitButton * button,
GdkEventButton * event,
gpointer data);
-//static void moko_dialer_panel_pressed (MokoDigitButton * button, gpointer data);
static gint moko_dialer_panel_signals[LAST_SIGNAL] = { 0 };
@@ -59,8 +58,6 @@
g_cclosure_marshal_VOID__CHAR, G_TYPE_NONE, 1,
g_type_from_name ("gchar"));
- // G_TYPE_NONE, 0);
-
g_print ("moko_dialer_panel:signal register end,got the id :%d\n",
moko_dialer_panel_signals[CLICKED_SIGNAL]);
@@ -73,8 +70,6 @@
g_cclosure_marshal_VOID__CHAR, G_TYPE_NONE, 1,
g_type_from_name ("gchar"));
- // G_TYPE_NONE, 0);
-
g_print ("moko_dialer_panel:signal register end,got the id :%d\n",
moko_dialer_panel_signals[HOLD_SIGNAL]);
@@ -138,11 +133,6 @@
moko_dialer_panel->buttons[i][j], j, j + 1,
i, i + 1);
-
-/* g_signal_connect (GTK_OBJECT (moko_dialer_panel->buttons[i][j]), "clicked",
- G_CALLBACK (moko_dialer_panel_clicked),moko_dialer_panel);
- */
-
g_signal_connect ((gpointer) moko_dialer_panel->buttons[i][j],
"button_release_event",
G_CALLBACK (moko_dialer_panel_pressed),
@@ -156,7 +146,7 @@
-static void
+static gboolean
moko_dialer_panel_pressed (MokoDigitButton * button, GdkEventButton * event,
gpointer data)
{
@@ -198,8 +188,8 @@
}
-
- return;
+ /* allow the signal to propagate the event further */
+ return FALSE;
}
More information about the commitlog
mailing list