improved usage of config.h and cleaned some header files from unneeded includes.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@89 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2005-12-29 19:50:50 +00:00
parent f2973cc555
commit 5deab2b6e5
11 changed files with 30 additions and 45 deletions

View File

@ -22,6 +22,7 @@
#include <gdk/gdkkeysyms.h>
#include <string.h>
#include "dialogs.h"
@ -29,7 +30,10 @@
#include "document.h"
#include "win32.h"
#include "about.h"
#include "sciwrappers.h"
#include "support.h"
#include "interface.h"
#include "utils.h"
/* This shows the file selection dialog to open a file. */
void dialogs_show_open_file ()
@ -143,8 +147,7 @@ gboolean dialogs_show_not_found(const gchar *text)
else return FALSE;
#else
dialog = gtk_message_dialog_new(GTK_WINDOW(app->window), GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, NULL);
gtk_message_dialog_set_markup(GTK_MESSAGE_DIALOG(dialog), string);
GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "%s", string);
g_free(string);
ret = gtk_dialog_run(GTK_DIALOG (dialog));
gtk_widget_destroy(dialog);

View File

@ -26,10 +26,6 @@
#ifndef GEANY_DIALOGS_H
#define GEANY_DIALOGS_H 1
#include "support.h"
#include "interface.h"
#include "utils.h"
/* This shows the file selection dialog to open a file. */
void dialogs_show_open_file (void);

View File

@ -17,18 +17,13 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id$
*/
#ifndef GEANY_DOCUMENT_H
#define GEANY_DOCUMENT_H 1
#include "geany.h"
#include "callbacks.h"
#include "sciwrappers.h"
#include "sci_cb.h"
#include "dialogs.h"
#include "msgwindow.h"
/* returns the index of the notebook page which has the given filename */
gint document_find_by_filename(const gchar*);

View File

@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id$
*/
@ -31,8 +32,6 @@
#ifndef GEANY_ENCODINGS_H
#define GEANY_ENCODINGS_H
#include <glib.h>
typedef struct _GeanyEncoding GeanyEncoding;
const GeanyEncoding* encoding_get_from_charset(const gchar *charset);

View File

@ -22,8 +22,14 @@
#include <ctype.h>
#include "sci_cb.h"
#include <string.h>
#include "geany.h"
#include "sci_cb.h"
#include "document.h"
#include "sciwrappers.h"
#include "utils.h"
static gint link_start, link_end, style;
static gchar indent[100];

View File

@ -23,12 +23,6 @@
#define GEANY_SCI_CB_H 1
#include "geany.h"
#include "document.h"
#include "sciwrappers.h"
#include "utils.h"
// callback func called by all editors when a signals arises
void on_editor_notification(GtkWidget* editor, gint scn, gpointer lscn, gpointer user_data);

View File

@ -20,6 +20,9 @@
* $Id$
*/
#include <string.h>
#include "geany.h"
#include "sciwrappers.h"
#include "utils.h"

View File

@ -20,31 +20,17 @@
* $Id$
*/
#include <gtk/gtk.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#ifndef WIN32
# include <sys/mman.h>
# include <libgen.h>
#endif
#ifndef GEANY_SCIWRAPPERS_H
#define GEANY_SCIWRAPPERS_H 1
#include "geany.h"
#include "interface.h"
#include "support.h"
void sci_set_line_numbers (ScintillaObject* sci, gboolean set, gint extra_width);
void sci_set_mark_long_lines (ScintillaObject* sci, gint column, const gchar *color);
void sci_set_text (ScintillaObject* sci, const gchar* text);
void sci_add_text (ScintillaObject* sci, const gchar* text);
void sci_add_text_buffer (ScintillaObject* sci, const gchar* text, gint len);
gboolean sci_can_redo (ScintillaObject* sci);
gboolean sci_can_undo (ScintillaObject* sci);
gboolean sci_can_copy (ScintillaObject* sci);
@ -157,3 +143,5 @@ gboolean sci_get_readonly (ScintillaObject * sci);
gint sci_get_zoom (ScintillaObject * sci);
void sci_cmd (ScintillaObject * sci, gint cmd);
gint sci_get_current_line (ScintillaObject * sci, gint pos);
#endif

View File

@ -24,8 +24,6 @@
#ifndef GEANY_VTE_H
#define GEANY_VTE_H 1
#include <stdlib.h>
void vte_init(void);

View File

@ -17,15 +17,21 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id$
*/
// special functions for the win32 platform
#include "win32.h"
#include "geany.h"
#ifdef GEANY_WIN32
#include "win32.h"
#include "document.h"
#include "support.h"
//static gchar appfontname[128] = "tahoma 8"; /* fallback value */
static gchar *filters;

View File

@ -17,16 +17,13 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id$
*/
#include "geany.h"
#ifdef GEANY_WIN32
#include "document.h"
#include "support.h"
/*void set_app_font(const char *fontname);