summaryrefslogtreecommitdiff
path: root/glib/glibmm/miscutils.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in miscutils.Krzesimir Nowak2012-04-171-2/+2
| | | | | * glib/glibmm/miscutils.cc: Return early from get_system_data_dirs() and get_system_config_dirs() when C function returns NULL.
* Extended build_filename() utility functionFabrício Godoy2011-02-211-1/+65
| | | | | Extended build_filename() to accept up to nine parameters. Added a new testcase in tests/glibmm_buildfilename.
* Added get_system_data_dirs() and get_system_config_dirs().Murray Cumming2010-10-211-0/+34
| | | | | | | | * glib/glibmm/miscutils.[h|cc]: Wrappping g_get_system_data_dirs() and g_get_system_config_dirs(), which were actually added in glib 2.6 but not noticed by us until now. Notice that these return std::vector<> instead of ArrayHandle, because we have decided to do that for new APIs.
* Wrap function g_listenv()Alex Vallée2010-04-211-0/+10
|
* Change license header to mention Lesser General Public License version 2.1Deng Xiyue2009-01-191-4/+4
| | | | | | | | | | 2009-01-20 Deng Xiyue <manphiz@gmail.com> * Change license header to mention Lesser General Public License version 2.1 instead of Library General Public License, to be consistent with COPYING. svn path=/trunk/; revision=779
* Added SignalTimeout::connect_seconds() as an equivalent forMurray Cumming2007-06-221-33/+24
| | | | | | | | | | | | | | | | | | | 2007-06-22 Murray Cumming <murrayc@murrayc.com> * glib/glibmm/main.cc: * glib/glibmm/main.h: Added SignalTimeout::connect_seconds() as an equivalent for g_timeout_add_seconds() and took the improved documentation from glib. * glib/glibmm/miscutils.cc: * glib/glibmm/miscutils.h: Added get_user_special_dir(), though we should maybe wrap the enum. Reimplemented many of the functions with the convert_return_gchar_ptr_to_stdstring() and convert_const_gchar_ptr_to_stdstring() functions to simplify them and make them handle NULLs properly. svn path=/trunk/; revision=420
* Clean up the code a bit. (get_application_name): Remove the code thatDaniel Elstner2007-01-201-110/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * glib/glibmm/miscutils.cc: Clean up the code a bit. (get_application_name): Remove the code that checked the string for valid UTF-8, and attempted conversion if not valid. I must have been on crack when I wrote this, as the combination of conditions that would cause the string to be invalid UTF-8 is quite unlikely. If this is a valid concern at all, it should be filed as a GLib bug and not worked around in glibmm. (build_filename(const std::string&, const std::string&)): Just call the plain g_build_filename() instead of building a temporary array and passing that via ArrayHandle to the build_filename() overload for containers. (build_path): Remove the already deactivated custom implementation from the time before g_build_pathv() was added to GLib. * glib/glibmm/object.{cc,h}: Improve/fix a couple of comments. (ConstructParams::ConstructParams): Add G_GNUC_NULL_TERMINATED function attribute to make the compiler complain if the variadic argument list is not terminated by a NULL pointer. * glib/glibmm/ustring.{cc,h} (utf8_find_last_of): Avoid applying bitwise logical operators directly to (possibly signed) operands of char type. In order to avoid relying on implementation-defined behavior, make sure that the operands are of unsigned integer type. (ustring::is_ascii): Likewise, (ustring_Iterator<T>::operator--): Likewise. (get_unichar_from_std_iterator): De-obfuscate this highly optimized piece of code, as the current stable release of GCC (4.1.2-pre on my system) generates better assembler output without the voodoo. svn path=/trunk/; revision=369
* rebuild docs when a .h files changes in glib/glibmmJonathon Jongsma2006-09-101-0/+15
| | | | | | | | | | 2006-09-05 Jonathon Jongsma <jonathon.jongsma@gmail.com> * docs/reference/Makefile.am: rebuild docs when a .h files changes in glib/glibmm * glib/glibmm/miscutils.cc: * glib/glibmm/miscutils.h: wrap g_get_user_data_dir(), g_get_user_config_dir(), and g_get_user_cache_dir()
* Stuff I forgot to commit.Murray Cumming2005-07-311-4/+9
|
* In get_home_dir, return an empty string when HOME is not defined (Win9x).Cedric Gustin2005-06-071-1/+2
| | | | | | | | | | 2005-06-07 Cedric Gustin <cedric.gustin@swing.be> * glib/glibmm/miscutils.cc: In get_home_dir, return an empty string when HOME is not defined (Win9x). Bug #306310 from Michael Hofmann. * glib/glibmm/miscutils.h: Updated docstring for the get_home_dir method.
* 2.5.3:Murray Cumming2005-01-091-0/+10
| | | | | | | | | 2005-01-09 Murray Cumming <murrayc@murrayc.com> * glib/glibmm/misc_utils.[h|cc]: Added setenv() and unsetenv(), wrapping new functions added in glib 2.4. * glib/src/convert.[hg|ccg]: Added filename_display_name() and filename_display_basename().
* Applied Daniels changes from gtkmm 2.2Murray Cumming2003-01-211-32/+49
|
* Initial revisionMurray Cumming2003-01-071-0/+216