From c0054d0fe291f88ac75545ab014d0b062fa5c180 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Thu, 5 Jan 2017 15:04:23 -0600 Subject: Added --title argument to set window title --- src/window.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/window.rs') diff --git a/src/window.rs b/src/window.rs index edf1e7f1..b56b28a0 100644 --- a/src/window.rs +++ b/src/window.rs @@ -18,9 +18,6 @@ use std::ops::Deref; use gl; use glutin; -/// Default title for the window -const DEFAULT_TITLE: &'static str = "Alacritty"; - /// Resize handling for Mac and maybe other platforms /// /// This delegates to a statically referenced closure for convenience. The @@ -195,11 +192,13 @@ impl Window { /// Create a new window /// /// This creates a window and fully initializes a window. - pub fn new() -> Result { + pub fn new( + title: &str + ) -> Result { /// Create a glutin::Window let mut window = glutin::WindowBuilder::new() .with_vsync() - .with_title(DEFAULT_TITLE) + .with_title(title) .build()?; /// Set the glutin window resize callback for *this* window. The -- cgit v1.2.3-54-g00ecf