Commit 51ca1ba1 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Set the application_name correctly

  Fixes #11
parent a0b20bbc
Pipeline #133412 passed with stages
in 5 minutes and 56 seconds
......@@ -7,4 +7,5 @@ data/resources/ui/shortcuts.ui
data/resources/ui/window.ui.in
src/contrast_level.rs
src/contrast_preview.rs
src/main.rs
src/window.rs
......@@ -30,9 +30,6 @@ impl Application {
let receiver = RefCell::new(Some(r));
let window = Window::new(sender.clone());
glib::set_application_name(&format!("{}Contrast", config::NAME_PREFIX));
glib::set_prgname(Some("contrast"));
let builder = gtk::Builder::new_from_resource("/org/gnome/design/Contrast/shortcuts.ui");
let dialog: gtk::ShortcutsWindow = builder.get_object("shortcuts").unwrap();
window.widget.set_help_overlay(Some(&dialog));
......
......@@ -22,7 +22,7 @@ struct ChartBarWidget {
impl ChartBarWidget {
pub fn new(max_value: f64) -> Rc<RefCell<Self>> {
let widget = libhandy::Column::new();;
let widget = libhandy::Column::new();
let chart_bar = Rc::new(RefCell::new(ChartBarWidget {
widget,
max_value: max_value.log(10.0),
......
......@@ -29,6 +29,9 @@ fn main() {
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
textdomain(GETTEXT_PACKAGE);
glib::set_application_name(&gettext("Contrast"));
glib::set_prgname(Some("contrast"));
static_resources::init().expect("Failed to initialize the resource file.");
let app = Application::new();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment