← Back to team overview

ayatana-commits team mailing list archive

[Branch ~indicator-applet-developers/indicator-me/trunk] Rev 110: remove debug code

 

------------------------------------------------------------
revno: 110
committer: David Barth <david.barth@xxxxxxxxxxxxx>
branch nick: indicator-me
timestamp: Wed 2010-09-22 11:09:47 +0200
message:
  remove debug code
modified:
  src/indicator-me.c


--
lp:indicator-me
https://code.launchpad.net/~indicator-applet-developers/indicator-me/trunk

Your team ayatana-commits is subscribed to branch lp:indicator-me.
To unsubscribe from this branch go to https://code.launchpad.net/~indicator-applet-developers/indicator-me/trunk/+edit-subscription
=== modified file 'src/indicator-me.c'
--- src/indicator-me.c	2010-09-22 09:09:08 +0000
+++ src/indicator-me.c	2010-09-22 09:09:47 +0000
@@ -405,57 +405,6 @@
 	dbusmenu_menuitem_handle_event (mi, "send", &value, gtk_get_current_event_time());
 }
 
-static void
-finalized_dbusmenuitem_cb (gpointer udata, GObject * dbusmenuitem)
-{
-  /* disconnect signals we previously installed to avoid
-     crashing on outdated data structures */
-
-	g_debug("DbusmenuMenuitem was destroyed");
-
-  int i = 0;
-
-  g_return_if_fail (IDO_IS_ENTRY_MENU_ITEM (udata));
-
-  g_debug ("1");
-
-  IdoEntryMenuItem *ido = IDO_ENTRY_MENU_ITEM (udata);
-
-  g_debug ("2");
-
-	GtkEntry *entry = GTK_ENTRY(ido_entry_menu_item_get_entry (ido));
-
-  g_debug ("3");
-
-	i += 
-    g_signal_handlers_disconnect_by_func (DBUSMENU_MENUITEM (dbusmenuitem),
-                                          G_CALLBACK (entry_prop_change_cb),
-                                          entry);
-
-  g_return_if_fail (GTK_IS_ENTRY (entry));
-
-  g_debug ("%s", __func__);
-
-  i += 
-  g_signal_handlers_disconnect_by_func (entry,
-                                        G_CALLBACK (entry_activate_cb),
-                                        dbusmenuitem);
-  i += 
-  g_signal_handlers_disconnect_by_func (entry,
-                                        G_CALLBACK (entry_focus_grab_cb),
-                                        entry);
-  i += 
-  g_signal_handlers_disconnect_by_func (entry,
-                                        G_CALLBACK (entry_focus_ungrab_cb),
-                                        entry);
-
-  g_debug ("%s: %d signals disconnected", __func__, i);
-
-  return;
-}
-
-
-
 static gboolean
 new_entry_item (DbusmenuMenuitem * newitem,
                 DbusmenuMenuitem * parent,
@@ -496,7 +445,6 @@
 #endif
 
 	dbusmenu_gtkclient_newitem_base(DBUSMENU_GTKCLIENT(client), newitem, GTK_MENU_ITEM(ido), parent);
-	g_object_weak_ref(G_OBJECT(newitem), finalized_dbusmenuitem_cb, ido);
 
 	/* disconnect the activate signal that newitem_base connected with the wrong
 	   widget, ie menuitem, and re-connect it with the /entry/ instead */