~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/addins/MacPlatform/Dialogs/MacAlertDialogHandler.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2012-02-05 10:49:36 UTC
  • mto: (10.3.1)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20120205104936-4ujoylapu24cquuo
Tags: upstream-2.8.6.3+dfsg
ImportĀ upstreamĀ versionĀ 2.8.6.3+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
                                        if (button.IsStockButton)
87
87
                                                label = Gtk.Stock.Lookup (label).Label;
88
88
                                        label = label.Replace ("_", "");
89
 
                                        
 
89
 
90
90
                                        //this message seems to be a standard Mac message since alert handles it specially
91
91
                                        if (button == AlertButton.CloseWithoutSave)
92
92
                                                label = GettextCatalog.GetString ("Don't Save");
93
 
                                        
 
93
 
94
94
                                        alert.AddButton (label);
95
95
                                }
96
96
                                
123
123
                                        applyToAllCheck.Title = GettextCatalog.GetString ("Apply to all");
124
124
                                }
125
125
                                
 
126
                                // Hack up a slightly wider than normal alert dialog. I don't know how to do this in a nicer way
 
127
                                // as the min size constraints are apparently ignored.
 
128
                                var frame = ((NSPanel) alert.Window).Frame;
 
129
                                ((NSPanel) alert.Window).SetFrame (new RectangleF (frame.X, frame.Y, Math.Max (frame.Width, 600), frame.Height), true);
126
130
                                alert.Layout ();
127
131
                                
128
132
                                int result = alert.RunModal () - (int)NSAlertButtonReturn.First;