~iwarford/do-plugins/trunk

« back to all changes in this revision

Viewing changes to GoogleSearch/src/ImFeelingLuckyAction.cs

  • Committer: Ian Warford
  • Date: 2009-01-06 04:27:49 UTC
  • Revision ID: iwarford@motoko-20090106042749-ekc7izgog092y9ur
Moved Gtk.Application.Invoke () calls to a seperate method, added name in credits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
                        IEnumerable<GoogleSearchResult> results = googleSearch.Search ();
91
91
                        
92
92
                        if (!results.Any ()) {
93
 
                                Gtk.Application.Invoke ((o, e) => Services.Notifications.Notify (Name, "No Results Found"));
 
93
                                GoogleSearch.InvokeNotify (Name, Catalog.GetString("No Results Found") );
94
94
                        } else {
95
95
                                Services.Environment.OpenUrl ( results.First ().url );
96
96
                        }