Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 66230 Details for
Bug 45095
F-Spot - Personal Photo Manager
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Second patch: f-spot-0.0.13-deletetags.patch
f-spot-0.0.13-deletetags.patch (text/plain), 2.89 KB, created by
pjv
on 2005-08-18 06:39:20 UTC
(
hide
)
Description:
Second patch: f-spot-0.0.13-deletetags.patch
Filename:
MIME Type:
Creator:
pjv
Created:
2005-08-18 06:39:20 UTC
Size:
2.89 KB
patch
obsolete
>diff -Naur f-spot-0.0.13.orig/src/MainWindow.cs f-spot-0.0.13.patch-171346/src/MainWindow.cs >--- f-spot-0.0.13.orig/src/MainWindow.cs 2005-08-08 21:42:21.000000000 +1000 >+++ f-spot-0.0.13.patch-171346/src/MainWindow.cs 2005-08-14 17:47:48.640791928 +1000 >@@ -1458,18 +1458,49 @@ > public void HandleDeleteSelectedTagCommand (object sender, EventArgs args) > { > Tag [] tags = this.tag_selection_widget.TagHighlight (); >- string header = Mono.Posix.Catalog.GetPluralString ("Delete the selected tag?", >- "Delete the {0} selected tags?", >- tags.Length); >- >- header = String.Format (header, tags.Length); >- string msg = Mono.Posix.Catalog.GetString("If you delete a tag, all associations with photos are lost."); >- string ok_caption = Mono.Posix.Catalog.GetPluralString ("_Delete tag", "_Delete tags", tags.Length); >- >- if (ResponseType.Ok == HigMessageDialog.RunHigConfirmation(main_window, DialogFlags.DestroyWithParent, MessageType.Warning, header, msg, ok_caption)) { >- db.Photos.Remove (tags); >- icon_view.QueueDraw (); >- } >+ bool okToDelete = true; >+ string ProblemCategoryName = ""; >+ >+ // Check if we are supposed to delete a Category with sub tags. If so, we can not. >+ foreach (Tag slaskTag in tags) { >+ if (slaskTag != null) { >+ if (slaskTag is Category) { >+ Category slaskCategory = (Category)slaskTag; >+ if (slaskCategory.Children.Length > 1) { >+ okToDelete = false; >+ ProblemCategoryName = slaskCategory.Name; >+ } >+// System.Console.WriteLine ("{0} --> {1}", slaskCategory.Name, okToDelete); >+ } >+ } >+ } // foreach >+ >+ if (okToDelete) { >+ >+ string header = Mono.Posix.Catalog.GetPluralString ("Delete the selected tag?", >+ "Delete the {0} selected tags?", >+ tags.Length); >+ >+ header = String.Format (header, tags.Length); >+ string msg = Mono.Posix.Catalog.GetString("If you delete a tag, all associations with photos are lost."); >+ string ok_caption = Mono.Posix.Catalog.GetPluralString ("_Delete tag", "_Delete tags", tags.Length); >+ >+ if (ResponseType.Ok == HigMessageDialog.RunHigConfirmation(main_window, DialogFlags.DestroyWithParent, MessageType.Warning, header, msg, ok_caption)) { >+ db.Photos.Remove (tags); >+ icon_view.QueueDraw (); >+ } >+ } else { // A Category is not empty. Can not delete it. >+ string msg = Mono.Posix.Catalog.GetString ("Category is not empty"); >+ string desc = String.Format (Mono.Posix.Catalog.GetString ("Can not delete categorys which has tags. Please delete tags under \"{0}\" first"), >+ ProblemCategoryName); >+ >+ HigMessageDialog md = new HigMessageDialog (main_window, DialogFlags.DestroyWithParent, >+ Gtk.MessageType.Error, ButtonsType.Ok, >+ msg, >+ desc); >+ md.Run (); >+ md.Destroy (); >+ } > } > > void HandleUpdateThumbnailCommand (object sende, EventArgs args)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 45095
:
52050
|
53303
|
54330
|
60220
|
66020
|
66050
|
66051
|
66076
|
66077
|
66090
|
66228
|
66229
| 66230 |
66375
|
67161
|
67168
|
69548
|
70163