~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/FeedbackDialog.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
                public FeedbackDialog (int x, int y): base (Gtk.WindowType.Toplevel)
48
48
                {
49
49
                        SetDefaultSize (350, 200);
50
 
                        Move (x - 350, y - 200);
 
50
                        if (x == -1 && y == -1) {
 
51
                                int ww, wh;
 
52
                                IdeApp.Workbench.RootWindow.GdkWindow.GetSize (out ww, out wh);
 
53
                                IdeApp.Workbench.RootWindow.GdkWindow.GetOrigin (out x, out y);
 
54
                                x = ww / 2 - 350 / 2;
 
55
                                y = wh / 2 - 200 / 2;
 
56
                                Move (x, y);
 
57
                        } else
 
58
                                Move (x - 350, y - 200);
 
59
 
51
60
                        mainFrame = new Gtk.Frame ();
52
61
                        
53
62
                        mainBox = new Gtk.VBox ();
77
86
                        // Body
78
87
                        
79
88
                        textEntry = new TextViewWithEmptyMessage ();
80
 
                        textEntry.EmptyMessage = GettextCatalog.GetString ("Tell us how we can make MonoDevelop better.");
 
89
                        textEntry.EmptyMessage = GettextCatalog.GetString (
 
90
                                "Tell us how we can make {0} better.",
 
91
                                BrandingService.SuiteName
 
92
                        );
81
93
                        textEntry.AcceptsTab = false;
82
94
                        textEntry.WrapMode = Gtk.WrapMode.Word;
83
95
                        textEntry.WidthRequest = 300;