Changeset b599f99746558fdac9692feab4e0c140f9b9febd

Show
Ignore:
Timestamp:
05/18/08 22:38:45 (5 years ago)
Author:
Armin Burgmeier <armin@…>
Parents:
da28543bdf240dd0748b7d40e2f9768951e90431
Children:
91aa9b20f84f5db304446175b7e75cccb2f4bab7
git-committer:
Armin Burgmeier <armin@arbur.net> / 2008-05-18T22:38:45Z+0200
Message:

Added text plugin as a public global constant.

2008-05-18 Armin Burgmeier <armin@…>

  • inc/core/Makefile.am:
  • src/core/Makefile.am:
  • inc/core/noteplugin.hpp:
  • src/core/noteplugin.cpp: Added text plugin as a public global constant.
  • src/window.cpp: Adapt.
Files:
2 added
5 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rda28543 rb599f99  
     12008-05-18  Armin Burgmeier  <armin@0x539.de> 
     2 
     3        * inc/core/Makefile.am: 
     4        * src/core/Makefile.am: 
     5        * inc/core/noteplugin.hpp: 
     6        * src/core/noteplugin.cpp: Added text plugin as a public global 
     7        constant. 
     8 
     9        * src/window.cpp: Adapt. 
     10 
    1112008-05-18  Armin Burgmeier  <armin@0x539.de> 
    212 
  • inc/core/Makefile.am

    rdddf956 rb599f99  
    77        header.hpp \ 
    88        iconmanager.hpp \ 
     9        noteplugin.hpp \ 
    910        preferences.hpp \ 
    1011        statusbar.hpp \ 
  • src/commands/file-commands.cpp

    rda28543 rb599f99  
    6161                Glib::ustring str(m_location_dialog->get_document_name()); 
    6262                 
    63                 // TODO: Use TRUE here, but make sure browser-commands handles 
    64                 // the subscription correctly. 
     63                // TODO: Use FileOperations here 
    6564                InfcNodeRequest* request = infc_browser_add_note( 
    6665                        browser, &iter, str.c_str(), 
  • src/core/Makefile.am

    rdddf956 rb599f99  
    88        header.cpp \ 
    99        iconmanager.cpp \ 
    10         Makefile.am \ 
     10        noteplugin.cpp \ 
    1111        preferences.cpp \ 
    1212        statusbar.cpp \ 
  • src/window.cpp

    rdddf956 rb599f99  
    2121#include "core/docwindow.hpp" 
    2222#include "core/iconmanager.hpp" 
    23  
    24 #include <libinftextgtk/inf-text-gtk-buffer.h> 
    25 #include <libinftext/inf-text-session.h> 
    26 #include <libinftext/inf-text-buffer.h> 
    27  
    28 namespace 
    29 { 
    30         InfSession* 
    31         session_new(InfIo* io, InfConnectionManager* manager, 
    32                     InfConnectionManagerGroup* sync_group, 
    33                     InfXmlConnection* sync_connection) 
    34         { 
    35                 GtkSourceBuffer* textbuffer = gtk_source_buffer_new(NULL); 
    36                 InfUserTable* user_table = inf_user_table_new(); 
    37                 InfTextGtkBuffer* buffer = 
    38                         inf_text_gtk_buffer_new(GTK_TEXT_BUFFER(textbuffer), 
    39                                                 user_table); 
    40                 InfTextSession* session = 
    41                         inf_text_session_new_with_user_table( 
    42                                 manager, INF_TEXT_BUFFER(buffer), io, 
    43                                 user_table, sync_group, sync_connection); 
    44                 return INF_SESSION(session); 
    45         } 
    46  
    47         const InfcNotePlugin TEXT_PLUGIN = 
    48         { 
    49                 "InfText", 
    50                 session_new 
    51         }; 
    52 } 
     23#include "core/noteplugin.hpp" 
    5324 
    5425Gobby::Window::Window(const IconManager& icon_mgr, Config& config): 
     
    5930        m_folder(m_preferences, m_lang_manager), 
    6031        m_statusbar(m_folder), 
    61         m_browser(*this, &TEXT_PLUGIN, m_statusbar, m_preferences), 
     32        m_browser(*this, Plugins::TEXT, m_statusbar, m_preferences), 
    6233        m_commands_browser(m_browser, m_folder, m_statusbar, m_preferences), 
    6334        m_commands_file(*this, m_header, m_browser, m_folder, m_statusbar)