From 1dcacffc325e50754d4cc3338822d1f03c8b6e45 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sun, 30 Jan 2005 23:06:32 +0000 Subject: 2005-01-30 Havoc Pennington * glib/dbus-glib.c (dbus_g_pending_call_set_notify): new function (dbus_g_pending_call_cancel): new function * dbus/dbus-glib.h: move GType decls for connection/message here; * dbus/dbus-glib.c: move all the g_type and ref/unref stuff in here, just kind of rationalizing how we handle all that * tools/dbus-names-model.c: new file for a tree model listing the services on a bus * tools/dbus-tree-view.c (model_new): use proper typing on the model rows --- tools/dbus-tree-view.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'tools/dbus-tree-view.c') diff --git a/tools/dbus-tree-view.c b/tools/dbus-tree-view.c index 7c52935e..d2898fb3 100644 --- a/tools/dbus-tree-view.c +++ b/tools/dbus-tree-view.c @@ -23,10 +23,7 @@ #include #include #include "dbus-tree-view.h" - -#include -#define _(x) dgettext (GETTEXT_PACKAGE, x) -#define N_(x) x +#include enum { @@ -52,12 +49,7 @@ model_new (void) GtkTreeStore *store; store = gtk_tree_store_new (MODEL_COLUMN_LAST, - G_TYPE_POINTER); - /* FIXME, BASE_INFO_TYPE doesn't work right (crashes), - * G_TYPE_POINTER has a memleak. BASE_INFO_TYPE problem maybe just a - * bad GTK build on my laptop. - */ - /* BASE_INFO_TYPE); */ + BASE_INFO_TYPE); model = GTK_TREE_MODEL (store); @@ -114,7 +106,6 @@ set_info (GtkTreeModel *model, */ if (root != NULL) { - base_info_ref (info); /* FIXME once boxed types are working */ gtk_tree_store_set (store, root, MODEL_COLUMN_INFO, info, -1); -- cgit