summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b6534ae)
raw | patch | inline | side by side (parent: b6534ae)
author | joncruz <joncruz@users.sourceforge.net> | |
Fri, 19 Sep 2008 05:45:08 +0000 (05:45 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Fri, 19 Sep 2008 05:45:08 +0000 (05:45 +0000) |
src/inkscape.cpp | patch | blob | history |
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 6486204eb866765cf3b6af52bcb007c7c85d4b18..9264e6010ffed299e44fc1c927136ef21c93c670 100644 (file)
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
struct stat sb;
time_t min_time = 0;
gint count = 0;
-
+
// Look for previous autosaves
gchar* baseName = g_strdup_printf( "inkscape-autosave-%d", uid );
g_dir_rewind(autosave_dir_ptr);
}
// g_debug("%d previous autosaves exists. Max = %d", count, autosave_max);
-
+
// Have we reached the limit for number of autosaves?
if ( count >= autosave_max ){
// Remove the oldest file
inkscape->dialogs_toggle = TRUE;
- inkscape->mapalt=GDK_MOD1_MASK;
+ inkscape->mapalt=GDK_MOD1_MASK;
}
static void
static gint recursion = FALSE;
- /*
+ /*
* reset all signal handlers: any further crashes should just be allowed
* to crash normally.
* */
#ifndef WIN32
signal (SIGBUS, bus_handler );
#endif
-
+
/* Stop bizarre loops */
if (recursion) {
abort ();
sp_input_load_from_preferences();
/* DebugDialog redirection. On Linux, default to OFF, on Win32, default to ON.
- * Use only if use_gui is enabled
+ * Use only if use_gui is enabled
*/
#ifdef WIN32
#define DEFAULT_LOG_REDIRECT true
* Menus management
*
*/
-bool
-inkscape_load_menus (Inkscape::Application *inkscape)
+bool inkscape_load_menus (Inkscape::Application */*inkscape*/)
{
gchar *fn = profile_path(MENUS_FILE);
gchar *menus_xml = NULL; gsize len = 0;
-
+
if (g_file_get_contents(fn, &menus_xml, &len, NULL)) {
// load the menus_xml file
INKSCAPE->menus = sp_repr_read_mem(menus_xml, len, NULL);
/**
* @deprecated Use the Preferences class instead, and try not to use _getNode
*/
-Inkscape::XML::Node *
-inkscape_get_repr (Inkscape::Application *inkscape, const gchar *key)
+Inkscape::XML::Node *inkscape_get_repr(Inkscape::Application */*inkscape*/, const gchar *key)
{
Inkscape::Preferences *ps = Inkscape::Preferences::get();
return ps->_getNode(key);
if (!Inkscape::NSApplication::Application::getNewGui())
{
if ( inkscape->document_set.find(document) == inkscape->document_set.end() ) {
-
+
inkscape->documents = g_slist_append (inkscape->documents, document);
}
inkscape->document_set.insert(document);
homedir = g_get_home_dir();
}
if (!homedir) {
+// TODO check this. It looks broken
gchar * path = g_path_get_dirname(INKSCAPE->argv0);
}
return g_build_filename(homedir, filename, NULL);