Commit 58471b29 authored by winckel's avatar winckel

Replaced gtk box by a gtk paned to place messages list and message details...

Replaced gtk box by a gtk paned to place messages list and message details view to allow resizing of each part.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4407 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 6b05e777
...@@ -25,6 +25,7 @@ int ui_notebook_create(GtkWidget *vbox) ...@@ -25,6 +25,7 @@ int ui_notebook_create(GtkWidget *vbox)
ui_tree_view_create(NULL, vbox_notebook); ui_tree_view_create(NULL, vbox_notebook);
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox_notebook, NULL); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox_notebook, NULL);
gtk_notebook_set_tab_label_text (GTK_NOTEBOOK(notebook), vbox_notebook, "Messages list");
/* Add the notebook to the vbox of the main window */ /* Add the notebook to the vbox of the main window */
gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0);
......
...@@ -36,10 +36,9 @@ ui_text_view_t *ui_signal_dissect_new(GtkWidget *hbox) ...@@ -36,10 +36,9 @@ ui_text_view_t *ui_signal_dissect_new(GtkWidget *hbox)
/* Disable editable attribute */ /* Disable editable attribute */
gtk_text_view_set_editable(GTK_TEXT_VIEW(new_text_view->text_view), FALSE); gtk_text_view_set_editable(GTK_TEXT_VIEW(new_text_view->text_view), FALSE);
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrolled_window), gtk_container_add(GTK_CONTAINER(scrolled_window), new_text_view->text_view);
new_text_view->text_view);
gtk_box_pack_start(GTK_BOX(hbox), scrolled_window, TRUE, TRUE, 5); gtk_paned_pack2 (GTK_PANED (hbox), scrolled_window, TRUE, FALSE);
return new_text_view; return new_text_view;
} }
......
...@@ -197,16 +197,15 @@ int ui_tree_view_create(GtkWidget *window, GtkWidget *vbox) ...@@ -197,16 +197,15 @@ int ui_tree_view_create(GtkWidget *window, GtkWidget *vbox)
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(ui_main_data.signalslist)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(ui_main_data.signalslist));
gtk_tree_selection_set_mode(selection, GTK_SELECTION_BROWSE); gtk_tree_selection_set_mode(selection, GTK_SELECTION_BROWSE);
hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); hbox = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
gtk_container_add(GTK_CONTAINER(scrolled_window), gtk_container_add(GTK_CONTAINER(scrolled_window), ui_main_data.signalslist);
ui_main_data.signalslist);
ui_tree_view_init_list(ui_main_data.signalslist); ui_tree_view_init_list(ui_main_data.signalslist);
gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(ui_main_data.signalslist), TRUE); gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(ui_main_data.signalslist), TRUE);
gtk_scrolled_window_set_min_content_width(GTK_SCROLLED_WINDOW(scrolled_window), 620); gtk_scrolled_window_set_min_content_width(GTK_SCROLLED_WINDOW(scrolled_window), 600);
gtk_box_pack_start(GTK_BOX(hbox), scrolled_window, FALSE, FALSE, 0); gtk_paned_pack1 (GTK_PANED (hbox), scrolled_window, FALSE, TRUE);
ui_main_data.text_view = ui_signal_dissect_new(hbox); ui_main_data.text_view = ui_signal_dissect_new(hbox);
gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 5); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 5);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment