From abc12cd376a615af7182b81a435fa2ccb63e4e5d Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 23 Mar 2016 20:42:13 +0000 Subject: Rewrite Fl_Window::show(int argc, char **argv) under the driver model. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_arg.cxx | 45 +++------------------------------------------ 1 file changed, 3 insertions(+), 42 deletions(-) (limited to 'src/Fl_arg.cxx') diff --git a/src/Fl_arg.cxx b/src/Fl_arg.cxx index 34ba95bb1..8f92e3fed 100644 --- a/src/Fl_arg.cxx +++ b/src/Fl_arg.cxx @@ -20,8 +20,8 @@ // You do not need to call this! Feel free to make up your own switches. #include -#include #include +#include #include #include #include @@ -301,32 +301,7 @@ void Fl_Window::show(int argc, char **argv) { Fl::get_system_colors(); -#if defined(WIN32) -#elif defined(__APPLE__) // PORTME: Fl_Screen_Driver- platform default parameters -#elif defined(FL_PORTING) -# pragma message "FL_PORTING: Parse additional default settings" -#else // X11 - // Get defaults for drag-n-drop and focus... - const char *key = 0, *val; - - if (Fl::first_window()) key = Fl::first_window()->xclass(); - if (!key) key = "fltk"; - - val = XGetDefault(fl_display, key, "dndTextOps"); - if (val) Fl::dnd_text_ops(strcasecmp(val, "true") == 0 || - strcasecmp(val, "on") == 0 || - strcasecmp(val, "yes") == 0); - - val = XGetDefault(fl_display, key, "tooltips"); - if (val) Fl_Tooltip::enable(strcasecmp(val, "true") == 0 || - strcasecmp(val, "on") == 0 || - strcasecmp(val, "yes") == 0); - - val = XGetDefault(fl_display, key, "visibleFocus"); - if (val) Fl::visible_focus(strcasecmp(val, "true") == 0 || - strcasecmp(val, "on") == 0 || - strcasecmp(val, "yes") == 0); -#endif // !WIN32 && !__APPLE__ // PORTME: platform defaults + pWindowDriver->show_with_args_begin(); // set colors first, so background_pixel is correct: static char beenhere; @@ -365,21 +340,7 @@ void Fl_Window::show(int argc, char **argv) { // Show the window AFTER we have set the colors and scheme. show(); -#if defined(WIN32) -#elif defined(__APPLE__) // PORTME: Fl_System_Driver - platform properties -#elif defined(FL_PORTING) -# pragma message "FL_PORTING: Parse additional default settings" -#else // X11 - // set the command string, used by state-saving window managers: - int j; - int n=0; for (j=0; jshow_with_args_end(argc, argv); } // Calls useful for simple demo programs, with automatic help message: -- cgit v1.2.3