From d5b7d7a78c0fb2e41d5966a0778b08f8d8e35ea4 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sun, 30 Jan 2005 23:29:50 +0000 Subject: 2005-01-30 Havoc Pennington * tools/dbus-names-model.c (have_names_notify): fix this * dbus/dbus-message.c (_dbus_message_iter_get_args_valist): clean up the string array handling a bit --- tools/dbus-viewer.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tools/dbus-viewer.c') diff --git a/tools/dbus-viewer.c b/tools/dbus-viewer.c index 524030c6..41660135 100644 --- a/tools/dbus-viewer.c +++ b/tools/dbus-viewer.c @@ -76,22 +76,27 @@ tree_window_new (DBusGConnection *connection, vbox = gtk_vbox_new (FALSE, 6); gtk_container_add (GTK_CONTAINER (w->window), vbox); - - hbox = gtk_hbox_new (FALSE, 6); - gtk_container_add (GTK_CONTAINER (vbox), hbox); - /* Create names option menu */ if (connection) { + GtkCellRenderer *cell; w->names_model = names_model; combo = gtk_combo_box_new_with_model (w->names_model); + cell = gtk_cell_renderer_text_new (); + gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), cell, TRUE); + gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo), cell, + "text", 0, + NULL); + gtk_box_pack_start (GTK_BOX (vbox), combo, FALSE, FALSE, 0); } /* Create tree view */ + hbox = gtk_hbox_new (FALSE, 6); + gtk_container_add (GTK_CONTAINER (vbox), hbox); sw = gtk_scrolled_window_new (NULL, NULL); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), -- cgit