mirror of https://github.com/pyrollo/vinace.git
Add window title
This commit is contained in:
parent
313df6a122
commit
5a99bf2397
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required( VERSION 2.8.12 )
|
||||
cmake_minimum_required( VERSION 3.10)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
project(vinace)
|
||||
project(vinace VERSION 0.1)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
|
||||
|
|
59
config.h.in
59
config.h.in
|
@ -1,59 +0,0 @@
|
|||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
#undef LT_OBJDIR
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
configure_file(config.h.in config.h)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/config.h)
|
||||
|
||||
link_directories(
|
||||
${GTKMM_LIBRARY_DIRS}
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
#define VINACE_VERSION_MAJOR @Tutorial_VERSION_MAJOR@
|
||||
#define VINACE_VERSION_MINOR @Tutorial_VERSION_MINOR@
|
||||
#define VINACE_VERSION_MAJOR @vinace_VERSION_MAJOR@
|
||||
#define VINACE_VERSION_MINOR @vinace_VERSION_MINOR@
|
||||
|
||||
#define VINACE_FULL_NAME "Vinace v@vinace_VERSION_MAJOR@.@vinace_VERSION_MINOR@"
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "c-pulse-audio-sound.hpp"
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include "config.h"
|
||||
|
||||
void load_rom(CRomMemory *rom, const char *filename, int offset) {
|
||||
std::ifstream file (filename, std::ios::in|std::ios::binary);
|
||||
|
@ -63,6 +64,8 @@ int main(int argc, char *argv[])
|
|||
// Build GUI
|
||||
Gtk::Main main(argc, argv);
|
||||
Gtk::Window window;
|
||||
window.set_title(VINACE_FULL_NAME);
|
||||
|
||||
Gtk::VBox box;
|
||||
window.add(box);
|
||||
|
||||
|
|
Loading…
Reference in New Issue