[maemo-commits] [maemo-commits] r13708 - in projects/haf/trunk/hildon-1: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Sep 10 16:19:24 EEST 2007
Author: mdk
Date: 2007-09-10 16:19:23 +0300 (Mon, 10 Sep 2007)
New Revision: 13708

Modified:
   projects/haf/trunk/hildon-1/ChangeLog
   projects/haf/trunk/hildon-1/src/hildon-caption.c
Log:
Applying a patch by Tommi to fix the focus behaviour. Fixes: NB#68610. 


Modified: projects/haf/trunk/hildon-1/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-1/ChangeLog	2007-09-10 13:11:15 UTC (rev 13707)
+++ projects/haf/trunk/hildon-1/ChangeLog	2007-09-10 13:19:23 UTC (rev 13708)
@@ -1,5 +1,10 @@
 2007-09-10  Michael Dominic Kostrzewa  <michael.kostrzewa at nokia.com> 
 
+	* src/hildon-caption.c: Applying a patch by Tommi to fix the focus
+	behaviour. Fixes: NB#68610. 
+
+2007-09-10  Michael Dominic Kostrzewa  <michael.kostrzewa at nokia.com> 
+
 	* src/hildon-banner.c: Actually reverting the previous change. It somehow
 	looks a bit worse.
 

Modified: projects/haf/trunk/hildon-1/src/hildon-caption.c
===================================================================
--- projects/haf/trunk/hildon-1/src/hildon-caption.c	2007-09-10 13:11:15 UTC (rev 13707)
+++ projects/haf/trunk/hildon-1/src/hildon-caption.c	2007-09-10 13:19:23 UTC (rev 13708)
@@ -576,11 +576,10 @@
 hildon_caption_button_press                     (GtkWidget *widget, 
                                                  GdkEventButton *event)
 {
-    HildonCaptionPrivate *priv = HILDON_CAPTION_GET_PRIVATE (widget);
-    g_assert (priv);
-
-    priv->is_focused = TRUE;
     gtk_widget_grab_focus (GTK_BIN (widget)->child);
+    
+    /* we'll update our focused state in set-focus when/if the child receives
+     * focus */
 
     return FALSE;
 }


More information about the maemo-commits mailing list