From 136ac69a726edeef1e7a04a6e079765a1d93bb0f Mon Sep 17 00:00:00 2001 From: Thibault Meyer Date: Tue, 17 Mar 2020 14:56:21 +0100 Subject: [PATCH] Clean code Signed-off-by: Thibault Meyer --- README.md | 2 ++ src/gui/gui_settings_callback_btn_input_key.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3084382..4f2f53f 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ [![Latest release](https://img.shields.io/badge/latest_release-2.0-orange.svg)](https://github.com/thibaultmeyer/chip8-emulator/releases) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/thibaultmeyer/chip8-emulator/blob/master/LICENSE) +[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-white.svg)](https://snapcraft.io/chip8-emulator) + C / GTK3 emulator for the CHIP-8 virtual machine. ***** diff --git a/src/gui/gui_settings_callback_btn_input_key.c b/src/gui/gui_settings_callback_btn_input_key.c index 9aaea50..fce4d88 100644 --- a/src/gui/gui_settings_callback_btn_input_key.c +++ b/src/gui/gui_settings_callback_btn_input_key.c @@ -28,7 +28,6 @@ void gui_settings_callback_btn_input_key(GtkButton *button, s_gui_key_binding_co gtk_window_set_titlebar(GTK_WINDOW(window), header); gtk_window_set_resizable(GTK_WINDOW(window), FALSE); gtk_window_set_default_size(GTK_WINDOW(window), 385, 60); - gtk_widget_set_parent(window, gl_gui_components.gtk_window_setting); gtk_window_set_modal(GTK_WINDOW(window), TRUE); gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER_ON_PARENT); gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(gl_gui_components.gtk_window_setting));