[tracker/tracker-0.12: 193/202] tracker-needle: Use "primary-toolbar" style on toolbar
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.12: 193/202] tracker-needle: Use "primary-toolbar" style on toolbar
- Date: Thu, 6 Oct 2011 18:04:40 +0000 (UTC)
commit bd9dda4c6b33c87ccc3d9e39a529a6068fc74b2b
Author: Carlos Garnacho <carlos lanedo com>
Date: Thu Oct 6 12:31:43 2011 +0200
tracker-needle: Use "primary-toolbar" style on toolbar
src/tracker-needle/tracker-needle.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-needle/tracker-needle.vala b/src/tracker-needle/tracker-needle.vala
index 1c8865b..9045b59 100644
--- a/src/tracker-needle/tracker-needle.vala
+++ b/src/tracker-needle/tracker-needle.vala
@@ -221,6 +221,7 @@ public class Tracker.Needle {
private void setup_ui () {
var builder = new Gtk.Builder ();
+ Toolbar toolbar;
try {
//try load from source tree first.
@@ -249,6 +250,9 @@ public class Tracker.Needle {
window.destroy.connect (Gtk.main_quit);
window.key_press_event.connect (window_key_press_event);
+ toolbar = builder.get_object ("toolbar_main") as Toolbar;
+ toolbar.get_style_context().add_class (STYLE_CLASS_PRIMARY_TOOLBAR);
+
view_filelist = builder.get_object ("toolbutton_view_filelist") as ToggleToolButton;
view_filelist.toggled.connect (view_toggled);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]