|
Revision 22, 0.5 kB
(checked in by sven, 4 years ago)
|
|
Great directory restructuring: The GtkPaperTape? files are now splitted
up in their own directory and all using shorter names and labels:
PaperTape::Color in favour of GtkPaperTapeColor?. Furthermore all files
are in revision progress, started a bit with zoom.h/zoom.cc and
greatly with file.h. Work still in progress -- this commit won't
compile at all!
Fixed a small bug in lochstreifen.c that caused crashing at repainting
because the callback function pointer was not initialized to NULL.
-- Sven @ workstation
|
| Line | |
|---|
| 1 | #include "gtkpapertape.h" |
|---|
| 2 | #include <gtkmm/main.h> |
|---|
| 3 | #include <gtkmm/window.h> |
|---|
| 4 | #include <iostream> |
|---|
| 5 | #include <cstdio> |
|---|
| 6 | using namespace Gtk; |
|---|
| 7 | |
|---|
| 8 | int main(int argc, char** argv) { |
|---|
| 9 | fprintf(stderr, "ABC\n"); |
|---|
| 10 | Main loop(argc, argv); |
|---|
| 11 | |
|---|
| 12 | Gtk::Window win; |
|---|
| 13 | win.set_title("Hello World"); |
|---|
| 14 | |
|---|
| 15 | PaperTape tape(win); |
|---|
| 16 | win.add(tape); |
|---|
| 17 | tape.show(); |
|---|
| 18 | |
|---|
| 19 | loop.run(win); |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | #include "gtkpapertape.h" |
|---|
| 24 | |
|---|
| 25 | int main(int argc, char** argv) { |
|---|
| 26 | Main loop(argc, argv); |
|---|
| 27 | |
|---|
| 28 | PaperTape::Chrome win; |
|---|
| 29 | win.set_app_name("Hello World Application"); |
|---|
| 30 | |
|---|
| 31 | win.show(); |
|---|
| 32 | loop.run(win); |
|---|
| 33 | } |
|---|