warning fix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 27 Jan 2004 22:45:08 +0000 (22:45 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 27 Jan 2004 22:45:08 +0000 (22:45 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@425 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/include/lttv/gtkdirsel.h
ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c
ltt/branches/poly/lttv/modules/gui/main/src/gtkdirsel.c

index 6b9318deb780e17bd6b2e9cee89c882e4c6c2f8c..4c820c448d7eee02c41c1b56df0602d6fd17a0ee 100644 (file)
@@ -84,7 +84,7 @@ void       gtk_dir_selection_show_fileop_buttons (GtkDirSelection *filesel);
 void       gtk_dir_selection_hide_fileop_buttons (GtkDirSelection *filesel);
 
 gchar**    gtk_dir_selection_get_selections      (GtkDirSelection *filesel);
-gchar *    gtk_dir_selection_get_dir (GtkDirSelection *filesel);
+const gchar *    gtk_dir_selection_get_dir (GtkDirSelection *filesel);
 void       gtk_dir_selection_set_select_multiple (GtkDirSelection *filesel,
                                                   gboolean          select_multiple);
 gboolean   gtk_dir_selection_get_select_multiple (GtkDirSelection *filesel);
index b198bf28de3a8fbef678eda965f77f367a6ebd70..4c82c444be72dacd7b5fcb40307a01990db17275 100644 (file)
@@ -391,7 +391,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");
index 92a8ab9751cd4b18a22e0614ab4e942c3f19dfa2..480563a770d03efc507cc9d22399b273c55b88b1 100644 (file)
@@ -2460,7 +2460,8 @@ gtk_dir_selection_dir_changed (GtkTreeSelection *selection,
 
   if (index != -1)
     {
-      gchar * err, str[256];
+      const gchar * err;
+      gchar str[256];
       err = gtk_label_get_text (GTK_LABEL (fs->selection_text));
       err += 11;  //pass over "Selection: "
       sprintf(str,"%s\0",err);
@@ -4039,7 +4040,7 @@ cmpl_strerror (gint err)
     return g_strerror (err);
 }
 
-gchar *    gtk_dir_selection_get_dir (GtkDirSelection *filesel)
+const gchar *    gtk_dir_selection_get_dir (GtkDirSelection *filesel)
 {
   return     gtk_entry_get_text (GTK_ENTRY (filesel->selection_entry));
 }
This page took 0.02804 seconds and 4 git commands to generate.