X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fmain%2Fsrc%2Fcallbacks.c;h=4e6c01d5c7722ecbdd7136ebcaf883583accb712;hb=cef97e7c926bfe509b0b58d9c38bab60d30c81f8;hp=b198bf28de3a8fbef678eda965f77f367a6ebd70;hpb=f2d17b4d7f558420e9ead5f2d0062ec8b918015b;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c b/ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c index b198bf28..4e6c01d5 100644 --- a/ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c @@ -1,3 +1,21 @@ +/* This file is part of the Linux Trace Toolkit viewer + * Copyright (C) 2003-2004 XangXiu Yang + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License Version 2 as + * published by the Free Software Foundation; + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + #ifdef HAVE_CONFIG_H # include #endif @@ -8,10 +26,10 @@ #include "callbacks.h" #include "interface.h" #include "support.h" -#include +#include #include #include -#include +#include #include #include #include @@ -391,7 +409,7 @@ void add_trace(GtkWidget * widget, gpointer user_data) LttTrace *trace; LttvTrace * trace_v; LttvTraceset * traceset; - char * dir; + const char * dir; gint id; MainWindow * mw_data = get_window_data_struct(widget); GtkDirSelection * file_selector = (GtkDirSelection *)gtk_dir_selection_new("Select a trace"); @@ -931,7 +949,7 @@ on_add_module_search_path_activate (GtkMenuItem *menuitem, gpointer user_data) { GtkDirSelection * file_selector = (GtkDirSelection *)gtk_dir_selection_new("Select module path"); - char * dir; + const char * dir; gint id; MainWindow * mw_data = get_window_data_struct((GtkWidget*)menuitem);