SF.net SVN: geany: [835] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Tue Sep 26 16:29:54 UTC 2006
Revision: 835
http://svn.sourceforge.net/geany/?rev=835&view=rev
Author: eht16
Date: 2006-09-26 09:29:44 -0700 (Tue, 26 Sep 2006)
Log Message:
-----------
Enabled socket code on Windows.
Re-enabled the gtk_window_present() call for Windows to pop up the main window.
Enabled notification if file on disk has changed under Windows, it seems to work (closes #1557689).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/sci_cb.c
trunk/src/socket.c
trunk/src/utils.c
trunk/win32-config.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-09-26 14:00:30 UTC (rev 834)
+++ trunk/ChangeLog 2006-09-26 16:29:44 UTC (rev 835)
@@ -1,3 +1,13 @@
+2006-09-26 Enrico Tröger <enrico.troeger at uvena.de>
+
+ * win32-config.h: Enabled socket code on Windows.
+ * src/socket.c: Re-enabled the gtk_window_present() call for Windows
+ to pop up the main window.
+ * src/utils.c, src/sci_cb.c:
+ Enabled notification if file on disk has changed under Windows, it
+ seems to work (closes #1557689).
+
+
2006-09-26 Frank Lanitz <frank at frank.uvena.de>
* po/nl.po, THANKS, configure.in, scr/about.c:
Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c 2006-09-26 14:00:30 UTC (rev 834)
+++ trunk/src/sci_cb.c 2006-09-26 16:29:44 UTC (rev 835)
@@ -59,12 +59,10 @@
gint idx = GPOINTER_TO_INT(user_data);
editor_info.click_pos = sci_get_position_from_xy(doc_list[idx].sci, event->x, event->y, FALSE);
-#ifndef G_OS_WIN32
if (event->button == 1)
{
return utils_check_disk_status(idx);
}
-#endif
if (event->button == 3)
{
@@ -1397,12 +1395,12 @@
real_uncomment_multiline(idx);
count_uncommented++;
}
- else
+ else
{
real_comment_multiline(idx, line_start, last_line);
count_commented++;
}
-
+
// break because we are already on the last line
break_loop = TRUE;
break;
@@ -1437,7 +1435,7 @@
sci_set_selection_start(doc_list[idx].sci, sel_start - co_len - eol_len);
sci_set_selection_end(doc_list[idx].sci, sel_end - co_len - eol_len);
}
- else
+ else
{
sci_set_selection_start(doc_list[idx].sci, sel_start + co_len + eol_len);
sci_set_selection_end(doc_list[idx].sci, sel_end + co_len + eol_len);
Modified: trunk/src/socket.c
===================================================================
--- trunk/src/socket.c 2006-09-26 14:00:30 UTC (rev 834)
+++ trunk/src/socket.c 2006-09-26 16:29:44 UTC (rev 835)
@@ -356,6 +356,9 @@
geany_debug("got data from socket, but it does not look like a filename");
}
gtk_window_deiconify(GTK_WINDOW(app->window));
+#ifdef G_OS_WIN32
+ gtk_window_present(GTK_WINDOW(app->window));
+#endif
}
socket_fd_close(sock);
Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c 2006-09-26 14:00:30 UTC (rev 834)
+++ trunk/src/utils.c 2006-09-26 16:29:44 UTC (rev 835)
@@ -481,7 +481,6 @@
gboolean utils_check_disk_status(gint idx)
{
-#ifndef G_OS_WIN32
struct stat st;
time_t t;
gchar *locale_filename;
@@ -519,7 +518,6 @@
g_free(basename);
return TRUE; //file has changed
}
-#endif
return FALSE;
}
Modified: trunk/win32-config.h
===================================================================
--- trunk/win32-config.h 2006-09-26 14:00:30 UTC (rev 834)
+++ trunk/win32-config.h 2006-09-26 16:29:44 UTC (rev 835)
@@ -286,7 +286,7 @@
/* #undef TM_IN_SYS_TIME */
/* Version number of package */
-#define VERSION "0.8"
+#define VERSION "0.9"
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
@@ -320,3 +320,6 @@
/* #undef volatile */
#define REVISION "SVN"
+
+/* Define if you want to detect a running instance */
+#define HAVE_SOCKET 1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list