commit 8cd4e0929430d239a4a9513ed86292a1bc147aa4
parent 62cb4ca3d339d595347f2f16ed83902769778eff
Author: Dan Callaghan <djc@djc.id.au>
Date: Thu, 25 Dec 2008 17:22:34 +1000
set window title to basename of photo (XXX should probably avoid gio dep just for this?)
Diffstat:
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/MainWindow.cpp b/MainWindow.cpp
@@ -1,11 +1,14 @@
+#include <giomm/file.h>
#include "MainWindow.h"
MainWindow::MainWindow(const std::string& path) :
model(MetadataTreeModel::create(path)) {
- set_title("XMPEdit");
- set_border_width(5);
+ {
+ Glib::RefPtr<Gio::File> file(Gio::File::create_for_path(path));
+ set_title(file->get_basename());
+ }
tree_view.set_model(model);
tree_view.append_column("Predicate", model->columns.pred_column);
diff --git a/Makefile b/Makefile
@@ -1,7 +1,7 @@
-CXXFLAGS = -O2 -g -Wall -fmessage-length=0 $(shell pkg-config gtkmm-2.4 --cflags) $(shell pkg-config exiv2 --cflags)
+CXXFLAGS = -O2 -g -Wall -fmessage-length=0 $(shell pkg-config giomm-2.4 --cflags) $(shell pkg-config gtkmm-2.4 --cflags) $(shell pkg-config exiv2 --cflags)
LDFLAGS = -Wl,-O1 -Wl,--as-needed
OBJS = xmpedit.o MainWindow.o MetadataTreeModel.o
-LIBS = $(shell pkg-config gtkmm-2.4 --libs) $(shell pkg-config exiv2 --libs)
+LIBS = $(shell pkg-config giomm-2.4 --libs) $(shell pkg-config gtkmm-2.4 --libs) $(shell pkg-config exiv2 --libs)
TARGET = xmpedit
$(TARGET): $(OBJS)