1. 28 May, 2004 1 commit
    • Daniel Elstner's avatar
      Operate directly in filename encoding since all callers need to convert · 9fdeba17
      Daniel Elstner authored
      * src/stringutils.{cc,h} (expand_pathname): Operate directly in
      filename encoding since all callers need to convert one way or
      the other anyway.  Change type of parameter and return value to
      std::string accordingly.
      (shorten_pathname): ditto.
      
      * src/mainwindow.cc (MainWindow::MainWindow): Reverse order of
      the calls to filename_to_utf8_fallback() and shorten_pathname().
      (MainWindow::on_select_folder): ditto
      (MainWindow::on_find_files): ditto.
      
      * src/mainwindow.{cc,h} (MainWindow::set_title_filename): Change
      parameter type to std::string and call filename_to_utf8_fallback().
      Also remove the default argument from the declaration, and get rid
      of the logic that handles the empty string.
      (MainWindow::MainWindow): Call window_->set_title() directly in
      order to set the default title, instead of passing an empty string
      to set_title_filename().
      (MainWindow::on_filetree_switch_buffer): ditto.
      9fdeba17
  2. 27 May, 2004 1 commit
    • Daniel Elstner's avatar
      On failure, don't fall back to the locale encoding anymore but straight to · 5052d823
      Daniel Elstner authored
      * src/stringutils.cc (filename_to_utf8_fallback): On failure,
      don't fall back to the locale encoding anymore but straight to
      plain ASCII.  Thus from now on, this function will never throw
      for errors of type ConvertError::ILLEGAL_SEQUENCE.  Also cover
      the new G_FILENAME_ENCODING variable in the warning message.
      
      * src/filetree.cc (FileTree::find_files): Remove the explicit
      handling of Glib::ConvertError.
      5052d823
  3. 26 May, 2004 2 commits
  4. 25 May, 2004 5 commits
  5. 21 May, 2004 7 commits
    • Daniel Elstner's avatar
      :on_find_files): Minor coding style modifications. · e6320816
      Daniel Elstner authored
      * src/mainwindow.cc (MainWindow::on_find_files): Minor coding style
      modifications.
      e6320816
    • Daniel Elstner's avatar
      :on_select_folder): Simplify the code: with the new FileChooser we no · 25673c7e
      Daniel Elstner authored
      * src/mainwindow.cc (MainWindow::on_select_folder): Simplify the
      code: with the new FileChooser we no longer have to handle the case
      of selecting a file instead of a directory.
      25673c7e
    • Daniel Elstner's avatar
      New exception class. · 981ba25d
      Daniel Elstner authored
      * src/fileio.h (ErrorBinaryFile): New exception class.
      
      * src/fileio.cc (load_iochannel): Throw ErrorBinaryFile if the
      input stream contains '\0' bytes, rather than just returning a
      null pointer.
      (load_file): Throw ErrorBinaryFile if the file could not be
      loaded in either of the specified encodings.
      
      * src/filetree.cc (FileTree::load_file_with_fallback): Handle
      the ErrorBinaryFile exception.
      981ba25d
    • Daniel Elstner's avatar
      :replace_all_matches): Substitute Gtk::TreeIter with · 30dce6a1
      Daniel Elstner authored
      * src/filetree.cc (FileTree::replace_all_matches): Substitute
      Gtk::TreeIter with Gtk::TreeModel::iterator for consistency.
      30dce6a1
    • Daniel Elstner's avatar
      [ Fix accidental ChangeLog omission ] · 5782d835
      Daniel Elstner authored
      * src/filetree.cc: Replace a couple of explicit TreePath(iter)
      conversions by simple assignments.
      (FileTree::replace_all_matches): Make sure path_match_first_
      points to the first file that still has matches after a replace
      operation was interrupted.
      (FileTree::replace_matches_at_iter): Remove the assertion that
      FileBuffer::get_match_count() must return 0 after returning from
      FileBuffer::replace_all_matches(), because the operation might
      have been interrupted.
      5782d835
    • Daniel Elstner's avatar
      :do_undo): Don't create a temporary copy of the pulse slot since · a4757740
      Daniel Elstner authored
      * src/undostack.cc (UndoStack::do_undo): Don't create a temporary
      copy of the pulse slot since libsigc++2 allows calling const slots.
      a4757740
    • Daniel Elstner's avatar
      :replace_all_matches): Make sure path_match_first_ points to the first · f16081e8
      Daniel Elstner authored
      * src/filetree.cc (FileTree::replace_all_matches): Make sure
      path_match_first_ points to the first file that still has matches
      after a replace operation was interrupted.
      f16081e8
  6. 20 May, 2004 3 commits
  7. 19 May, 2004 4 commits
    • Daniel Elstner's avatar
      Remove. The Debian package of regexxer is not the only one out there, and · 0dc10866
      Daniel Elstner authored
      * ui/aboutdialog.glade (label_debian_*): Remove.  The Debian
      package of regexxer is not the only one out there, and I cannot
      list all of them in the about dialog.  Sorry Ross :/
      (label_translator_{what,who}): Give credit to the translator(s)
      for the user's locale as listed in the translation of the string
      "translator-credits".
      (label_url): Get rid of the custom SelectableLabel widget class.
      The only feature provided by the custom widget was tab-navigation
      to labels -- I figured one can simply use C-Tab to do just that.
      (label_author_who): ditto
      (label_translator_who): ditto.
      
      * src/aboutdialog.cc (SelectableLabel): Remove custom widget.
      (AboutDialog::create): Acommodate to glade file modifications.
      0dc10866
    • Daniel Elstner's avatar
      No need to explicitely specify $(top_srcdir)/ in the directory name · 903a2bee
      Daniel Elstner authored
      * Makefile.am (ACLOCAL_AMFLAGS): No need to explicitely specify
      $(top_srcdir)/ in the directory name because the aclocal rule
      changes to that directory anyway.  This also avoids confusing
      recent releases of gettextize.
      903a2bee
    • Daniel Elstner's avatar
      AC_SUBST() this variable with '$(top_srcdir)/po/LINGUAS' for utmost · d78dd953
      Daniel Elstner authored
      * configure.ac (CONFIG_STATUS_DEPENDENCIES): AC_SUBST() this
      variable with '$(top_srcdir)/po/LINGUAS' for utmost perfection ;-)
      d78dd953
    • Daniel Elstner's avatar
      Make glade-2 replace its old-style magic "class names" with proper · adcc91c8
      Daniel Elstner authored
      * ui/mainwindow.glade (toolbar): Make glade-2 replace its old-style
      magic "class names" with proper GtkToolItem and derivated elements.
      Note that you'll need to apply the patch for #142761 in order to
      make changing the toolbar style at runtime work.
      (combo_pattern): Replace deprecated GtkCombo with GtkComboBoxEntry.
      
      * src/controller.cc (ControlItem::add_widgets): Allow for both
      Gtk::ToolButton and Gtk::Button widgets, and detect at runtime
      which type to use.
      
      * src/mainwindow.cc (MainWindow::load_xml): Due to #142755, we
      currently have to use get_child() on combo_pattern to gain access
      to the entry widget.  Also, a hack was necessary to attach the
      tooltip to the entry without instantiating another Gtk::Tooltips
      object.
      
      * src/mainwindow.h: Remove a couple of unused forward declarations.
      adcc91c8
  8. 18 May, 2004 5 commits
    • Daniel Elstner's avatar
      :on_response): Invoke Gtk::Widget::activate() instead of directly calling · a63a14af
      Daniel Elstner authored
      * src/prefdialog.cc (PrefDialog::on_response): Invoke
      Gtk::Widget::activate() instead of directly calling the handler
      on_entry_fallback_activate().  Dunno why I didn't see this before.
      a63a14af
    • Daniel Elstner's avatar
      Return -1 rather than 0 on failure. · 5673b906
      Daniel Elstner authored
      * src/prefdialog.cc (get_toolbar_style_index): Return -1 rather
      than 0 on failure.
      5673b906
    • Daniel Elstner's avatar
      Replace custom font selection button with the new GtkFontButton. · c1545074
      Daniel Elstner authored
      * ui/prefdialog.glade (button_textview_font): Replace custom font
      selection button with the new GtkFontButton.
      (button_match_color): Replace custom color selection button with
      the new GtkColorButton.
      (button_current_color): ditto.
      (combo_toolbar_style): Rename from option_toolbar_style.  Use the
      new GtkComboBox widget instead of GtkOptionMenu.
      
      * src/prefdialog.{cc,h} (FontSelectionButton): Remove.
      (ColorSelectionButton): Remove.
      (PrefDialog): Accomodate to changes in the glade file.
      (on_textview_font_set): Rename from on_textview_font_selected().
      (on_match_color_set): Rename from on_match_color_selected().
      (on_current_color_set): Rename from on_current_color_selected().
      c1545074
    • Daniel Elstner's avatar
      :load_xml): Make the folder button grab focus because otherwise the · bd36e3cb
      Daniel Elstner authored
      * src/mainwindow.cc (MainWindow::load_xml): Make the folder button
      grab focus because otherwise the Preferences tool button will be
      focused after startup.  I blame libglade -- its whole tool button
      handling seems to be somewhat shaky.
      bd36e3cb
    • Daniel Elstner's avatar
      Use `cat "$srcdir/po/LINGUAS"` to assign this variable, so that there is · 700c7f23
      Daniel Elstner authored
      * configure.ac (ALL_LINGUAS): Use `cat "$srcdir/po/LINGUAS"` to
      assign this variable, so that there is only one file to edit when
      adding a new language.
      700c7f23
  9. 17 May, 2004 12 commits
    • Duarte Loreto's avatar
      Added Portuguese (pt) to ALL_LINGUAS. · bafc6314
      Duarte Loreto authored
      2004-05-17  Duarte Loreto <happyguy_pt@hotmail.com>
      
      	* configure.ac: Added Portuguese (pt) to ALL_LINGUAS.
      bafc6314
    • Christian Rose's avatar
      Added "sv" to ALL_LINGUAS. Added an incomplete Swedish translation. Added · e0c128e9
      Christian Rose authored
      2004-05-17  Christian Rose  <menthos@menthos.com>
      
      	* configure.ac: Added "sv" to ALL_LINGUAS.
      	* po/sv.po: Added an incomplete Swedish translation.
      	* po/LINGUAS: Added "sv".
      	* po/Rules-quot, po/boldquot.sed, po/en@boldquot.header,
      	po/en@quot.header, po/insert-header.sin, po/quot.sed,
      	po/remove-potcdate.sin: Removed this cruft.
      	* po/.cvsignore: Added more appropriate contents.
      e0c128e9
    • Daniel Elstner's avatar
      Fix an older ChangeLog entry. · f29d2ac4
      Daniel Elstner authored
      f29d2ac4
    • Daniel Elstner's avatar
      Remove config.rpath because automake distributes this file automatically. · f8acb853
      Daniel Elstner authored
      * Makefile.am (dist_noinst_SCRIPTS): Remove config.rpath because
      automake distributes this file automatically.  List intltool-*.in
      files in the separate variable dist_intltool.
      (dist_noinst_DATA): List all *.m4 files in the separate variable
      dist_macros.  Move $(dist_intltool) from dist_noinst_SCRIPTS here
      because the .in files aren't scripts.
      f8acb853
    • Daniel Elstner's avatar
      Use _Name to make it translatable, and change the string to "regexxer · e5028e3b
      Daniel Elstner authored
      * regexxer.desktop (Name): Use _Name to make it translatable, and
      change the string to "regexxer Search Tool".  Idea from Dag Wieers.
      e5028e3b
    • Daniel Elstner's avatar
      Mark all const_cast<> work-arounds for the Gtk::TextIter API bug with // · 2c7cfd85
      Daniel Elstner authored
      * src/filebuffer.cc: Mark all const_cast<> work-arounds for the
      Gtk::TextIter API bug with // XXX comments.
      (FileBuffer::get_match_index): Get rid of libstdc++-v2 work-around.
      
      * src/filebuffer.h (FileBuffer): Get rid of the friend declarations
      that were added to work around a GCC 2.95 deficiency.
      * src/filetree.h (FileTree): ditto
      * src/mainwindow.h (MainWindow): ditto.
      2c7cfd85
    • Daniel Elstner's avatar
      Simplify. Since regexxer.schemas is now a generated file it is always · ee38f241
      Daniel Elstner authored
      * Makefile.am (install-schemas): Simplify.  Since regexxer.schemas
      is now a generated file it is always placed in the build directory.
      (uninstall-schemas): Likewise.  Also add $(schemas_DATA) to the
      prerequisites so that the rule will work with a clean tree.  Having
      make uninstall generate files is a little awkward, but I cannot see
      a way around that :/
      ee38f241
    • Daniel Elstner's avatar
      List build-time generated files $(desktop_DATA) and $(schemas_DATA). · 4506fc1d
      Daniel Elstner authored
      * Makefile.am (CLEANFILES): List build-time generated files
      $(desktop_DATA) and $(schemas_DATA).
      (DISTCLEANFILES): List configure-time generated files
      intltool-extract, intltool-merge and intltool-update.
      4506fc1d
    • Daniel Elstner's avatar
      Execute glib-gettextize and intltoolize. · 4be333e4
      Daniel Elstner authored
      * autogen.sh: Execute glib-gettextize and intltoolize.
      
      * configure.ac: Call AC_PROG_INTLTOOL().  Assign ALL_LINGUAS and
      GETTEXT_PACKAGE, and do an AC_SUBST() of the latter.
      (AM_GNU_GETTEXT): Use AM_GLIB_GNU_GETTEXT() instead.
      
      * Makefile.am (dist_desktop_DATA): Remove the dist_ prefix,
      introduce desktop_in_files, and add the @INTLTOOL_DESKTOP_RULE@
      substitution in order to make regexxer intltool-aware.
      (dist_schema_DATA): Likewise for the GConf schemas file.
      (dist_noinst_SCRIPTS): Add intltool-extract.in, intltool-merge.in
      and intltool-update.in.
      
      * regexxer.desktop: Rename to regexxer.desktop.in, use _Comment
      instead of Comment, and remove the manually inserted de and dk
      translations.
      
      * regexxer.schemas: Rename to regexxer.schemas.in.
      4be333e4
    • Daniel Elstner's avatar
      Use libstdc++-v3 method std::string::compare() instead of memcmp() for · b696e895
      Daniel Elstner authored
      * src/filetreeprivate.cc (collatekey_sort_func): Use libstdc++-v3
      method std::string::compare() instead of memcmp() for sub-string
      comparison, since libsigc++2 depends on gcc >= 3 anyway.
      b696e895
    • Daniel Elstner's avatar
      :FileTree): Make the file column take up available space with · 2a537cbb
      Daniel Elstner authored
      * src/filetree.cc (FileTree::FileTree): Make the file column
      take up available space with set_expand(true).
      2a537cbb
    • Daniel Elstner's avatar
      Bump version to 0.8. (PKG_CHECK_MODULES): Require gconfmm-2.6 >= 2.6.1. · c43b74d7
      Daniel Elstner authored
      * configure.ac (AC_INIT): Bump version to 0.8.
      (PKG_CHECK_MODULES): Require gconfmm-2.6 >= 2.6.1.
      (REGEXXER_GCONFMM_VALUE_HACK): Remove.
      
      * src/miscutils.{cc,h}
      (check_for_broken_gconfmm_value_changed): Remove.
      (has_broken_gconfmm_value_changed): Remove.
      
      * src/main.cc (main): Remove call to gconfmm bug runtime test.
      
      * src/filebuffer.cc (on_config_value_changed): Remove hack.
      * src/filetree.cc (on_config_value_changed): ditto
      * src/mainwindow.cc (on_config_value_changed): ditto.
      * src/prefdialog.{cc,h} (on_config_value_changed_hack): Remove.
      c43b74d7