1. 11 Jan, 2007 6 commits
    • Daniel Elstner's avatar
      Define REGEXXER_LOCALEDIR to the "$(locale)" directory path. Remove define · dddf937a
      Daniel Elstner authored
      * Makefile.am (global_defs): Define REGEXXER_LOCALEDIR to the
      "$(locale)" directory path.  Remove define for REGEXXER_DATADIR
      since it was used only as part of the locale directory.
      * src/main.cc (main): Use REGEXXER_LOCALEDIR.
      (locale_directory): Remove string literal.
      
      svn path=/trunk/; revision=626
      dddf937a
    • Daniel Elstner's avatar
      "): Move accelerator from "g" to "T" in order to make it visible. ("Text · 059341ce
      Daniel Elstner authored
      * de.po ("C_urrent match color:"): Move accelerator from "g" to "T"
      in order to make it visible.
      ("Text view font"): Slightly reword translation.
      
      === Change I forgot to mention in previous commit: ===
      
      * *.po: Globally replace ASCII quotes (") and apostrophes (') with
      the typographically correct variants in Unicode.
      
      svn path=/trunk/; revision=625
      059341ce
    • Daniel Elstner's avatar
      Assign mnemonic widget combo_toolbar_style as GTK+ messes up the automatic · 36867be7
      Daniel Elstner authored
      * ui/prefdialog.glade (label_toolbar_style): Assign mnemonic widget
      combo_toolbar_style as GTK+ messes up the automatic assignment.
      
      svn path=/trunk/; revision=624
      36867be7
    • Daniel Elstner's avatar
      :create_with_error_message): Use UTF-8 encoded typographically correct · ab2411fc
      Daniel Elstner authored
      * src/filebuffer.cc (FileBuffer::create_with_error_message): Use
      UTF-8 encoded typographically correct apostrophe in the title
      string.
      * src/filetree.cc (FileTree::find_recursively): Replace call to
      Util::filename_to_utf8_fallback() by Glib::filename_display_name().
      (FileTree::find_fill_dirstack): Likewise.
      (FileTree::save_file_at_iter): Use UTF-8 encoded typographically
      correct quote characters in the error message string.
      (FileTree::load_file_with_fallback): Likewise.
      
      * src/pcreshell.cc (throw_regex_error): New function to throw a
      Pcre::Error exception with a properly formatted error message.
      (Pcre::Pattern::Pattern): Use throw_regex_error().
      
      * src/prefdialog.cc (PrefDialog::on_entry_fallback_activate):
      Use proper Unicode quotes in error message string.
      
      * src/mainwindow.cc (MainWindow::initialize): Run the search
      automatically only if also a filename pattern has been specified
      on the command line.
      (MainWindow::confirm_quit_request): Use proper Unicode apostrophe
      in the error message.
      (MainWindow::on_find_files): Likewise.  Also remove the code to
      format an error message for regex exceptions, as Pcre::Error now
      already carries a user-friendly message.
      (MainWindow::set_title_filename): Replace calls to
      Util::filename_to_utf8_fallback() by Glib::filename_display_name().
      
      * src/stringutils.{cc,h} (Util::shell_pattern_to_regex): Minor
      optimization twiddling.
      (Util::substitute_references): Likewise.
      (Util::filename_to_utf8_fallback): Remove function, as we can
      now simply use Glib::filename_display_name() instead.
      (Util::convert_to_ascii): Remove; no longer used anywhere.
      (Util::shorten_pathname): Use G_IS_DIR_SEPARATOR() instead of
      comparing against G_DIR_SEPARATOR directly.  Necessary because
      on win32 both '/' and '\' are accepted as directory separators.
      
      * ui/regexxer.schemas.in: Reformat and use proper Unicode quotes
      and apostrophes.
      * ui/prefdialog.glade: Likewise.  Also remove some property
      specifications which assigned default values anyway.
      * ui/mainwindow.glade: As above, strip pointless property settings.
      
      * en.po: Remove English "translation" as proper Unicode quotes and
      apostrophes are now used directly in the untranslated messages.
      * LINGUAS: Remove "en" from list.
      * POTFILES.in: Prepend [encoding: UTF-8] to list of files.
      
      svn path=/trunk/; revision=623
      ab2411fc
    • Daniel Elstner's avatar
      Add comment about assertions and reorganize the code a bit. · 502855e9
      Daniel Elstner authored
      * src/fileio.cc (save_iochannel): Add comment about assertions and
      reorganize the code a bit.
      (Regexxer::save_file): Elaborate on why IOChannel::close() is
      used explicitely.
      
      * src/filetreeprivate.cc (FileTreePrivate::collatekey_sort_func):
      Fix oversight:  Subtracting two unsigned values and converting the
      result to a signed type relies on implementation-defined behavior.
      Explicitely cast the operands to a signed type before substraction.
      
      * src/main.cc (main): Use g_get_prgname() instead of the string
      literal PACKAGE_TARNAME in the error message for Glib::OptionError
      exceptions.
      
      svn path=/trunk/; revision=622
      502855e9
    • Daniel Elstner's avatar
      Add comment about assertions and reorganize the code a bit. · c539cb97
      Daniel Elstner authored
      * src/fileio.cc (save_iochannel): Add comment about assertions and
      reorganize the code a bit.
      (Regexxer::save_file): Elaborate on why IOChannel::close() is
      used explicitely.
      
      * src/filetreeprivate.cc (FileTreePrivate::collatekey_sort_func):
      Fix oversight:  Subtracting two unsigned values and converting the
      result to a signed type relies on implementation-defined behavior.
      Explicitely cast the operands to a signed type before substraction.
      
      * src/main.cc (main): Use g_get_prgname() instead of the string
      literal PACKAGE_TARNAME in the error message for Glib::OptionError
      exceptions.
      
      svn path=/trunk/; revision=621
      c539cb97
  2. 10 Jan, 2007 2 commits
    • Daniel Elstner's avatar
      :create_with_error_message): Get rid of the inappropriate plea to · ec127ebc
      Daniel Elstner authored
      * src/filebuffer.cc (FileBuffer::create_with_error_message): Get
      rid of the inappropriate plea to translators to replace space with
      no-break space in the message title.  Apart from the fact that it
      was a bad idea in the first place to make translators put up with
      this internal issue, the no-break spaces have no point being there
      at all.  A single untranslated no-break space between the error
      icon and the title text is all that is warranted.
      
      svn path=/trunk/; revision=619
      ec127ebc
    • Daniel Elstner's avatar
      Add --add-comments=TRANSLATORS in order to make xgettext only extract · ec1b224d
      Daniel Elstner authored
      * Makevars (XGETTEXT_OPTIONS): Add --add-comments=TRANSLATORS in
      order to make xgettext only extract explicitely tagged comments
      into PO files.  This gets rid of the comment spam due to intltool
      passing --add-comments by default without specifying any tag.
      
      svn path=/trunk/; revision=618
      ec1b224d
  3. 09 Jan, 2007 5 commits
  4. 08 Jan, 2007 4 commits
  5. 07 Jan, 2007 4 commits
    • Daniel Elstner's avatar
      Update translation. Ditto. · 9bdad3ad
      Daniel Elstner authored
      * en.po: Update translation.
      * de.po: Ditto.
      
      svn path=/trunk/; revision=608
      9bdad3ad
    • Daniel Elstner's avatar
      Again remove the tearoff menus and the menubar and toolbar handle boxes. · fcf2d49b
      Daniel Elstner authored
      * ui/mainwindow.glade: Again remove the tearoff menus and the
      menubar and toolbar handle boxes.  This was just superfluous UI
      clutter not actually used by anyone.
      (button_folder): Get rid of the custom button that used to fire
      up the file chooser dialog, plus the accompanying text entry for
      display and editing of the folder name.  Replace this old cruft
      with a fresh and crisp GtkFileChooserButton plus a label.  Yay!
      (combo_pattern_entry): Reactivate commented-out markup that sets
      a tooltip on the internal GtkEntry child of combo_pattern.  As
      this finally supported by libglade it is no longer necessary to
      hack around the limitation in code.
      
      * src/mainwindow.{cc,h} (MainWindow): Adapt the implementation
      to work with the changed UI layout.  Change the folder selection
      handling as necessary.
      (MainWindow::load_xml): Remove the tooltip hack for the pattern
      entry, since libglade now allows for this in the glade file.
      (MainWindow::get_folder_fullname): Remove now unused method.
      (MainWindow::on_select_folder): Likewise.
      
      svn path=/trunk/; revision=607
      fcf2d49b
    • Daniel Elstner's avatar
      #include <memory> for std::auto_ptr<> rather than relying on indirect · 16898c1c
      Daniel Elstner authored
      * src/main.cc: #include <memory> for std::auto_ptr<> rather than
      relying on indirect inclusion by some other header file.
      
      svn path=/trunk/; revision=606
      16898c1c
    • Daniel Elstner's avatar
      Remove <cstdlib> and <cstdio> includes left over from the old libpopt · 03f81039
      Daniel Elstner authored
      * src/main.cc: Remove <cstdlib> and <cstdio> includes left over
      from the old libpopt code.
      
      svn path=/trunk/; revision=605
      03f81039
  6. 06 Jan, 2007 19 commits
    • Daniel Elstner's avatar
      Eeek, as it turns out the flag ANCHORED (and probably others too) are · d5792660
      Daniel Elstner authored
      * src/pcreshell.h ({Compile,Match}Options): Eeek, as it turns out
      the flag ANCHORED (and probably others too) are valid flags at both
      compile time and match time.  Move ANCHORED from CompileOptions to
      MatchOptions as I need it there for the following /g matching fix.
      These enumerations should of course be properly namespaced instead;
      this is just a quick hack for now.
      * src/pcreshell.cc: Rename a couple of variables to improve code
      clarity.
      
      * src/filebuffer.cc (FileBuffer::find_matches): Set the ANCHORED
      flag in addition to the NOT_EMPTY flag if the previous match was
      empty in /g mode.  This matches the algorithm outlined in recent
      versions of the PCRE documentation to mimic the behavior of Perl.
      
      svn path=/trunk/; revision=604
      d5792660
    • Daniel Elstner's avatar
      New class that implements the command-line option interface using the · 9c55cd60
      Daniel Elstner authored
      * src/main.cc (RegexxerOptions): New class that implements the
      command-line option interface using the option parsing facilities
      of glibmm instead of libpopt.
      (parse_command_line): Remove old function that used libpopt to
      parse command line options.
      (main): Use the new option parsing code.  Also, merge the gettext
      initialization into a single call again.  The special trickery that
      used to bind the codeset separately after option processing is no
      longer necessary with the new parser.
      
      * src/mainwindow.{cc,h} (Regexxer::InitState): Reorganize the data
      structure so that default-constructed objects equal the default
      values of the command-line options.  This is a work-around for
      glibmm bug #393571.
      (MainWindow::initialize): Adapt to Regexxer::InitState changes.
      
      * src/translation.{cc,h} (Util::enable_utf8_gettext): Merge back
      into Util::initialize_gettext(), as the separation is no longer
      necessary.
      (compose_impl): Optimize a bit by reserving the memory for the
      result string in advance.  Also, replace a couple of `...' quotes
      with "..." in a warning message.
      
      * Makefile.am (src_regexxer_LDADD): Remove $(POPTLIBS).
      * configure.ac (DK_LIB_POPT): Remove check for libpopt.
      * m4/dk-popt.m4: Remove now obsolete file.
      
      svn path=/trunk/; revision=603
      9c55cd60
    • Daniel Elstner's avatar
      Name a file that will be truly unique to regexxer. · 003f8dfe
      Daniel Elstner authored
      * configure.ac (AC_CONFIG_SRCDIR): Name a file that will be
      truly unique to regexxer.
      
      svn path=/trunk/; revision=602
      003f8dfe
    • Daniel Elstner's avatar
      Prefix M4 macro filenames with "dk-", to avoid clashes with other · a52e4353
      Daniel Elstner authored
      * m4/dk-{export,feature,pkgprog,popt,warn}.m4: Prefix M4 macro
      filenames with "dk-", to avoid clashes with other applications
      installing their M4 files here.
      
      svn path=/trunk/; revision=601
      a52e4353
    • Daniel Elstner's avatar
      Update. · 8f16ef3b
      Daniel Elstner authored
      * NEWS: Update.
      
      svn path=/trunk/; revision=599
      8f16ef3b
    • Daniel Elstner's avatar
      Add comment about the purpose of this file. · 83c06555
      Daniel Elstner authored
      * src/exported-symbols: Add comment about the purpose of this file.
      
      svn path=/trunk/; revision=598
      83c06555
    • Daniel Elstner's avatar
      :on_erase): Copy tagtable->match into a local variable and use it. This · 7e358994
      Daniel Elstner authored
      * src/filebuffer.cc (FileBuffer::on_erase): Copy tagtable->match
      into a local variable and use it.  This fixes a compilation error
      with the Intel C++ compiler caused by the creation of a temporary
      inside the statement expression of g_return_if_fail().
      
      svn path=/trunk/; revision=597
      7e358994
    • Daniel Elstner's avatar
      Remove leftover string constant. · 466b50df
      Daniel Elstner authored
      * src/globalstrings.h (glade_aboutdialog_filename): Remove
      leftover string constant.
      
      svn path=/trunk/; revision=596
      466b50df
    • Daniel Elstner's avatar
      Update to latest version shipped with Automake. Likewise. · 2f088611
      Daniel Elstner authored
      * COPYING: Update to latest version shipped with Automake.
      * INSTALL: Likewise.
      
      svn path=/trunk/; revision=595
      2f088611
    • Daniel Elstner's avatar
      :on_about): Replace custom about dialog with stock GTK+ one. · 0ec5e36d
      Daniel Elstner authored
      * src/mainwindow.{cc,h} (MainWindow::on_about): Replace custom
      about dialog with stock GTK+ one.
      (on_about_dialog_response): Rename from on_about_dialog_hide().
      Add unused function parameter for the response ID.
      * src/aboutdialog.{cc,h}: Remove now superfluous files.
      * ui/aboutdialog.glade: Likewise.
      
      * Makefile.am (src_regexxer_SOURCES): Remove src/aboutdialog.{cc,h}
      from the list of source files.
      (dist_pkgdata_DATA): Remove ui/aboutdialog.glade from list.
      * configure.ac (REGEXXER_MODULES): Require gtkmm 2.6, in which the
      stock about dialog first appeared.
      
      * POTFILES.in: Remove ui/aboutdialog.glade.
      
      svn path=/trunk/; revision=594
      0ec5e36d
    • Daniel Elstner's avatar
      Update. Minor reformatting. · 84648b52
      Daniel Elstner authored
      * NEWS: Update.
      * README: Minor reformatting.
      
      svn path=/trunk/; revision=593
      84648b52
    • Daniel Elstner's avatar
      Replace my old email address with the one of the original contributor of · 4f6b9176
      Daniel Elstner authored
      * it.po: Replace my old email address with the one of the
      original contributor of this translation.
      
      svn path=/trunk/; revision=592
      4f6b9176
    • Daniel Elstner's avatar
      Remove bogus svn:executable property. · 338f0370
      Daniel Elstner authored
      svn path=/trunk/; revision=591
      338f0370
    • Daniel Elstner's avatar
      Remove file, as it was essentially empty except for including miscutils.h. · 6660a8c8
      Daniel Elstner authored
      * src/miscutils.cc: Remove file, as it was essentially empty
      except for including miscutils.h.
      * Makefile.am (src_regexxer_SOURCES): Remove src/miscutils.cc.
      
      svn path=/trunk/; revision=590
      6660a8c8
    • Daniel Elstner's avatar
      Update copyright notice: The postal address of the Free Software · 7335f7fb
      Daniel Elstner authored
      * src/*.{cc,h}: Update copyright notice:  The postal address of
      the Free Software Foundation changed, and my email address too.
      Also, remove the statement I had inserted which explicitely
      disallowed using a later version of the license.  I think I do
      not have to ask for permission from contributors, since the
      copyright notice only mentions me as the copyright holder, so
      technically everyone automatically transferred her copyright
      to me.  Anyway, the change is utterly minor and the notice now
      matches what everyone else is using.
      Also use the opportunity to get rid of the version control
      substitutions and the trailing empty line in every file.
      * ui/aboutdialog.glade: Update my email address.
      
      svn path=/trunk/; revision=589
      7335f7fb
    • Daniel Elstner's avatar
      Replace $(LIBINTL) substitution with $(INTLLIBS). Apparently · 6db1f204
      Daniel Elstner authored
      * Makefile.am (src_regexxer_LDADD): Replace $(LIBINTL) substitution
      with $(INTLLIBS).  Apparently AM_GLIB_GNU_GETTEXT(), unlike plain
      AM_GNU_GETTEXT(), assigns INTLLIBS instead of LIBINTL for whatever
      reason.  This difference is nowhere documented.  Funny noone has
      noticed this yet, since as far as I can tell it is empty only with
      GNU libc.
      
      svn path=/trunk/; revision=588
      6db1f204
    • Daniel Elstner's avatar
      Reduce the list of cruft to delete; it was a bit over the top and too long · fd668075
      Daniel Elstner authored
      * autogen.sh: Reduce the list of cruft to delete; it was a bit over
      the top and too long to maintain anyway.  Also, remove colons from
      substitutions again, as the script no longer assigns the empty
      string anywhere to the variables in question.
      
      svn path=/trunk/; revision=587
      fd668075
    • Daniel Elstner's avatar
      Comment "set -ex" and remove pointless ":;". · 55da9ba2
      Daniel Elstner authored
      * autogen.sh: Comment "set -ex" and remove pointless ":;".
      
      svn path=/trunk/; revision=586
      55da9ba2
    • Daniel Elstner's avatar
      Further simplify the script by making use of set -e and colons in · e02087ef
      Daniel Elstner authored
      * autogen.sh: Further simplify the script by making use of set -e
      and colons in substitutions, like ${foo:-bar}.  Although some truly
      ancient shells do not provide these features, this does not matter
      much for scripts intended for maintainer use.
      
      svn path=/trunk/; revision=585
      e02087ef