Changeset 77c6d4060a7fe5110fb8403cad51318820b25c9b
- Timestamp:
- 01/06/07 23:29:42 (6 years ago)
- Author:
- Philipp Kern <phil@…>
- Parents:
- bfb82f7a7bf6cc0079b05343b7d90cc306215a54
- Children:
- 20f1da0a3eee933248031f80b342c4b90fbce2b9
- git-committer:
- Philipp Kern <phil@0x539.de> / 2007-01-06T22:29:42Z+0000
- Message:
-
[project @ Use the file name of the file to open as document title]
Original author: Armin Burgmeier <armin@…>
Date: 2005-04-09 12:01:32+00:00
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rbfb82f7
|
r77c6d40
|
|
| 22 | 22 | #include <gtkmm/messagedialog.h> |
| 23 | 23 | #include <gtkmm/filechooserdialog.h> |
| | 24 | #include <gtkmm/stock.h> |
| 24 | 25 | #include <libobby/client_buffer.hpp> |
| 25 | 26 | #include <libobby/host_buffer.hpp> |
| … |
… |
|
| 273 | 274 | { |
| 274 | 275 | Gtk::FileChooserDialog dlg(*this, "Open new document"); |
| | 276 | dlg.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); |
| | 277 | dlg.add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK); |
| | 278 | |
| 275 | 279 | if(dlg.run() == Gtk::RESPONSE_OK) |
| 276 | 280 | { |
| 277 | | m_buffer->create_document(dlg.get_filename() ); |
| | 281 | m_buffer->create_document( |
| | 282 | Glib::path_get_basename(dlg.get_filename()) ); |
| 278 | 283 | } |
| 279 | 284 | } |