Fix compiler warnings.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1715 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2007-07-17 12:37:48 +00:00
parent b54eb0a180
commit 3b00085ae9
11 changed files with 14 additions and 4 deletions

View File

@ -1085,7 +1085,7 @@ gboolean document_save_file(gint idx, gboolean force)
// ignore the following things if we are quitting // ignore the following things if we are quitting
if (! app->quitting) if (! app->quitting)
{ {
gchar *basename = g_path_get_basename(doc_list[idx].file_name); gchar *base_name = g_path_get_basename(doc_list[idx].file_name);
// set line numbers again, to reset the margin width, if // set line numbers again, to reset the margin width, if
// there are more lines than before // there are more lines than before
@ -1103,11 +1103,11 @@ gboolean document_save_file(gint idx, gboolean force)
} }
document_set_filetype(idx, doc_list[idx].file_type); document_set_filetype(idx, doc_list[idx].file_type);
tm_workspace_update(TM_WORK_OBJECT(app->tm_workspace), TRUE, TRUE, FALSE); tm_workspace_update(TM_WORK_OBJECT(app->tm_workspace), TRUE, TRUE, FALSE);
gtk_label_set_text(GTK_LABEL(doc_list[idx].tab_label), basename); gtk_label_set_text(GTK_LABEL(doc_list[idx].tab_label), base_name);
gtk_label_set_text(GTK_LABEL(doc_list[idx].tabmenu_label), basename); gtk_label_set_text(GTK_LABEL(doc_list[idx].tabmenu_label), base_name);
msgwin_status_add(_("File %s saved."), doc_list[idx].file_name); msgwin_status_add(_("File %s saved."), doc_list[idx].file_name);
ui_update_statusbar(idx, -1); ui_update_statusbar(idx, -1);
g_free(basename); g_free(base_name);
#ifdef HAVE_VTE #ifdef HAVE_VTE
vte_cwd(doc_list[idx].file_name, FALSE); vte_cwd(doc_list[idx].file_name, FALSE);
#endif #endif

View File

@ -21,6 +21,7 @@
*/ */
#include "general.h" /* must always come first */ #include "general.h" /* must always come first */
#include <glib.h> #include <glib.h>
#include <glib/gstdio.h>
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> /* to declare malloc (), realloc () */ # include <stdlib.h> /* to declare malloc (), realloc () */

View File

@ -17,6 +17,7 @@
#include <ctype.h> /* to define isspace () */ #include <ctype.h> /* to define isspace () */
#include <errno.h> #include <errno.h>
#include <glib.h> #include <glib.h>
#include <glib/gstdio.h>
#if defined (HAVE_SYS_TYPES_H) #if defined (HAVE_SYS_TYPES_H)
# include <sys/types.h> /* to declare off_t on some hosts */ # include <sys/types.h> /* to declare off_t on some hosts */

View File

@ -16,6 +16,7 @@
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include <glib/gstdio.h>
#define FILE_WRITE #define FILE_WRITE
#include "read.h" #include "read.h"

View File

@ -27,6 +27,7 @@
# endif # endif
# include "regex.h" # include "regex.h"
#endif #endif
#include <glib/gstdio.h>
#include "entry.h" #include "entry.h"
#include "main.h" #include "main.h"

View File

@ -19,6 +19,7 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <glib.h> #include <glib.h>
#include <glib/gstdio.h>
#include "entry.h" #include "entry.h"
#include "main.h" #include "main.h"

View File

@ -18,6 +18,7 @@
#ifdef HAVE_FNMATCH_H #ifdef HAVE_FNMATCH_H
# include <fnmatch.h> # include <fnmatch.h>
#endif #endif
#include <glib/gstdio.h>
#include "main.h" #include "main.h"
#include "read.h" #include "read.h"

View File

@ -22,6 +22,7 @@
#ifdef HAVE_FNMATCH_H #ifdef HAVE_FNMATCH_H
# include <fnmatch.h> # include <fnmatch.h>
#endif #endif
#include <glib/gstdio.h>
#include "tm_work_object.h" #include "tm_work_object.h"
#include "tm_file_entry.h" #include "tm_file_entry.h"

View File

@ -18,6 +18,7 @@
#ifdef HAVE_FNMATCH_H #ifdef HAVE_FNMATCH_H
# include <fnmatch.h> # include <fnmatch.h>
#endif #endif
#include <glib/gstdio.h>
#include "options.h" #include "options.h"

View File

@ -14,6 +14,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <glib/gstdio.h>
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
# define VC_EXTRALEAN # define VC_EXTRALEAN
# define WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN

View File

@ -19,6 +19,7 @@
#ifdef HAVE_GLOB_H #ifdef HAVE_GLOB_H
# include <glob.h> # include <glob.h>
#endif #endif
#include <glib/gstdio.h>
// handling of P_tmpdir, should be something like /tmp, take the root directory under Win32, // handling of P_tmpdir, should be something like /tmp, take the root directory under Win32,
// and assume /tmp on non-Win32 systems where P_tmpdir is not set // and assume /tmp on non-Win32 systems where P_tmpdir is not set
#ifndef P_tmpdir #ifndef P_tmpdir