~ubuntu-branches/ubuntu/saucy/f-spot/saucy

« back to all changes in this revision

Viewing changes to src/Extensions/PopupCommands.cs

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane
  • Date: 2010-05-24 10:35:57 UTC
  • mfrom: (2.4.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20100524103557-1j0i8f66caybci2n
Tags: 0.7.0-1
* New upstream release 0.7.0
 + First release of the unstable 0.7 development series. Massive changes.
 + Reparenting and detaching support (Anton Keks) (Closes: #559745)
 + A new Mallard-based documentation (Harold Schreckengost)
 + No longer embeds flickrnet, uses distribution copy (Iain Lane)
 + Adoption of a large amount of Hyena functionality (Paul Lange, Peter
   Goetz)
 + No longer embeds gnome-keyring-sharp
 + Completely rewritten import, much faster and less memory hungry (Ruben
   Vermeersch) (Closes: #559080, #492658, #341790, #357811, #426017) (LP:
   #412091)
 + No longer use gphoto2-sharp, now uses gvfs which is less crash-pron
   (Ruben Vermeersch)
 + Fix Facebook support (Ruben Vermeersch)
 + Modernized unit tests
 + Revamped build (Mike Gemünde)
 + Much improved duplicate detection (much faster too) (Ruben Vermeersch)
 + Mouse selection in Iconview (Vincent Pomey)
 + Image panning support using middle mouse button (Wojciech Dzierżanowski)
 + Timeline slider now restricted to the size of the window (Iain Churcher)
 + Over 100 bugs closed (http://bit.ly/cyVjnD)
   - No more warnings about schema defaults (Closes: #584215) (LP: #586132)
* debian/control: Clean up build deps to match configure checks
* debian/rules: Don't run dh_makeshilbs as we don't ship any shared
  libraries. There are some private ones though, which get picked up and
  result in a useless postinst/postrm call to ldconfig. Thanks, lintian.
* debian/patches/debian_fix-distclean.patch,
  debian/patches/debian_fix_f-spot.exe.config.patch,
  debian/patches/debian_link-system-flickrnet.patch,
  debian/patches/debian_link-system-gnome-keyring.patch,
  debian/patches/debian_disable-unit-tests,
  debian/patches/git_transition_duration.patch,
  debian/patches/ubuntu_fix_folder_export_hang.patch:
  Clean up obsolete patches which are no longer necessary 
* debian/patches/*: Temporarily disable patches which originated from Ubuntu
  and no longer apply cleanly. We will get these back in a future upstream
  development release.
* debian/patches/*: Refresh to apply cleanly 
* debian/rules: Add new include dir to autoreconf call to pick up f-spot
  macros 

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
        {
19
19
                public void Run (object o, EventArgs e)
20
20
                {
21
 
                        MainWindow.Toplevel.HandleCopy (o, e);
 
21
                        App.Instance.Organizer.HandleCopy (o, e);
22
22
                }               
23
23
        }
24
24
 
26
26
        {
27
27
                public void Run (object o, EventArgs e)
28
28
                {
29
 
                        MainWindow.Toplevel.HandleRotate270Command (o, e);
 
29
                        App.Instance.Organizer.HandleRotate270Command (o, e);
30
30
                }
31
31
        }
32
32
 
34
34
        {
35
35
                public void Run (object o, EventArgs e)
36
36
                {
37
 
                        MainWindow.Toplevel.HandleRotate90Command (o, e);
 
37
                        App.Instance.Organizer.HandleRotate90Command (o, e);
38
38
                }
39
39
        }
40
40
 
42
42
        {
43
43
                public void Run (object o, EventArgs e)
44
44
                {
45
 
                        MainWindow.Toplevel.HandleRemoveCommand (o, e);
 
45
                        App.Instance.Organizer.HandleRemoveCommand (o, e);
46
46
                }
47
47
        }
48
48
 
50
50
        {
51
51
                public void Run (object o, EventArgs e)
52
52
                {
53
 
                        MainWindow.Toplevel.HandleDeleteCommand (o, e);
 
53
                        App.Instance.Organizer.HandleDeleteCommand (o, e);
54
54
                }
55
55
        }
56
56
 
60
60
 
61
61
                public Gtk.Menu GetMenu ()
62
62
                {
63
 
                        owm = new Widgets.OpenWithMenu (MainWindow.Toplevel.SelectedMimeTypes, "f-spot");
64
 
                        owm.ApplicationActivated += MainWindow.Toplevel.HandleOpenWith;
 
63
                        owm = new Widgets.OpenWithMenu (App.Instance.Organizer.SelectedMimeTypes, "f-spot");
 
64
                        owm.ApplicationActivated += App.Instance.Organizer.HandleOpenWith;
65
65
                        return (Gtk.Menu) owm;
66
66
                }
67
67
 
72
72
                }
73
73
        }
74
74
 
75
 
        public class AttachTag : IMenuGenerator
76
 
        {
77
 
                private TagMenu tag_menu;
78
 
 
79
 
                public Gtk.Menu GetMenu ()
80
 
                {
81
 
                        tag_menu = new TagMenu (null, MainWindow.Toplevel.Database.Tags);
82
 
                        tag_menu.NewTagHandler += delegate { MainWindow.Toplevel.HandleCreateTagAndAttach (this, null); };
83
 
                        tag_menu.TagSelected += MainWindow.Toplevel.HandleAttachTagMenuSelected;
84
 
                        return (Gtk.Menu) tag_menu;
85
 
                }
86
 
 
87
 
                public void OnActivated (object o, EventArgs e)
88
 
                {
89
 
                        if (tag_menu != null)
90
 
                                tag_menu.Populate ();
91
 
                }
92
 
        }
93
 
 
94
75
        public class RemoveTag : IMenuGenerator
95
76
        {
96
77
                public Gtk.Menu GetMenu ()
97
78
                {
98
79
                        PhotoTagMenu tag_menu = new PhotoTagMenu ();
99
 
                        tag_menu.TagSelected += MainWindow.Toplevel.HandleRemoveTagMenuSelected;
 
80
                        tag_menu.TagSelected += App.Instance.Organizer.HandleRemoveTagMenuSelected;
100
81
                        return (Gtk.Menu) tag_menu;
101
82
                }
102
83
 
103
84
                public void OnActivated (object o, EventArgs e)
104
85
                {
105
 
                        MainWindow.Toplevel.HandleTagMenuActivate (o, e);
 
86
                        App.Instance.Organizer.HandleTagMenuActivate (o, e);
106
87
                }
107
88
        }
108
89
 
110
91
        {
111
92
                public void Run (object o, EventArgs e)
112
93
                {
113
 
                        MainWindow.Toplevel.HandleRatingMenuSelected ((o as Widgets.Rating).Value);
 
94
                        App.Instance.Organizer.HandleRatingMenuSelected ((o as Widgets.Rating).Value);
114
95
                }
115
96
        }
116
97
}