[maemo-commits] [maemo-commits] r15044 - in projects/haf/trunk/hail: . debian hail/hail-hildon-desktop hail/hail-hildon-libs

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Jan 10 09:48:40 EET 2008
Author: atdomoko
Date: 2008-01-10 09:48:16 +0200 (Thu, 10 Jan 2008)
New Revision: 15044

Modified:
   projects/haf/trunk/hail/ChangeLog
   projects/haf/trunk/hail/debian/changelog
   projects/haf/trunk/hail/hail/hail-hildon-desktop/hailimagemenuitem.c
   projects/haf/trunk/hail/hail/hail-hildon-desktop/hailtogglebutton.c
   projects/haf/trunk/hail/hail/hail-hildon-libs/hailnumbereditor.c
Log:
hail (2.0.0-1) unstable; urgency=low

  * hail/hail-hildon-libs/hailnumbereditor.c
    Use "ne-minus-button" and "ne-plus-button" names to search the minus
    and plus buttons instead of the old "minus-button" and "plus-button"
    at hail-number-editor.c
  * Fixes NB#24426

  * hail/hildon-desktop/hailimagemenuitem.c
    (hail_image_menu_item_get_name): added a check to avoid a crash if
    there is no toggle_button available
  * hail/hildon-desktop/hailtogglebutton.c
    (hail_toggle_button_get_name): set properly the check to avoid a
    crash if there is no widget available
  * Fixes: NB#70723

  * version jump: syncing with Hildon versioning scheme.

 -- Attila Domokos <attila.domokos at nokia.com>  Thu, 10 Jan 2008 09:34:07 +0200




Modified: projects/haf/trunk/hail/ChangeLog
===================================================================
--- projects/haf/trunk/hail/ChangeLog	2008-01-09 14:42:15 UTC (rev 15043)
+++ projects/haf/trunk/hail/ChangeLog	2008-01-10 07:48:16 UTC (rev 15044)
@@ -1,3 +1,22 @@
+2008-01-10 Attila Domokos <attila.domokos at nokia.com>
+
+	* hail/hail-hildon-libs/hailnumbereditor.c
+	Use "ne-minus-button" and "ne-plus-button" names to search the
+	minus and plus buttons instead of the old "minus-button" and
+	"plus-button" at hail-number-editor.c
+	* Fixes: NB#24426
+
+2008-01-09 Attila Domokos <attila.domokos at nokia.com>
+
+	* hail/hildon-desktop/hailimagemenuitem.c
+	(hail_image_menu_item_get_name): added a check to avoid a crash if
+	there is no toggle_button available
+	* hail/hildon-desktop/hailtogglebutton.c
+	(hail_toggle_button_get_name): set properly the check to avoid a 
+	crash if there is no widget available
+	* Fixes: NB#70723
+	
+
 2007-12-14 Attila Domokos <attila.domokos at nokia.com>
 
 	* hail/hail-hildon-desktop/hailmenuitem.c:
@@ -11,14 +30,14 @@
 	hailtimeeditor was outdated, as still tried to access the
 	am/pm switcher on HildonTimeEditor implemented as an eventbox, 
 	but this was changed several months ago to a button
-	* Fixes NB#25602
+	* Fixes: NB#25602
 
 	* hail/hail-hildon-libs/haildateeditor.c
 	(idle_do_action): reset priv->action_id_handler once 
 	of the handler return FALSE, so the timeout is removed, 
 	in order to allow to execute the timeout more that once on
 	hail_date_editor_action_do_action
-	* Fixes NB#24411
+	* Fixes: NB#24411
 
 2007-12-11 Attila Domokos <attila.domokos at nokia.com>
 
@@ -26,7 +45,7 @@
 	(hail_toggle_button_get_name): added a check to avoid a crash if
 	there is no toggle_button available
 
-	Fixes NB#70723, NB#75169
+	Fixes: NB#70723, NB#75169
 
 2007-11-07  Michael Dominic Kostrzewa  <michael.kostrzewa at nokia.com> 
 

Modified: projects/haf/trunk/hail/debian/changelog
===================================================================
--- projects/haf/trunk/hail/debian/changelog	2008-01-09 14:42:15 UTC (rev 15043)
+++ projects/haf/trunk/hail/debian/changelog	2008-01-10 07:48:16 UTC (rev 15044)
@@ -1,3 +1,23 @@
+hail (2.0.0-1) unstable; urgency=low
+
+  * hail/hail-hildon-libs/hailnumbereditor.c
+    Use "ne-minus-button" and "ne-plus-button" names to search the minus
+    and plus buttons instead of the old "minus-button" and "plus-button" 
+    at hail-number-editor.c
+  * Fixes NB#24426
+
+  * hail/hildon-desktop/hailimagemenuitem.c
+    (hail_image_menu_item_get_name): added a check to avoid a crash if
+    there is no toggle_button available
+  * hail/hildon-desktop/hailtogglebutton.c
+    (hail_toggle_button_get_name): set properly the check to avoid a 
+    crash if there is no widget available
+  * Fixes: NB#70723
+
+  * version jump: syncing with Hildon versioning scheme.
+
+ -- Attila Domokos <attila.domokos at nokia.com>  Thu, 10 Jan 2008 09:34:07 +0200
+
 hail (1.2.4-4) unstable; urgency=low
 
   * hail/hail-hildon-desktop/hailmenuitem.c: 

Modified: projects/haf/trunk/hail/hail/hail-hildon-desktop/hailimagemenuitem.c
===================================================================
--- projects/haf/trunk/hail/hail/hail-hildon-desktop/hailimagemenuitem.c	2008-01-09 14:42:15 UTC (rev 15043)
+++ projects/haf/trunk/hail/hail/hail-hildon-desktop/hailimagemenuitem.c	2008-01-10 07:48:16 UTC (rev 15044)
@@ -189,6 +189,12 @@
   g_return_val_if_fail (HAIL_IS_IMAGE_MENU_ITEM (obj), NULL);
   menu_item = GTK_ACCESSIBLE(obj)->widget;
 
+  if (menu_item == NULL)
+    /*
+     * State is defunct
+     */
+    return NULL;
+
   /* parent name */
   name = ATK_OBJECT_CLASS (parent_class)->get_name (obj);
 

Modified: projects/haf/trunk/hail/hail/hail-hildon-desktop/hailtogglebutton.c
===================================================================
--- projects/haf/trunk/hail/hail/hail-hildon-desktop/hailtogglebutton.c	2008-01-09 14:42:15 UTC (rev 15043)
+++ projects/haf/trunk/hail/hail/hail-hildon-desktop/hailtogglebutton.c	2008-01-10 07:48:16 UTC (rev 15044)
@@ -210,10 +210,16 @@
   g_return_val_if_fail (HAIL_IS_TOGGLE_BUTTON (obj), NULL);
   toggle_button = GTK_ACCESSIBLE(obj)->widget;
 
+  if (toggle_button == NULL)
+    /*
+     * State is defunct
+     */
+    return NULL;
+
   /* parent name */
   name = ATK_OBJECT_CLASS (parent_class)->get_name (obj);
 
-  if ((name == NULL)&&(toggle_button != NULL))
+  if (name == NULL)
     {
       /* concrete implementation for HNAppButton */
       if (g_type_is_a (G_TYPE_FROM_INSTANCE(toggle_button), hn_app_button_type))

Modified: projects/haf/trunk/hail/hail/hail-hildon-libs/hailnumbereditor.c
===================================================================
--- projects/haf/trunk/hail/hail/hail-hildon-libs/hailnumbereditor.c	2008-01-09 14:42:15 UTC (rev 15043)
+++ projects/haf/trunk/hail/hail/hail-hildon-libs/hailnumbereditor.c	2008-01-10 07:48:16 UTC (rev 15044)
@@ -201,9 +201,9 @@
   editor = HAIL_NUMBER_EDITOR(data);
   priv = HAIL_NUMBER_EDITOR_GET_PRIVATE(editor);
   if (GTK_IS_BUTTON(widget)) {
-    if (!g_strcasecmp(gtk_widget_get_name(widget), "minus-button")) {
+    if (!g_strcasecmp(gtk_widget_get_name(widget), "ne-minus-button")) {
       priv->minus = gtk_widget_get_accessible(widget);
-    } else if (!g_strcasecmp(gtk_widget_get_name(widget), "plus-button")) {
+    } else if (!g_strcasecmp(gtk_widget_get_name(widget), "ne-plus-button")) {
       priv->plus = gtk_widget_get_accessible(widget);
     }
   } else if (GTK_IS_ENTRY(widget)) {


More information about the maemo-commits mailing list