~ubuntu-branches/ubuntu/jaunty/tomboy/jaunty

« back to all changes in this revision

Viewing changes to Tomboy/Notebooks/NotebookNoteAddin.cs

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2009-02-17 03:08:19 UTC
  • mfrom: (1.1.46 upstream)
  • Revision ID: james.westby@ubuntu.com-20090217030819-87k5mkna0w5tvvqf
Tags: 0.13.5-0ubuntu1
* New upstream release
  - Removed bundled Mono.Addins. Mono.Addins is
    now a hard dependency.
  - Update printing to use Gtk.Print (#512369, Benjamin Podszun)
    Still buggy.
  - Fix multi-page printing of exported note HTML (#548198)
  - Fix crash when clicking link and browser not set (#569639).
  - 64-bit Windows support (#558272, Jay R. Wren).
  - Search window position saved on Windows/Mac (#559663).
  - Fix lingering tray icon in Windows (#569709, Benjamin Podszun).
  - Fix bug with font settings (#559724, Benjamin Podszun).
  - Mac MonoDevelop solution now easier to build (Doug Johnston et al).
  - Other fixes: #562846 (James Westby) #570917, #570918.
  - Additional updates to note printing (#512369, #572024
    , Benjamin Podszun).
  - Windows installer now requires Novell's GTK# >= 2.12.8 (#569324).
  - Increase/Decrease Indent shortcuts now appear in menu
    (#570334, Benjamin Podszun).
  - No longer writes to disk every 40 seconds (#514434).
  - Fixes to note linking (#323845, Florian).
  - Add GConf preference for auto-accepting SSL Certs in 
    WebDAV sync (#531364).
  - After succcessfully configuring sync, offer to perform 
    first sync (#553079).
* debian/control:
  - Use libgconf2.24-cil and libgnome2.24-cil (LP: #314516)
  - Build-dep on libgnomepanel2.24-cil
  - Remove Build-dep on libgnomeprint and libgnomeprintui
  - Add Vcs headers
* .bzr-builddeb/default.conf: added
* debian/patches/02_configurable_compiler.patch:
  - Removed, merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
        public class NotebookNoteAddin : NoteAddin
9
9
        {
10
10
                ToolMenuButton toolButton;
11
 
                Gtk.ImageMenuItem menuItem;
12
11
                Gtk.Menu menu;
13
12
                static Gdk.Pixbuf notebookIcon;
14
13
                static Gdk.Pixbuf newNotebookIcon;
15
14
                
16
 
                static NotebookNoteAddin ()
17
 
                {
18
 
                        notebookIcon = GuiUtils.GetIcon ("notebook", 22);
19
 
                        newNotebookIcon = GuiUtils.GetIcon ("notebook-new", 16);
 
15
                static Gdk.Pixbuf NotebookIcon
 
16
                {
 
17
                        get {
 
18
                                if (notebookIcon == null)
 
19
                                        notebookIcon = GuiUtils.GetIcon ("notebook", 22);
 
20
                                return notebookIcon;
 
21
                        }
 
22
                }
 
23
 
 
24
                static Gdk.Pixbuf NewNotebookIcon
 
25
                {
 
26
                        get {
 
27
                                if (newNotebookIcon == null)
 
28
                                        newNotebookIcon = GuiUtils.GetIcon ("notebook-new", 16);
 
29
                                return newNotebookIcon;
 
30
                        }
20
31
                }
21
32
 
22
33
                public override void Initialize ()
23
34
                {
24
 
                        menu = new Gtk.Menu ();
25
 
                        menu.ShowAll ();
26
35
                }
27
36
 
28
37
                private void InitializeToolButton ()
29
38
                {
30
39
                        toolButton =
31
40
                                        new ToolMenuButton (Note.Window.Toolbar,
32
 
                                                                                new Gtk.Image (notebookIcon),
 
41
                                                                                new Gtk.Image (NotebookIcon),
33
42
                                                                                string.Empty, menu);
34
43
                        toolButton.Homogeneous = false;
35
44
                        Gtk.Tooltips toolbarTips = new Gtk.Tooltips ();
60
69
 
61
70
                public override void OnNoteOpened ()
62
71
                {
 
72
                        if (menu == null) {
 
73
                                menu = new Gtk.Menu ();
 
74
                                menu.ShowAll ();
 
75
                        }
 
76
                        
63
77
                        if (toolButton == null) {
64
78
                                InitializeToolButton ();
65
79
 
139
153
                        // Add the "New Notebook..."
140
154
                        Gtk.ImageMenuItem newNotebookMenuItem =
141
155
                                new Gtk.ImageMenuItem (Catalog.GetString ("_New notebook..."));
142
 
                        newNotebookMenuItem.Image = new Gtk.Image (newNotebookIcon);
 
156
                        newNotebookMenuItem.Image = new Gtk.Image (NewNotebookIcon);
143
157
                        newNotebookMenuItem.Activated += OnNewNotebookMenuItem;
144
158
                        newNotebookMenuItem.Show ();
145
159
                        menu.Append (newNotebookMenuItem);