diff options
author | 2006-10-16 07:31:30 +0000 | |
---|---|---|
committer | 2006-10-16 07:31:30 +0000 | |
commit | 5fd8e5da4bbe1e7dcb983fae7de92832eb0bd14f (patch) | |
tree | 0194cc8ed863c88484dcbca4f409351ea3024bd4 /app-misc/tomboy/files | |
parent | Version bump. (diff) | |
download | gentoo-2-5fd8e5da4bbe1e7dcb983fae7de92832eb0bd14f.tar.gz gentoo-2-5fd8e5da4bbe1e7dcb983fae7de92832eb0bd14f.tar.bz2 gentoo-2-5fd8e5da4bbe1e7dcb983fae7de92832eb0bd14f.zip |
Porting some patches from ubuntu
(Portage version: 2.1.2_pre3-r1)
Diffstat (limited to 'app-misc/tomboy/files')
-rw-r--r-- | app-misc/tomboy/files/digest-tomboy-0.4.1-r1 | 3 | ||||
-rw-r--r-- | app-misc/tomboy/files/tomboy-0.4.1-init-some-stuff.patch | 62 | ||||
-rw-r--r-- | app-misc/tomboy/files/tomboy-0.4.1-verbs.patch | 33 |
3 files changed, 98 insertions, 0 deletions
diff --git a/app-misc/tomboy/files/digest-tomboy-0.4.1-r1 b/app-misc/tomboy/files/digest-tomboy-0.4.1-r1 new file mode 100644 index 000000000000..2a09b218b86e --- /dev/null +++ b/app-misc/tomboy/files/digest-tomboy-0.4.1-r1 @@ -0,0 +1,3 @@ +MD5 7e9ab15b8c799d265676173f8a8de7ce tomboy-0.4.1.tar.gz 937041 +RMD160 8837330b651ad1fee5952ef4b7c66072b661f417 tomboy-0.4.1.tar.gz 937041 +SHA256 a2d0690b8fe37c5e8179dabb70832fca07bc2b09c3013dbb252dc507e1c3d900 tomboy-0.4.1.tar.gz 937041 diff --git a/app-misc/tomboy/files/tomboy-0.4.1-init-some-stuff.patch b/app-misc/tomboy/files/tomboy-0.4.1-init-some-stuff.patch new file mode 100644 index 000000000000..17e8b7e16617 --- /dev/null +++ b/app-misc/tomboy/files/tomboy-0.4.1-init-some-stuff.patch @@ -0,0 +1,62 @@ +--- Tomboy/Tray.cs.orig 2006-10-03 14:58:21.000000000 -0500 ++++ Tomboy/Tray.cs 2006-10-03 15:01:31.000000000 -0500 +@@ -50,8 +50,6 @@ + tips.Sink (); + + SetupDragAndDrop (); +- +- InitSomeStuff (); + } + + void ButtonPress (object sender, Gtk.ButtonPressEventArgs args) +@@ -398,49 +396,9 @@ + int icon_size = Math.Min (rect.Height, rect.Width); + if (icon_size_last != icon_size) { + icon_size_last = icon_size; +- image.Pixbuf = GuiUtils.GetIcon (GetIconName (), icon_size); +- } +- } +- +- void ReloadIcon () +- { +- icon_size_last = -1; +- QueueResize (); ++ image.Pixbuf = GuiUtils.GetIcon ("tomboy", icon_size); + } +- +- // NOTHING TO SEE HERE +- void InitSomeStuff () +- { +- manager.NoteDeleted += OnNoteDeletedUpdateIcon; +- manager.NoteAdded += OnNoteAddedUpdateIcon; +- manager.NoteRenamed += OnNoteRenamedUpdateIcon; +- } +- +- void OnNoteDeletedUpdateIcon (object sender, Note changed) +- { +- if (changed.Title == "Tintin") +- ReloadIcon (); +- } +- +- void OnNoteAddedUpdateIcon (object sender, Note changed) +- { +- if (changed.Title == "Tintin") +- ReloadIcon (); +- } +- +- void OnNoteRenamedUpdateIcon (Note note, string old_title) +- { +- if (note.Title == "Tintin" || old_title == "Tintin") +- ReloadIcon (); +- } +- +- string GetIconName () +- { +- if (manager.Find ("Tintin") != null) +- return "tintin"; +- return "tomboy"; + } +- // GO ABOUT YOUR BUSINESS + } + + // diff --git a/app-misc/tomboy/files/tomboy-0.4.1-verbs.patch b/app-misc/tomboy/files/tomboy-0.4.1-verbs.patch new file mode 100644 index 000000000000..3fc5ec8d00db --- /dev/null +++ b/app-misc/tomboy/files/tomboy-0.4.1-verbs.patch @@ -0,0 +1,33 @@ +--- Tomboy/Applet.cs 2006-10-03 15:36:22.000000000 -0500 ++++ Tomboy/Applet.cs 2006-10-03 15:45:51.000000000 -0500 +@@ -17,7 +17,8 @@ + TomboyTray tray; + TomboyGConfXKeybinder keybinder; + +- BonoboUIVerb [] menu_verbs; ++ // Keep referenced so our callbacks don't get reaped ++ static BonoboUIVerb[] menu_verbs; + + public TomboyApplet (IntPtr raw) + : base (raw) +@@ -49,14 +50,13 @@ + ShowAll (); + + // Keep referenced so our callbacks don't get reaped. +- menu_verbs = new BonoboUIVerb [] { +- new BonoboUIVerb ( +- "Props", new ContextMenuItemCallback (ShowPreferencesVerb)), +- new BonoboUIVerb ( +- "Plugins", new ContextMenuItemCallback (ShowPluginsVerb)), +- new BonoboUIVerb ( +- "About", new ContextMenuItemCallback (ShowAboutVerb)) ++ if (menu_verbs == null) { ++ menu_verbs = new BonoboUIVerb[] { ++ new BonoboUIVerb("Props", ShowPreferencesVerb), ++ new BonoboUIVerb("Plugins", ShowPluginsVerb), ++ new BonoboUIVerb("About", ShowAboutVerb) + }; ++ } + + SetupMenuFromResource (null, "GNOME_TomboyApplet.xml", menu_verbs); + } |