git-svn-id: http://ltt.polymtl.ca/svn@459 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git] / ltt / branches / poly / lttv / modules / gui / main / src / gtkdirsel.c
index 92a8ab9751cd4b18a22e0614ab4e942c3f19dfa2..651c5b22382b6042df5c9b2b47802afa1db5210c 100644 (file)
@@ -1,3 +1,20 @@
+/* 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.
+ */
 
 #include "config.h"
 
@@ -2460,7 +2477,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 +4057,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.024498 seconds and 4 git commands to generate.