[f-spot] BuilderWindow
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] BuilderWindow
- Date: Thu, 25 Jun 2009 09:31:34 +0000 (UTC)
commit 0c3e9a67886ffcc2457f6663f9c44420ed7a73f2
Author: Stephane Delcroix <stephane delcroix org>
Date: Thu Jun 25 09:09:13 2009 +0200
BuilderWindow
BuilderWindow help class, so GtkBuilder generated Windows inherits from Gtk.Window. Required for GtkBuilder migratino of FacebookExport
src/Makefile.am | 1 +
src/Widgets/BuilderWindow.cs | 32 ++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 65c97ee..6bb8a11 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -78,6 +78,7 @@ WIDGETS_CSDISTFILES = \
$(srcdir)/Bling/EasingMode.cs \
$(srcdir)/Bling/EasedAnimation.cs \
$(srcdir)/Bling/QuinticEase.cs \
+ $(srcdir)/Widgets/BuilderWindow.cs \
$(srcdir)/Widgets/CheckPattern.cs \
$(srcdir)/Widgets/ComplexMenuItem.cs \
$(srcdir)/Widgets/CustomPrintWidget.cs \
diff --git a/src/Widgets/BuilderWindow.cs b/src/Widgets/BuilderWindow.cs
new file mode 100644
index 0000000..f746899
--- /dev/null
+++ b/src/Widgets/BuilderWindow.cs
@@ -0,0 +1,32 @@
+//
+// FSpot.Widgets.BuilderWindow.cs
+//
+// Author(s):
+// Stephane Delcroix <stephane delcroix org>
+//
+// Copyright (c)2009 Novell, Inc.
+//
+// This is free software. See COPYING fro details.
+//
+
+using System;
+using GtkBeans;
+
+namespace FSpot.Widgets
+{
+ public abstract class BuilderWindow : Gtk.Window
+ {
+ protected BuilderWindow (string resourceName, string widgetName) : this (null, resourceName, widgetName)
+ {
+ }
+
+ protected BuilderWindow (System.Reflection.Assembly assembly, string resourceName, string widgetName) : this (new Builder (assembly, resourceName, null), widgetName)
+ {
+ }
+
+ protected BuilderWindow (Builder builder, string widgetName) : base (builder.GetRawObject (widgetName))
+ {
+ builder.Autoconnect (this);
+ }
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]