+/* 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 <config.h>
#endif
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");
lttv_module_load(str1, mw_data->win_creation_data->argc,mw_data->win_creation_data->argv);
else
lttv_module_load(str1, 0,NULL);
- g_slist_foreach(g_main_window_list, insert_menu_toolbar_item, NULL);
+ g_slist_foreach(g_main_window_list, (gpointer)insert_menu_toolbar_item,
+ NULL);
g_strfreev(dir);
case GTK_RESPONSE_REJECT:
case GTK_RESPONSE_CANCEL:
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);