Added a function to free previous message definitions. Added some asserts. fixed a warning issue. Added an error notification when message definitions parse failed. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4507 818b1a75-f10b-46b9-bf7c-635c3b92a50f
42 lines
1.0 KiB
C
42 lines
1.0 KiB
C
#if HAVE_CONFIG_H
|
|
# include "config.h"
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#define G_LOG_DOMAIN ("UI")
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include "rc.h"
|
|
|
|
#include "ui_notebook.h"
|
|
#include "ui_tree_view.h"
|
|
|
|
int ui_notebook_create(GtkWidget *vbox)
|
|
{
|
|
GtkWidget *notebook;
|
|
GtkWidget *vbox_notebook;
|
|
|
|
if (!vbox)
|
|
return RC_BAD_PARAM;
|
|
|
|
notebook = gtk_notebook_new();
|
|
|
|
vbox_notebook = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
|
|
ui_tree_view_create(NULL, vbox_notebook);
|
|
|
|
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox_notebook, NULL);
|
|
gtk_notebook_set_tab_label_text (GTK_NOTEBOOK(notebook), vbox_notebook, "Messages list");
|
|
|
|
vbox_notebook = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
|
|
|
|
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox_notebook, NULL);
|
|
gtk_notebook_set_tab_label_text (GTK_NOTEBOOK(notebook), vbox_notebook, "Filters");
|
|
|
|
/* Add the notebook to the vbox of the main window */
|
|
gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0);
|
|
|
|
return RC_OK;
|
|
}
|