[maemo-commits] [maemo-commits] r14046 - in projects/haf/trunk/hildon-desktop: . src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Sep 24 17:16:12 EEST 2007
- Previous message: [maemo-commits] r14045 - in projects/haf/trunk/hildon-desktop: . src
- Next message: [maemo-commits] r14047 - in projects/haf/branches/hildon-control-panel/refactoring: . debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: lucasr Date: 2007-09-24 17:16:11 +0300 (Mon, 24 Sep 2007) New Revision: 14046 Modified: projects/haf/trunk/hildon-desktop/ChangeLog projects/haf/trunk/hildon-desktop/src/hd-switcher-menu-item.c Log: 2007-09-24 Lucas Rocha <lucas.rocha at nokia.com> * src/hd-switcher-menu-item.c: disabled all debug messages by default. Modified: projects/haf/trunk/hildon-desktop/ChangeLog =================================================================== --- projects/haf/trunk/hildon-desktop/ChangeLog 2007-09-24 14:03:15 UTC (rev 14045) +++ projects/haf/trunk/hildon-desktop/ChangeLog 2007-09-24 14:16:11 UTC (rev 14046) @@ -1,5 +1,9 @@ 2007-09-24 Lucas Rocha <lucas.rocha at nokia.com> + * src/hd-switcher-menu-item.c: disabled all debug messages by default. + +2007-09-24 Lucas Rocha <lucas.rocha at nokia.com> + * src/hd-applications-menu.c (hd_applications_menu_init, hd_applications_menu_initial_setup, hd_applications_menu_show, hd_applications_menu_changed, hd_applications_menu_popdown): preload Modified: projects/haf/trunk/hildon-desktop/src/hd-switcher-menu-item.c =================================================================== --- projects/haf/trunk/hildon-desktop/src/hd-switcher-menu-item.c 2007-09-24 14:03:15 UTC (rev 14045) +++ projects/haf/trunk/hildon-desktop/src/hd-switcher-menu-item.c 2007-09-24 14:16:11 UTC (rev 14046) @@ -89,6 +89,8 @@ #define AS_TEXT_COLOR "PluginMenuTextColor" #define AS_SECONDARY_TEXT_COLOR "PluginMenuSecondaryTextColor" +#undef DEBUG + /* * HDSwitcherMenuItem */ @@ -467,7 +469,9 @@ gtk_image_set_from_pixbuf (GTK_IMAGE (priv->icon), priv->notification_icon); +#ifdef DEBUG g_debug ("pixbuf: %p Id: %d Summary of notification: %s", priv->notification_icon, priv->notification_id, priv->notification_summary); +#endif gtk_label_set_text (GTK_LABEL (priv->label), priv->notification_summary); /* TODO: Insert timestamp */ @@ -569,8 +573,9 @@ if (info != NULL) { +#ifdef DEBUG g_debug ("Raising application '%s'", hd_wm_entry_info_peek_title (info)); - +#endif hd_wm_top_item (info); } else @@ -626,9 +631,9 @@ { HDSwitcherMenuItem *menuitem = HD_SWITCHER_MENU_ITEM(widget); gint x, y; - +#ifdef DEBUG g_debug ("menu item clicked ended"); - +#endif if(!menuitem->priv->show_close || !menuitem->priv->close) return FALSE; @@ -695,9 +700,9 @@ { HDSwitcherMenuItem *menuitem = HD_SWITCHER_MENU_ITEM(widget); gint x, y; - +#ifdef DEBUG g_debug ("menu item clicked"); - +#endif if(!menuitem->priv->show_close || !menuitem->priv->close) return FALSE; @@ -708,7 +713,7 @@ */ gtk_widget_get_pointer(widget, &x, &y); - +#ifdef DEBUG g_debug ("pointer [%d,%d],\n" "close allocation [%d, %d, %d, %d]", x, y, @@ -716,7 +721,7 @@ menuitem->priv->close->allocation.y, menuitem->priv->close->allocation.width, menuitem->priv->close->allocation.height); - +#endif /* only test x here; y is always withing the button range */ if(x > menuitem->priv->close->allocation.x && x <= menuitem->priv->close->allocation.x +
- Previous message: [maemo-commits] r14045 - in projects/haf/trunk/hildon-desktop: . src
- Next message: [maemo-commits] r14047 - in projects/haf/branches/hildon-control-panel/refactoring: . debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]