[longomatch] Add decorations for the calendar dialog and center in mouse clicks



commit c2bf4e4c5474a1e5cff65ffc21894016d29b35a2
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Feb 16 13:58:46 2015 +0100

    Add decorations for the calendar dialog and center in mouse clicks

 LongoMatch.GUI/Gui/Dialog/CalendarDialog.cs        |    2 +-
 .../LongoMatch.Gui.Dialog.CalendarDialog.cs        |    3 ++-
 LongoMatch.GUI/gtk-gui/gui.stetic                  |    3 ++-
 3 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/CalendarDialog.cs b/LongoMatch.GUI/Gui/Dialog/CalendarDialog.cs
index 929f4b7..7f7c72e 100644
--- a/LongoMatch.GUI/Gui/Dialog/CalendarDialog.cs
+++ b/LongoMatch.GUI/Gui/Dialog/CalendarDialog.cs
@@ -31,7 +31,7 @@ namespace LongoMatch.Gui.Dialog
                        this.Build();
                        SkipPagerHint = true;
                        SkipTaskbarHint = true;
-                       Decorated = false;
+                       //Decorated = false;
                        Modal = true;
                        calendar1.Date = date;
                }
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.CalendarDialog.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.CalendarDialog.cs
index 657db54..5ae251a 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.CalendarDialog.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.CalendarDialog.cs
@@ -14,7 +14,8 @@ namespace LongoMatch.Gui.Dialog
                        this.Name = "LongoMatch.Gui.Dialog.CalendarDialog";
                        this.Title = global::Mono.Unix.Catalog.GetString ("Calendar");
                        this.Icon = global::Stetic.IconLoader.LoadIcon (this, "longomatch", 
global::Gtk.IconSize.Menu);
-                       this.WindowPosition = ((global::Gtk.WindowPosition)(4));
+                       this.TypeHint = ((global::Gdk.WindowTypeHint)(1));
+                       this.WindowPosition = ((global::Gtk.WindowPosition)(2));
                        this.Gravity = ((global::Gdk.Gravity)(5));
                        this.SkipPagerHint = true;
                        this.SkipTaskbarHint = true;
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index 3995903..ddfbaf5 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -3028,7 +3028,8 @@ You can download it using this direct link:</property>
     <property name="MemberName" />
     <property name="Title" translatable="yes">Calendar</property>
     <property name="Icon">stock:longomatch Menu</property>
-    <property name="WindowPosition">CenterOnParent</property>
+    <property name="TypeHint">Dialog</property>
+    <property name="WindowPosition">Mouse</property>
     <property name="Gravity">Center</property>
     <property name="SkipPagerHint">True</property>
     <property name="SkipTaskbarHint">True</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]