mw = lookup_widget(widget, "MWindow");
if(mw == NULL){
- g_printf("Main window does not exist\n");
+ g_info("Main window does not exist\n");
return NULL;
}
MainWindow * parent = get_window_data_struct(widget);
if(clone){
- g_printf("Clone : use the same traceset\n");
+ g_info("Clone : use the same traceset\n");
construct_main_window(parent);
}else{
- g_printf("Empty : traceset is set to NULL\n");
+ g_info("Empty : traceset is set to NULL\n");
construct_main_window(NULL);
}
}
case GTK_RESPONSE_OK:
dir = gtk_file_selection_get_selections (file_selector);
traceset = lttv_traceset_load(dir[0]);
- g_printf("Open a trace set %s\n", dir[0]);
+ g_info("Open a trace set %s\n", dir[0]);
//Not finished yet
g_strfreev(dir);
case GTK_RESPONSE_REJECT:
void save(GtkWidget * widget, gpointer user_data)
{
- g_printf("Save\n");
+ g_info("Save\n");
}
void save_as(GtkWidget * widget, gpointer user_data)
{
- g_printf("Save as\n");
+ g_info("Save as\n");
}
void go_to_time(GtkWidget * widget, gpointer user_data)
{
- g_printf("Go to time\n");
+ g_info("Go to time\n");
}
void show_time_frame(GtkWidget * widget, gpointer user_data)
{
- g_printf("Show time frame\n");
+ g_info("Show time frame\n");
}
GtkNotebook * notebook = (GtkNotebook *)lookup_widget(widget, "MNotebook");
if(notebook == NULL){
- g_printf("Notebook does not exist\n");
+ g_info("Notebook does not exist\n");
return NULL;
}
GtkWidget *page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook),
MainWindow * mw_data = get_window_data_struct(widget);
notebook = lookup_widget(widget, "MNotebook");
if(notebook == NULL){
- g_printf("Notebook does not exist\n");
+ g_info("Notebook does not exist\n");
return;
}
gint page_num;
GtkWidget *notebook = lookup_widget(widget, "MNotebook");
if(notebook == NULL){
- g_printf("Notebook does not exist\n");
+ g_info("Notebook does not exist\n");
return;
}
on_cut_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_printf("Cut\n");
+ g_info("Cut\n");
}
on_copy_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_printf("Copye\n");
+ g_info("Copye\n");
}
on_paste_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_printf("Paste\n");
+ g_info("Paste\n");
}
on_delete_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_printf("Delete\n");
+ g_info("Delete\n");
}
s = g_object_get_data(G_OBJECT(w), "Traceset_Selector");
if(!s){
- g_printf("There is no viewer yet\n");
+ g_info("There is no viewer yet\n");
return;
}
if(get_filter_selection(s, "Configure trace and tracefile filter", "Select traces and tracefiles")){
on_trace_facility_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_printf("Trace facility selector: %s\n");
+ g_info("Trace facility selector: %s\n");
}
#endif //0
lttv_library_load(str1, &error);
if(error != NULL) g_warning("%s", error->message);
- else g_printf("Load library: %s\n", str);
+ else g_info("Load library: %s\n", str);
g_strfreev(dir);
case GTK_RESPONSE_REJECT:
case GTK_RESPONSE_CANCEL:
lttv_module_require(module_name_out, &error);
if(error != NULL) g_warning("%s", error->message);
- else g_printf("Load module: %s", module_name_out);
+ else g_info("Load module: %s", module_name_out);
#if 0
#endif //0
lttv_library_load(str1, &error);
if(error != NULL) g_warning(error->message);
- else g_printf("Load library: %s\n", str);
+ else g_info("Load library: %s\n", str);
g_strfreev(dir);
case GTK_RESPONSE_REJECT:
case GTK_RESPONSE_CANCEL:
LttvModuleInfo module_info;
lttv_module_info(module, &module_info);
- g_printf("Release module: %s\n", module_info.name);
+ g_info("Release module: %s\n", module_info.name);
lttv_module_release(module);
}
on_color_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_printf("Color\n");
+ g_info("Color\n");
}
on_filter_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_printf("Filter\n");
+ g_info("Filter\n");
}
on_save_configuration_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_printf("Save configuration\n");
+ g_info("Save configuration\n");
}
on_content_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_printf("Content\n");
+ g_info("Content\n");
}
g_object_unref(main_window->attributes);
g_main_window_list = g_slist_remove(g_main_window_list, main_window);
- g_printf("There are now : %d windows\n",g_slist_length(g_main_window_list));
+ g_info("There are now : %d windows\n",g_slist_length(g_main_window_list));
if(g_slist_length(g_main_window_list) == 0)
gtk_main_quit ();
}
}
id = gtk_dialog_run(GTK_DIALOG(dialogue));
- GtkTreeModel **store_model = &store; /* for strict aliasing */
+ GtkTreeModel **store_model = (GtkTreeModel**)&store; /* for strict aliasing */
switch(id){
case GTK_RESPONSE_ACCEPT:
case GTK_RESPONSE_OK:
//create a default tab
notebook = (GtkNotebook *)lookup_widget(new_m_window->mwindow, "MNotebook");
if(notebook == NULL){
- g_printf("Notebook does not exist\n");
+ g_info("Notebook does not exist\n");
return;
}
//gtk_notebook_popup_enable (GTK_NOTEBOOK(notebook));
}
}
- g_printf("There are now : %d windows\n",g_slist_length(g_main_window_list));
+ g_info("There are now : %d windows\n",g_slist_length(g_main_window_list));
}