X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fwidget_filename.cpp;h=91538c0249dad017638c672e0cadce57a604038d;hb=756c0d29ac1742f231e6615f9a577e574e35a4af;hp=24743c5bd59ce4c76383c1f7e8efd1b2436b52d9;hpb=02252941b29de64037116f4d37991a38d9ff0d94;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/widget_filename.cpp b/synfig-studio/trunk/src/gtkmm/widget_filename.cpp index 24743c5..91538c0 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_filename.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_filename.cpp @@ -2,19 +2,21 @@ /*! \file widget_filename.cpp ** \brief Template File ** -** $Id: widget_filename.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $ +** $Id$ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2008 Chris Moore ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -33,6 +35,8 @@ #include "widget_filename.h" #include "app.h" +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -44,10 +48,6 @@ using namespace studio; /* === M A C R O S ========================================================= */ -#if ! defined(_) -#define _(x) (x) -#endif - /* === G L O B A L S ======================================================= */ /* === P R O C E D U R E S ================================================= */ @@ -81,7 +81,7 @@ Widget_Filename::set_has_frame(bool x) void -Widget_Filename::set_value(const string &data) +Widget_Filename::set_value(const std::string &data) { entry_filename->set_text(data); } @@ -111,6 +111,6 @@ Widget_Filename::on_button_choose_pressed() string filename=entry_filename->get_text(); if(filename.empty()) filename="."; - if(App::dialog_open_file(_("Choose File"),filename)) + if(App::dialog_open_file(_("Choose File"), filename, MISC_DIR_PREFERENCE)) entry_filename->set_text(filename); }