5f3d138d1a
* Base Gtk# MD Addin * Fix tabs
23 lines
548 B
C#
23 lines
548 B
C#
using System;
|
|
using Gtk;
|
|
using UI = Gtk.Builder.ObjectAttribute;
|
|
|
|
namespace ${Namespace}
|
|
{
|
|
class ${EscapedIdentifier} : Dialog
|
|
{
|
|
public MyDialog() : this(new Builder("${Namespace}.${EscapedIdentifier}.glade")) { }
|
|
|
|
private MyDialog(Builder builder) : base(builder.GetObject("${EscapedIdentifier}").Handle)
|
|
{
|
|
DefaultResponse = ResponseType.Cancel;
|
|
|
|
Response += OnResponse;
|
|
}
|
|
|
|
private void OnResponse(object o, ResponseArgs args)
|
|
{
|
|
Hide();
|
|
}
|
|
}
|
|
}
|