Fixing the case for some menus
[quicknote] / src / libquicknote.py
index c07d852..dafd390 100644 (file)
@@ -8,8 +8,6 @@ This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License version 2 as
 published by the Free Software Foundation.
 
-@todo Add an edit menu with select all, cut, copy, and paste
-@todo Add undo directly into the UI
 @todo Add Note Export (txt File) and Export All (json dump?)
 @todo Save word wrap and zoom setting 
 """
@@ -120,11 +118,11 @@ class QuicknoteProgram(hildon.Program):
 
                categorymenu = gtk.Menu()
 
-               menu_items = gtk.MenuItem(_("delete"))
+               menu_items = gtk.MenuItem(_("Delete"))
                categorymenu.append(menu_items)
                menu_items.connect("activate", self._on_delete_category, None)
 
-               menu_items = gtk.MenuItem(_("move to category"))
+               menu_items = gtk.MenuItem(_("Move To Category"))
                categorymenu.append(menu_items)
                menu_items.connect("activate", self._on_move_category, None)
 
@@ -246,10 +244,10 @@ class QuicknoteProgram(hildon.Program):
 
        def _on_view_sql_history(self, widget = None, data = None, data2 = None):
                import libsqldialog
-               sqldiag = libsqldialog.sqlDialog(self._db)
+               sqldiag = libsqldialog.SqlDialog(self._db)
                res = sqldiag.run()
                sqldiag.hide()
-               if res == 444:
+               if res == sqldiag.EXPORT_RESPONSE:
                        logging.info("exporting sql")
 
                        dlg = hildon.FileChooserDialog(parent=self._window, action=gtk.FILE_CHOOSER_ACTION_SAVE)