Revision: 1664
http://svn.sourceforge.net/geany/?rev=1664&view=rev
Author: eht16
Date: 2007-07-04 10:42:01 -0700 (Wed, 04 Jul 2007)
Log Message:
-----------
Use a unique mutex name on Windows to be able to load multiple instances like on non-Windows systems.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/socket.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-07-04 17:08:53 UTC (rev 1663)
+++ trunk/ChangeLog 2007-07-04 17:42:01 UTC (rev 1664)
@@ -7,6 +7,8 @@
src/document.h, src/editor.c, src/project.c, src/search.c,
src/utils.c, src/win32.c, src/win32.h:
Fix focus problem when using the Find dialog.
+ * src/socket.c: Use a unique mutex name on Windows to be able to load
+ multiple instances like on non-Windows systems.
2007-07-04 Nick Treleaven <nick.treleaven(a)btinternet.com>
Modified: trunk/src/socket.c
===================================================================
--- trunk/src/socket.c 2007-07-04 17:08:53 UTC (rev 1663)
+++ trunk/src/socket.c 2007-07-04 17:42:01 UTC (rev 1664)
@@ -157,9 +157,13 @@
#ifdef G_OS_WIN32
HANDLE hmutex;
+ // we need a mutex name which is unique for the used configuration dir,
+ // but we can't use the whole path, so build a hash on the configdir and use it
+ gchar *mutex_name = g_strdup_printf("Geany%d", g_str_hash(app->configdir));
socket_init_win32();
- hmutex = CreateMutexA(NULL, FALSE, "Geany");
+ hmutex = CreateMutexA(NULL, FALSE, mutex_name);
+ g_free(mutex_name);
if (! hmutex)
{
geany_debug("cannot create Mutex\n");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1661
http://svn.sourceforge.net/geany/?rev=1661&view=rev
Author: ntrel
Date: 2007-07-04 05:07:57 -0700 (Wed, 04 Jul 2007)
Log Message:
-----------
Create /tags directory if it doesn't exist when loading
global tags.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/symbols.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-07-04 12:04:46 UTC (rev 1660)
+++ trunk/ChangeLog 2007-07-04 12:07:57 UTC (rev 1661)
@@ -14,6 +14,9 @@
Capitalize 2 menu item labels.
* plugins/classbuilder.c:
Make Class Builder dialog close when pressing escape.
+ * src/symbols.c:
+ Create $configdir/tags directory if it doesn't exist when loading
+ global tags.
2007-07-02 Enrico Tröger <enrico.troeger(a)uvena.de>
Modified: trunk/src/symbols.c
===================================================================
--- trunk/src/symbols.c 2007-07-04 12:04:46 UTC (rev 1660)
+++ trunk/src/symbols.c 2007-07-04 12:07:57 UTC (rev 1661)
@@ -845,6 +845,12 @@
// don't need to delete list contents because they are now used for hash contents
g_slist_free(file_list);
+
+ // create the tags dir for next time if it doesn't exist
+ if (! g_file_test(user_tags_dir, G_FILE_TEST_IS_DIR))
+ {
+ utils_mkdir(user_tags_dir, FALSE);
+ }
return lang_hash;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1660
http://svn.sourceforge.net/geany/?rev=1660&view=rev
Author: ntrel
Date: 2007-07-04 05:04:46 -0700 (Wed, 04 Jul 2007)
Log Message:
-----------
Make Class Builder dialog close when pressing escape.
Modified Paths:
--------------
trunk/ChangeLog
trunk/plugins/classbuilder.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-07-04 11:32:33 UTC (rev 1659)
+++ trunk/ChangeLog 2007-07-04 12:04:46 UTC (rev 1660)
@@ -12,6 +12,8 @@
Don't use G_MODULE_BIND_LAZY when loading plugins otherwise we can
potentially get unresolved symbols at runtime, causing a segfault.
Capitalize 2 menu item labels.
+ * plugins/classbuilder.c:
+ Make Class Builder dialog close when pressing escape.
2007-07-02 Enrico Tröger <enrico.troeger(a)uvena.de>
Modified: trunk/plugins/classbuilder.c
===================================================================
--- trunk/plugins/classbuilder.c 2007-07-04 11:32:33 UTC (rev 1659)
+++ trunk/plugins/classbuilder.c 2007-07-04 12:04:46 UTC (rev 1660)
@@ -369,7 +369,7 @@
cc_dlg->dialog = gtk_dialog_new_with_buttons(_("Create class"),
GTK_WINDOW(plugin_data->app->window),
GTK_DIALOG_MODAL,
- GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
gtk_container_set_border_width(GTK_CONTAINER(cc_dlg->dialog), 5);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1658
http://svn.sourceforge.net/geany/?rev=1658&view=rev
Author: ntrel
Date: 2007-07-04 04:14:05 -0700 (Wed, 04 Jul 2007)
Log Message:
-----------
Add comment for utils_free_pointers() warning not to use it if any
pointers may be NULL.
Modified Paths:
--------------
trunk/src/utils.c
trunk/src/utils.h
Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c 2007-07-02 18:37:17 UTC (rev 1657)
+++ trunk/src/utils.c 2007-07-04 11:14:05 UTC (rev 1658)
@@ -1480,8 +1480,10 @@
}
-/* Frees all passed pointers if they are non-NULL, the first argument is nothing special,
- * it will also be freed, the list should be ended with NULL */
+/* Frees all passed pointers if they are *ALL* non-NULL.
+ * Do not use if any pointers may be NULL.
+ * The first argument is nothing special, it will also be freed.
+ * The list must be ended with NULL. */
void utils_free_pointers(gpointer first, ...)
{
va_list a;
Modified: trunk/src/utils.h
===================================================================
--- trunk/src/utils.h 2007-07-02 18:37:17 UTC (rev 1657)
+++ trunk/src/utils.h 2007-07-04 11:14:05 UTC (rev 1658)
@@ -164,8 +164,10 @@
gchar *utils_get_utf8_from_locale(const gchar *locale_text);
-/* Frees all passed pointers if they are non-NULL, the first argument is nothing special,
- * it will also be freed, the list should be ended with NULL */
+/* Frees all passed pointers if they are *ALL* non-NULL.
+ * Do not use if any pointers may be NULL.
+ * The first argument is nothing special, it will also be freed.
+ * The list must be ended with NULL. */
void utils_free_pointers(gpointer first, ...) G_GNUC_NULL_TERMINATED;
/* Creates a string array deep copy of a series of non-NULL strings.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.