~ubuntu-branches/ubuntu/maverick/notecase/maverick

« back to all changes in this revision

Viewing changes to src/mru.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mitsuya Shibata
  • Date: 2008-02-10 09:56:36 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080210095636-n7dpodksxxxjrrar
Tags: 1.7.9-0ubuntu1
* New Upstream Release (LP: #190582)
* Keboard shortcuts already work in previous version (LP: #137466)
* Node Title Bar function  already work too (LP: #185985)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
#ifdef _WIN32
17
17
 #ifndef __MINGW32__
18
 
  #define snprintf _snprintf
 
18
   #ifndef snprintf
 
19
    #define snprintf _snprintf
 
20
   #endif
19
21
 #endif
20
22
#endif
21
23
 
122
124
        int nMax = m_lstFiles.size();
123
125
        for(i=0; i<nMax; i++)
124
126
        {
125
 
                //make sure to convert path to UTF8
126
 
                std::string strFileUtf8;
127
 
                LocaleToUtf8(m_lstFiles[i].c_str(), strFileUtf8);
128
 
 
129
127
                //append an item
130
 
                menuitem5 = gtk_menu_item_new_with_label (strFileUtf8.c_str());
 
128
                menuitem5 = gtk_menu_item_new_with_label (m_lstFiles[i].c_str());
131
129
                gtk_widget_show (menuitem5);
132
130
                gtk_container_add (GTK_CONTAINER (menu5), menuitem5);
133
131
                g_signal_connect (GTK_OBJECT (menuitem5),  "activate", G_CALLBACK (on_MRU_activate), (void *)i);