[hyena/gtk3] GtkUtilities: shorten some lines by removing unnecessary namespaces
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena/gtk3] GtkUtilities: shorten some lines by removing unnecessary namespaces
- Date: Fri, 6 Sep 2013 11:21:13 +0000 (UTC)
commit 883a59508059ac429121591ca1ca0bf65ccb3b56
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Fri Sep 6 12:59:06 2013 +0200
GtkUtilities: shorten some lines by removing unnecessary namespaces
No change of behaviour in this commit.
Hyena.Gui/Hyena.Gui/GtkUtilities.cs | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Gui/GtkUtilities.cs b/Hyena.Gui/Hyena.Gui/GtkUtilities.cs
index 0fdc1d4..43b9180 100644
--- a/Hyena.Gui/Hyena.Gui/GtkUtilities.cs
+++ b/Hyena.Gui/Hyena.Gui/GtkUtilities.cs
@@ -29,6 +29,7 @@
//
using System;
+using System.Collections.Generic;
using Gtk;
namespace Hyena.Gui
@@ -68,7 +69,7 @@ namespace Hyena.Gui
return true;
}
- public static FileFilter GetFileFilter (string name, System.Collections.Generic.IEnumerable<string>
extensions)
+ public static FileFilter GetFileFilter (string name, IEnumerable<string> extensions)
{
FileFilter filter = new FileFilter ();
filter.Name = name;
@@ -79,7 +80,7 @@ namespace Hyena.Gui
return filter;
}
- public static void SetChooserShortcuts (Gtk.FileChooserDialog chooser, params string [] shortcuts)
+ public static void SetChooserShortcuts (FileChooserDialog chooser, params string [] shortcuts)
{
foreach (string shortcut in shortcuts) {
if (shortcut != null) {
@@ -144,7 +145,8 @@ namespace Hyena.Gui
}
}
- internal static string Dump (this Gtk.Adjustment alig) {
+ internal static string Dump (this Adjustment alig)
+ {
if (alig == null) {
return "<null>";
}
@@ -161,13 +163,13 @@ namespace Hyena.Gui
[Obsolete ("Use Gtk.Global.ShowUri() from gtk# 3.x")]
public static bool ShowUri (Gdk.Screen screen, string uri)
{
- return ShowUri (screen, uri, Gtk.Global.CurrentEventTime);
+ return ShowUri (screen, uri, Global.CurrentEventTime);
}
[Obsolete ("Use Gtk.Global.ShowUri() from gtk# 3.x")]
public static bool ShowUri (Gdk.Screen screen, string uri, uint timestamp)
{
- return Gtk.Global.ShowUri (screen, uri, timestamp);
+ return Global.ShowUri (screen, uri, timestamp);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]