gnome-main-menu r516 - trunk/libslab
- From: federico svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-main-menu r516 - trunk/libslab
- Date: Tue, 28 Oct 2008 01:27:00 +0000 (UTC)
Author: federico
Date: Tue Oct 28 01:27:00 2008
New Revision: 516
URL: http://svn.gnome.org/viewvc/gnome-main-menu?rev=516&view=rev
Log:
Count the number of created/destroyed tooltips
Signed-off-by: Federico Mena Quintero <federico novell com>
Modified:
trunk/libslab/nameplate-tile.c
Modified: trunk/libslab/nameplate-tile.c
==============================================================================
--- trunk/libslab/nameplate-tile.c (original)
+++ trunk/libslab/nameplate-tile.c Tue Oct 28 01:27:00 2008
@@ -123,8 +123,13 @@
np_tile = NAMEPLATE_TILE (g_object);
priv = NAMEPLATE_TILE_GET_PRIVATE (np_tile);
- if (priv->tooltips)
+ if (priv->tooltips) {
+ static int num_destroyed_tooltips;
+
gtk_object_destroy (GTK_OBJECT (priv->tooltips));
+ num_destroyed_tooltips++;
+ printf ("Destroyed tooltips: %d\n", num_destroyed_tooltips);
+ }
(*G_OBJECT_CLASS (nameplate_tile_parent_class)->finalize) (g_object);
}
@@ -239,8 +244,13 @@
case PROP_NAMEPLATE_TOOLTIP:
if (tooltip) {
- if (! priv->tooltips)
+ if (! priv->tooltips) {
+ static int num_created_tooltips;
+
priv->tooltips = gtk_tooltips_new ();
+ num_created_tooltips++;
+ printf ("Created tooltips: %d\n", num_created_tooltips);
+ }
gtk_tooltips_set_tip (priv->tooltips, GTK_WIDGET(this), tooltip, tooltip);
gtk_tooltips_enable(priv->tooltips);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]