Commit ab2b0e622c9b93098a943d3064a97f1ac6a519a5

Authored by Perry Werneck
1 parent 07a80fd0
Exists in master and in 1 other branch develop

Re-enabling default widget method (required for the old hllapi

extension).
Showing 1 changed file with 3 additions and 5 deletions   Show diff stats
src/terminal/widget.c
... ... @@ -1008,14 +1008,13 @@ LIB3270_EXPORT int v3270_set_host_charset(GtkWidget *widget, const gchar *name)
1008 1008 return lib3270_set_host_charset(GTK_V3270(widget)->host,name);
1009 1009 }
1010 1010  
1011   -/*
1012   -GtkWidget * v3270_get_default_widget(void)
  1011 +LIB3270_EXPORT GtkWidget * v3270_get_default_widget(void)
1013 1012 {
1014 1013 H3270 * hSession = lib3270_get_default_session_handle();
1015 1014  
1016 1015 if(!hSession)
1017 1016 {
1018   - g_warning("No default session available on %s",__FUNCTION__);
  1017 + g_warning("%s: No default session available",__FUNCTION__);
1019 1018 return NULL;
1020 1019 }
1021 1020  
... ... @@ -1023,11 +1022,10 @@ GtkWidget * v3270_get_default_widget(void)
1023 1022  
1024 1023 if(!(widget && GTK_IS_V3270(widget)))
1025 1024 {
1026   - g_warning("No widget on default session on %s",__FUNCTION__);
  1025 + g_warning("%s: Can't determine default widget",__FUNCTION__);
1027 1026 return NULL;
1028 1027 }
1029 1028  
1030 1029 return GTK_WIDGET(widget);
1031 1030 }
1032   -*/
1033 1031  
... ...