1
--- Tomboy/Applet.cs.old 2006-09-18 12:36:40.745304750 +0200
2
+++ Tomboy/Applet.cs 2006-09-18 12:36:45.949630000 +0200
4
tray = new TomboyTray (manager);
5
keybinder = new TomboyGConfXKeybinder (manager, tray);
7
- Flags |= PanelAppletFlags.ExpandMinor;
16
- tray.SetSizeRequest ((int) size, (int) size);
17
+ tray.Image.Pixbuf = GuiUtils.GetIcon ("tomboy", (int)size);
21
--- Tomboy/Tray.cs.old 2006-09-18 12:36:31.648736250 +0200
22
+++ Tomboy/Tray.cs 2006-09-18 12:36:56.138266750 +0200
31
void ButtonPress (object sender, Gtk.ButtonPressEventArgs args)
33
insert_text.ToString ());
37
- protected override void OnSizeAllocated (Gdk.Rectangle rect)
39
- base.OnSizeAllocated (rect);
41
- int icon_size = Math.Min (rect.Height, rect.Width);
42
- if (icon_size_last != icon_size) {
43
- icon_size_last = icon_size;
44
- image.Pixbuf = GuiUtils.GetIcon (GetIconName (), icon_size);
50
- icon_size_last = -1;
54
- // NOTHING TO SEE HERE
55
- void InitSomeStuff ()
57
- manager.NoteDeleted += OnNoteDeletedUpdateIcon;
58
- manager.NoteAdded += OnNoteAddedUpdateIcon;
59
- manager.NoteRenamed += OnNoteRenamedUpdateIcon;
62
- void OnNoteDeletedUpdateIcon (object sender, Note changed)
64
- if (changed.Title == "Tintin")
68
- void OnNoteAddedUpdateIcon (object sender, Note changed)
70
- if (changed.Title == "Tintin")
74
- void OnNoteRenamedUpdateIcon (Note note, string old_title)
76
- if (note.Title == "Tintin" || old_title == "Tintin")
80
- string GetIconName ()
82
- if (manager.Find ("Tintin") != null)
86
- // GO ABOUT YOUR BUSINESS