Permalink
Browse files

as it's not possible to write static extensions methods, move this in…

… its own namespace
  • Loading branch information...
1 parent fc9f997 commit 370736544f9ae3cad77756de5041f143584cf028 @StephaneDelcroix StephaneDelcroix committed May 25, 2009
Showing with 4 additions and 3 deletions.
  1. +4 −3 GLib.Sources/Sources.cs
View
@@ -21,16 +21,17 @@
using System;
using System.Runtime.InteropServices;
+using GLib;
-namespace GLib {
- static class SourceExtensions {
+namespace GLibBeans {
+ public class Sources {
[DllImport("libglib-2.0-0.dll")]
static extern void g_source_set_priority (IntPtr source, int priority);
[DllImport("libglib-2.0-0.dll")]
static extern IntPtr g_main_context_find_source_by_id (IntPtr context, uint source_id);
- public static void SetPriority (this Source source, uint source_id, Priority priority)
+ public static void SetPriority (uint source_id, Priority priority)
{
g_source_set_priority (g_main_context_find_source_by_id (IntPtr.Zero, source_id), (int)priority);
}

0 comments on commit 3707365

Please sign in to comment.