SF.net SVN: geany: [1992] trunk

frlan at users.sourceforge.net frlan at xxxxx
Wed Oct 31 10:16:43 UTC 2007


Revision: 1992
          http://geany.svn.sourceforge.net/geany/?rev=1992&view=rev
Author:   frlan
Date:     2007-10-31 03:16:43 -0700 (Wed, 31 Oct 2007)

Log Message:
-----------
Make svn error messages better readable

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/plugins/svndiff.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-10-29 17:16:51 UTC (rev 1991)
+++ trunk/ChangeLog	2007-10-31 10:16:43 UTC (rev 1992)
@@ -1,3 +1,8 @@
+2007-10-31  Frank Lanitz  <frank(at)frank(dot)uvena(dot)de>
+
+ * plugins/svndiff.c: Make svn error messages better readable.
+
+
 2007-10-29  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
 
  * plugins/svndiff.c:

Modified: trunk/plugins/svndiff.c
===================================================================
--- trunk/plugins/svndiff.c	2007-10-29 17:16:51 UTC (rev 1991)
+++ trunk/plugins/svndiff.c	2007-10-31 10:16:43 UTC (rev 1992)
@@ -46,10 +46,10 @@
 static void show_output(const gchar *std_output, const gchar *name_prefix,
 		const gchar *force_encoding)
 {
-	gchar *text, *detect_enc = NULL;
-	gint new_idx;
-	gchar *filename;
-	
+	gchar	*text, *detect_enc = NULL;
+	gint 	new_idx;
+	gchar	*filename;
+
 	filename = g_path_get_basename(name_prefix);
 	setptr(filename, g_strconcat(filename, ".svn.diff", NULL));
 
@@ -107,8 +107,8 @@
 		}
 		else
 		{	// SVN returns some error
-			ui->set_statusbar(FALSE,
-				_("SVN exited with an error: %s."), g_strstrip(std_error));
+			dialogs->show_msgbox(1,
+				_("SVN exited with an error: \n%s."), g_strstrip(std_error));
 		}
 	}
 	else
@@ -121,14 +121,14 @@
 	return text;
 }
 
-	
+
 /* Make a diff from the current directory */
 static void svndirectory_activated(GtkMenuItem *menuitem, gpointer gdata)
 {
 	gint	idx;
 	gchar	*base_name = NULL;
 	gchar	*locale_filename = NULL;
-	gchar *text;
+	gchar	*text;
 
 	idx = documents->get_cur_idx();
 
@@ -151,7 +151,7 @@
 	g_free(locale_filename);
 }
 
-	
+
 /* Callback if menu item for the current project was activated */
 static void svnproject_activated(GtkMenuItem *menuitem, gpointer gdata)
 {
@@ -180,8 +180,8 @@
 /* Callback if menu item for a single file was activated */
 static void svnfile_activated(GtkMenuItem *menuitem, gpointer gdata)
 {
-	gint idx;
-	gchar *locale_filename, *text;
+	gint	idx;
+	gchar	*locale_filename, *text;
 
 	idx = documents->get_cur_idx();
 
@@ -208,8 +208,8 @@
 
 static void update_menu_items()
 {
-	document *doc;
-	gboolean have_file;
+	document	*doc;
+	gboolean	have_file;
 
 	doc = documents->get_current();
 	have_file = doc && doc->file_name && g_path_is_absolute(doc->file_name);
@@ -224,9 +224,9 @@
 /* Called by Geany to initialize the plugin */
 void init(GeanyData *data)
 {
-	GtkWidget *menu_svndiff = NULL;
-	GtkWidget *menu_svndiff_menu = NULL;
- 	GtkTooltips *tooltips = NULL;
+	GtkWidget	*menu_svndiff = NULL;
+	GtkWidget	*menu_svndiff_menu = NULL;
+ 	GtkTooltips	*tooltips = NULL;
 
 	tooltips = gtk_tooltips_new();
 


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