projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change g_printf for g_info
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
modules
/
gui
/
lttvwindow
/
lttvwindow
/
callbacks.c
diff --git
a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c
b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c
index 21d09fc5529cc9fd89a79970649c41b6020be413..0f6aaa3e284eb46ee479c2408ad0cfff01585ec4 100644
(file)
--- a/
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c
+++ b/
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c
@@
-660,7
+660,7
@@
MainWindow * get_window_data_struct(GtkWidget * widget)
mw = lookup_widget(widget, "MWindow");
if(mw == NULL){
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;
}
return NULL;
}
@@
-681,10
+681,10
@@
void create_new_window(GtkWidget* widget, gpointer user_data, gboolean clone)
MainWindow * parent = get_window_data_struct(widget);
if(clone){
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{
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);
}
}
construct_main_window(NULL);
}
}
@@
-859,7
+859,7
@@
void open_traceset(GtkWidget * widget, gpointer user_data)
case GTK_RESPONSE_OK:
dir = gtk_file_selection_get_selections (file_selector);
traceset = lttv_traceset_load(dir[0]);
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:
//Not finished yet
g_strfreev(dir);
case GTK_RESPONSE_REJECT:
@@
-2234,12
+2234,12
@@
void stop_processing(GtkWidget *widget, gpointer user_data)
void save(GtkWidget * widget, gpointer user_data)
{
void save(GtkWidget * widget, gpointer user_data)
{
- g_
printf
("Save\n");
+ g_
info
("Save\n");
}
void save_as(GtkWidget * widget, gpointer user_data)
{
}
void save_as(GtkWidget * widget, gpointer user_data)
{
- g_
printf
("Save as\n");
+ g_
info
("Save as\n");
}
}
@@
-2348,12
+2348,12
@@
void zoom_extended(GtkWidget * widget, gpointer user_data)
void go_to_time(GtkWidget * widget, gpointer user_data)
{
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)
{
}
void show_time_frame(GtkWidget * widget, gpointer user_data)
{
- g_
printf
("Show time frame\n");
+ g_
info
("Show time frame\n");
}
}
@@
-2384,7
+2384,7
@@
Tab *create_new_tab(GtkWidget* widget, gpointer user_data){
GtkNotebook * notebook = (GtkNotebook *)lookup_widget(widget, "MNotebook");
if(notebook == NULL){
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),
return NULL;
}
GtkWidget *page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook),
@@
-2440,7
+2440,7
@@
on_close_tab_activate (GtkWidget *widget,
MainWindow * mw_data = get_window_data_struct(widget);
notebook = lookup_widget(widget, "MNotebook");
if(notebook == NULL){
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;
}
return;
}
@@
-2457,7
+2457,7
@@
on_close_tab_X_clicked (GtkWidget *widget,
gint page_num;
GtkWidget *notebook = lookup_widget(widget, "MNotebook");
if(notebook == NULL){
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;
}
return;
}
@@
-2511,7
+2511,7
@@
void
on_cut_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
on_cut_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_
printf
("Cut\n");
+ g_
info
("Cut\n");
}
}
@@
-2519,7
+2519,7
@@
void
on_copy_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
on_copy_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_
printf
("Copye\n");
+ g_
info
("Copye\n");
}
}
@@
-2527,7
+2527,7
@@
void
on_paste_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
on_paste_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_
printf
("Paste\n");
+ g_
info
("Paste\n");
}
}
@@
-2535,7
+2535,7
@@
void
on_delete_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
on_delete_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_
printf
("Delete\n");
+ g_
info
("Delete\n");
}
}
@@
-2626,7
+2626,7
@@
on_trace_filter_activate (GtkMenuItem *menuitem,
s = g_object_get_data(G_OBJECT(w), "Traceset_Selector");
if(!s){
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")){
return;
}
if(get_filter_selection(s, "Configure trace and tracefile filter", "Select traces and tracefiles")){
@@
-2642,7
+2642,7
@@
void
on_trace_facility_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
on_trace_facility_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_
printf
("Trace facility selector: %s\n");
+ g_
info
("Trace facility selector: %s\n");
}
}
@@
-2736,7
+2736,7
@@
on_load_library_activate (GtkMenuItem *menuitem,
#endif //0
lttv_library_load(str1, &error);
if(error != NULL) g_warning("%s", error->message);
#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:
g_strfreev(dir);
case GTK_RESPONSE_REJECT:
case GTK_RESPONSE_CANCEL:
@@
-2881,7
+2881,7
@@
on_load_module_activate (GtkMenuItem *menuitem,
lttv_module_require(module_name_out, &error);
if(error != NULL) g_warning("%s", error->message);
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
#if 0
@@
-2928,7
+2928,7
@@
on_load_module_activate (GtkMenuItem *menuitem,
#endif //0
lttv_library_load(str1, &error);
if(error != NULL) g_warning(error->message);
#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:
g_strfreev(dir);
case GTK_RESPONSE_REJECT:
case GTK_RESPONSE_CANCEL:
@@
-3026,7
+3026,7
@@
on_unload_module_activate (GtkMenuItem *menuitem,
LttvModuleInfo module_info;
lttv_module_info(module, &module_info);
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);
}
lttv_module_release(module);
}
@@
-3101,7
+3101,7
@@
void
on_color_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
on_color_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_
printf
("Color\n");
+ g_
info
("Color\n");
}
}
@@
-3109,7
+3109,7
@@
void
on_filter_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
on_filter_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_
printf
("Filter\n");
+ g_
info
("Filter\n");
}
}
@@
-3117,7
+3117,7
@@
void
on_save_configuration_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
on_save_configuration_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_
printf
("Save configuration\n");
+ g_
info
("Save configuration\n");
}
}
@@
-3125,7
+3125,7
@@
void
on_content_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
on_content_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- g_
printf
("Content\n");
+ g_
info
("Content\n");
}
}
@@
-3378,7
+3378,7
@@
on_MWindow_destroy (GtkWidget *widget,
g_object_unref(main_window->attributes);
g_main_window_list = g_slist_remove(g_main_window_list, main_window);
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 ();
}
if(g_slist_length(g_main_window_list) == 0)
gtk_main_quit ();
}
@@
-4217,7
+4217,7
@@
char * get_selection(char ** loaded_module_name, int nb_module,
}
id = gtk_dialog_run(GTK_DIALOG(dialogue));
}
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:
switch(id){
case GTK_RESPONSE_ACCEPT:
case GTK_RESPONSE_OK:
@@
-4382,7
+4382,7
@@
void construct_main_window(MainWindow * parent)
//create a default tab
notebook = (GtkNotebook *)lookup_widget(new_m_window->mwindow, "MNotebook");
if(notebook == NULL){
//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));
return;
}
//gtk_notebook_popup_enable (GTK_NOTEBOOK(notebook));
@@
-4456,7
+4456,7
@@
void construct_main_window(MainWindow * parent)
}
}
}
}
- 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));
}
}
This page took
0.026557 seconds
and
4
git commands to generate.