diff options
author | Havoc Pennington <hp@redhat.com> | 2005-01-30 23:06:32 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2005-01-30 23:06:32 +0000 |
commit | 1dcacffc325e50754d4cc3338822d1f03c8b6e45 (patch) | |
tree | 2e41d02141bf61be249ee6a9f8df6bd891a7d1e1 /tools/dbus-tree-view.c | |
parent | 4d985d98906577e3344fc1107d341b8ac969db1e (diff) |
2005-01-30 Havoc Pennington <hp@redhat.com>
* 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
Diffstat (limited to 'tools/dbus-tree-view.c')
-rw-r--r-- | tools/dbus-tree-view.c | 13 |
1 files changed, 2 insertions, 11 deletions
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 <string.h> #include <config.h> #include "dbus-tree-view.h" - -#include <libintl.h> -#define _(x) dgettext (GETTEXT_PACKAGE, x) -#define N_(x) x +#include <glib/gi18n.h> 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); |