[regexxer] Apply GNOME 3 toolbar style
- From: Fabien Parent <fparent src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [regexxer] Apply GNOME 3 toolbar style
- Date: Sun, 31 Jul 2011 19:24:29 +0000 (UTC)
commit 7c05050b4218378db7d4fbce9dad6adc044bbe78
Author: Fabien Parent <parent f gmail com>
Date: Sun Jul 31 21:23:04 2011 +0200
Apply GNOME 3 toolbar style
src/mainwindow.cc | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 0277761..e2ab60b 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -299,6 +299,13 @@ void MainWindow::initialize(const InitState& init)
if (init.feedback)
filetree_->signal_feedback.connect(&print_location);
+ Glib::RefPtr<Gtk::StyleContext> style_context =
+ toolbar_->get_style_context ();
+ if (style_context)
+ {
+ style_context->add_class (GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
+ }
+
// Strangely, folder_exists seems to be always true, probably because the
// file chooser works asynchronously but the GLib main loop isn't running
// yet. As a work-around, explicitely check whether the directory exists
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]