diff --git a/Makefile.in b/Makefile.in index a89c858..e2eab79 100644 --- a/Makefile.in +++ b/Makefile.in @@ -210,8 +210,7 @@ $(POTDIR)/%.pot: \ #---[ Debug Targets ]-------------------------------------------------------------------- Debug: \ - $(BINDBG)/$(PACKAGE_TARNAME)@EXEEXT@ \ - $(BINDBG)/libpw3270cpp.a + $(BINDBG)/$(PACKAGE_TARNAME)@EXEEXT@ publish-debug: \ $(BINDBG)/$(PACKAGE_TARNAME)@EXEEXT@ diff --git a/src/include/pw3270.h b/src/include/pw3270.h index ef6b9f5..500eb5f 100644 --- a/src/include/pw3270.h +++ b/src/include/pw3270.h @@ -68,6 +68,7 @@ LIB3270_EXPORT const gchar * pw3270_get_session_name(GtkWidget *widget); LIB3270_EXPORT void pw3270_set_session_name(GtkWidget *widget, const gchar *name); + LIB3270_EXPORT void pw3270_set_oversize(GtkWidget *widget, const gchar *oversize); LIB3270_EXPORT void pw3270_set_host_type(GtkWidget *widget, const gchar *name); LIB3270_EXPORT int pw3270_set_session_color_type(GtkWidget *widget, unsigned short color_type); diff --git a/src/pw3270/main.c b/src/pw3270/main.c index b429776..c992f49 100644 --- a/src/pw3270/main.c +++ b/src/pw3270/main.c @@ -63,7 +63,7 @@ static const gchar * charset = NULL; static const gchar * remap = NULL; static const gchar * model = NULL; - + static const gchar * oversize = NULL; const gchar * tracefile = NULL; #ifdef HAVE_GTKMAC @@ -306,6 +306,7 @@ int main(int argc, char *argv[]) { "charset", 'C', 0, G_OPTION_ARG_STRING, &charset, N_( "Set host charset" ), NULL }, { "remap", 'm', 0, G_OPTION_ARG_FILENAME, &remap, N_( "Remap charset from xml file" ), NULL }, { "model", 'M', 0, G_OPTION_ARG_STRING, &model, N_( "The model of 3270 display to be emulated" ), NULL }, + { "oversize", 'O', 0, G_OPTION_ARG_STRING, &oversize, N_( "Makes the screen larger than the default for the chosen model number." ), NULL }, { "autodisconnect", 'D', 0, G_OPTION_ARG_INT, &timer, N_( "Minutes for auto-disconnect" ), 0 }, { "pluginpath", 'P', 0, G_OPTION_ARG_STRING, &pluginpath, N_( "Path for plugin files" ), NULL }, @@ -375,15 +376,6 @@ int main(int argc, char *argv[]) g_log_set_default_handler(g_log_to_lib3270,NULL); -/* -#if defined( HAVE_SYSLOG ) - if(log_to_syslog) - { - openlog(g_get_prgname(), LOG_NDELAY, LOG_USER); - } -#endif // HAVE_SYSLOG -*/ - #ifdef _WIN32 { @@ -454,6 +446,9 @@ int main(int argc, char *argv[]) toplevel = pw3270_new(host,systype,syscolors); pw3270_set_session_name(toplevel,session_name); + if(oversize) + pw3270_set_oversize(toplevel,oversize); + #ifdef _WIN32 pw3270_set_string(toplevel,"application","session",session_name); #endif // _WIN32 diff --git a/src/pw3270/window.c b/src/pw3270/window.c index 85577bd..e476fe9 100644 --- a/src/pw3270/window.c +++ b/src/pw3270/window.c @@ -35,6 +35,7 @@ #include #include #include +#include #include /*--[ Widget definition ]----------------------------------------------------------------------------*/ @@ -98,6 +99,8 @@ static GtkWidget * trace_window = NULL; + const gchar * oversize = NULL; + /*--[ Implement ]------------------------------------------------------------------------------------*/ #if GTK_CHECK_VERSION(3,0,0) @@ -379,6 +382,12 @@ static GtkWidget * trace_window = NULL; v3270_set_session_name(GTK_PW3270(widget)->terminal,name); } + LIB3270_EXPORT void pw3270_set_oversize(GtkWidget *widget, const gchar *oversize) + { + g_return_if_fail(GTK_IS_PW3270(widget)); + lib3270_set_oversize(pw3270_get_session(widget),oversize); + } + LIB3270_EXPORT void pw3270_set_host_type(GtkWidget *widget, const gchar *name) { size_t f; -- libgit2 0.21.2