diff options
author | Havoc Pennington <hp@redhat.com> | 2005-01-30 23:29:50 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2005-01-30 23:29:50 +0000 |
commit | d5b7d7a78c0fb2e41d5966a0778b08f8d8e35ea4 (patch) | |
tree | 3cfe3274a6b9c1d8df4a45e311e672aed08bf0cd /tools/dbus-viewer.c | |
parent | 1dcacffc325e50754d4cc3338822d1f03c8b6e45 (diff) |
2005-01-30 Havoc Pennington <hp@redhat.com>
* 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
Diffstat (limited to 'tools/dbus-viewer.c')
-rw-r--r-- | tools/dbus-viewer.c | 13 |
1 files changed, 9 insertions, 4 deletions
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), |