[gedit-code-assistance] Make classes public
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-code-assistance] Make classes public
- Date: Sat, 3 Mar 2012 15:02:07 +0000 (UTC)
commit 3954b288e4ea646a0f5109f1bef29cc3a5654952
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Sat Mar 3 16:00:54 2012 +0100
Make classes public
src/gcp-diagnostic.vala | 2 +-
src/gcp-log.vala | 52 ++++++++++++++++++++++++++++++++-----
src/gcp-scrollbar-marker.vala | 2 +-
src/gcp-source-index.vala | 2 +-
src/gcp-source-location.vala | 2 +-
src/gcp-source-range-support.vala | 2 +-
src/gcp-source-range.vala | 2 +-
src/gcp-symbol-browser.vala | 2 +-
8 files changed, 52 insertions(+), 14 deletions(-)
---
diff --git a/src/gcp-diagnostic.vala b/src/gcp-diagnostic.vala
index d3cebaa..a8df9f5 100644
--- a/src/gcp-diagnostic.vala
+++ b/src/gcp-diagnostic.vala
@@ -22,7 +22,7 @@ using Gee;
namespace Gcp
{
-class Diagnostic : Object, SourceRangeSupport
+public class Diagnostic : Object, SourceRangeSupport
{
public enum Severity
{
diff --git a/src/gcp-log.vala b/src/gcp-log.vala
index d071ced..c22b9e6 100644
--- a/src/gcp-log.vala
+++ b/src/gcp-log.vala
@@ -1,43 +1,81 @@
namespace Gcp
{
- private class Log
+ public class Log
{
private static string Domain = "Gcp";
+ [Diagnostics]
+ [PrintfFormat]
public static void error(string format, ...)
{
var v = va_list();
- GLib.log(Domain, GLib.LogLevelFlags.LEVEL_ERROR, "%s", format.vprintf(v));
+
+ GLib.log(Domain,
+ GLib.LogLevelFlags.LEVEL_ERROR,
+ "%s",
+ format.vprintf(v));
}
+ [Diagnostics]
+ [PrintfFormat]
public static void warning(string format, ...)
{
var v = va_list();
- GLib.log(Domain, GLib.LogLevelFlags.LEVEL_WARNING, "%s", format.vprintf(v));
+
+ GLib.log (Domain,
+ GLib.LogLevelFlags.LEVEL_WARNING,
+ "%s",
+ format.vprintf(v));
}
+ [Diagnostics]
+ [PrintfFormat]
public static void message(string format, ...)
{
var v = va_list();
- GLib.log(Domain, GLib.LogLevelFlags.LEVEL_MESSAGE, "%s", format.vprintf(v));
+
+ GLib.log (Domain,
+ GLib.LogLevelFlags.LEVEL_MESSAGE,
+ "%s",
+ format.vprintf(v));
}
+ [Diagnostics]
+ [PrintfFormat]
public static void info(string format, ...)
{
var v = va_list();
- GLib.log(Domain, GLib.LogLevelFlags.LEVEL_INFO, "%s", format.vprintf(v));
+
+ GLib.log (Domain,
+ GLib.LogLevelFlags.LEVEL_INFO,
+ "%s",
+ format.vprintf(v));
}
+ [Diagnostics]
+ [PrintfFormat]
public static void debug(string format, ...)
{
var v = va_list();
- GLib.log(Domain, GLib.LogLevelFlags.LEVEL_DEBUG, "%s", format.vprintf(v));
+
+ GLib.log (Domain,
+ GLib.LogLevelFlags.LEVEL_DEBUG,
+ "%s",
+ format.vprintf(v));
}
+ [Diagnostics]
+ [PrintfFormat]
public static void critical(string format, ...)
{
var v = va_list();
- GLib.log(Domain, GLib.LogLevelFlags.LEVEL_CRITICAL, "%s", format.vprintf(v));
+
+ GLib.log (Domain,
+ GLib.LogLevelFlags.LEVEL_CRITICAL,
+ "%s",
+ format.vprintf(v));
}
}
}
+
+// vi:ex:ts=4
diff --git a/src/gcp-scrollbar-marker.vala b/src/gcp-scrollbar-marker.vala
index fd81e15..46150cc 100644
--- a/src/gcp-scrollbar-marker.vala
+++ b/src/gcp-scrollbar-marker.vala
@@ -23,7 +23,7 @@ using Gee;
namespace Gcp
{
-class ScrollbarMarker
+public class ScrollbarMarker
{
public class Marker
{
diff --git a/src/gcp-source-index.vala b/src/gcp-source-index.vala
index f8d7be7..0da9fd1 100644
--- a/src/gcp-source-index.vala
+++ b/src/gcp-source-index.vala
@@ -22,7 +22,7 @@ using Gee;
namespace Gcp
{
-class SourceIndex<T> : Object
+public class SourceIndex<T> : Object
{
public class Wrapper : Object
{
diff --git a/src/gcp-source-location.vala b/src/gcp-source-location.vala
index 132e97a..3841808 100644
--- a/src/gcp-source-location.vala
+++ b/src/gcp-source-location.vala
@@ -22,7 +22,7 @@ using Gtk;
namespace Gcp
{
-class SourceLocation : Object, SourceRangeSupport
+public class SourceLocation : Object, SourceRangeSupport
{
private File? d_file;
private int d_line;
diff --git a/src/gcp-source-range-support.vala b/src/gcp-source-range-support.vala
index a814ae6..c5a827c 100644
--- a/src/gcp-source-range-support.vala
+++ b/src/gcp-source-range-support.vala
@@ -19,7 +19,7 @@
namespace Gcp
{
-interface SourceRangeSupport : Object
+public interface SourceRangeSupport : Object
{
public abstract SourceRange? range
{
diff --git a/src/gcp-source-range.vala b/src/gcp-source-range.vala
index cb1cc14..ca58bd4 100644
--- a/src/gcp-source-range.vala
+++ b/src/gcp-source-range.vala
@@ -20,7 +20,7 @@
namespace Gcp
{
-class SourceRange : Object, SourceRangeSupport
+public class SourceRange : Object, SourceRangeSupport
{
private SourceLocation d_start;
private SourceLocation d_end;
diff --git a/src/gcp-symbol-browser.vala b/src/gcp-symbol-browser.vala
index 374c582..96799cd 100644
--- a/src/gcp-symbol-browser.vala
+++ b/src/gcp-symbol-browser.vala
@@ -20,7 +20,7 @@
namespace Gcp
{
-class SymbolBrowser : Gtk.TreeStore
+public class SymbolBrowser : Gtk.TreeStore
{
private bool d_tainted;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]