diff --git a/glade/v3270.xml.in b/glade/v3270.xml.in index 10a93de..904328c 100644 --- a/glade/v3270.xml.in +++ b/glade/v3270.xml.in @@ -4,6 +4,7 @@ + diff --git a/rpm/libv3270.spec b/rpm/libv3270.spec index 7c44e50..fd8eb5a 100644 --- a/rpm/libv3270.spec +++ b/rpm/libv3270.spec @@ -61,7 +61,7 @@ BuildRequires: coreutils BuildRequires: gcc-c++ BuildRequires: gettext-devel BuildRequires: m4 -BuildRequires: libgladeui +BuildRequires: libgladeui-2-6 %description @@ -96,7 +96,7 @@ Summary: Glade catalog for the TN3270 terminal emulator library Group: Development/Libraries/C and C++ Requires: libv3270-devel = %{version} -Requires: libgladeui +Requires: glade %description -n glade-catalog-v3270 @@ -165,4 +165,4 @@ exit 0 /sbin/ldconfig exit 0 -%changelog +%changelog \ No newline at end of file diff --git a/src/v3270/private.h b/src/v3270/private.h index 932ebde..471fb30 100644 --- a/src/v3270/private.h +++ b/src/v3270/private.h @@ -215,6 +215,7 @@ G_BEGIN_DECLS PROP_MODEL, PROP_LUNAME, PROP_AUTO_DISCONNECT, + PROP_URL, /* Toggles - always the last one, the real values are PROP_TOGGLE+LIB3270_TOGGLE */ PROP_TOGGLE diff --git a/src/v3270/properties.c b/src/v3270/properties.c index 3815beb..25351d4 100644 --- a/src/v3270/properties.c +++ b/src/v3270/properties.c @@ -63,6 +63,10 @@ v3270_set_auto_disconnect(GTK_WIDGET(object),g_value_get_int(value)); break; + case PROP_URL: + v3270_set_url(GTK_WIDGET(object),g_value_get_string(value)); + break; + default: if(prop_id < (PROP_TOGGLE + LIB3270_TOGGLE_COUNT)) { @@ -100,6 +104,14 @@ g_value_set_boolean(value,lib3270_has_selection(window->host) ? TRUE : FALSE ); break; + case PROP_URL: + { + char buffer[1024]; + memset(buffer,0,sizeof(buffer)); + g_value_set_string(value,lib3270_get_url(window->host, buffer, sizeof(buffer))); + } + break; + default: if(prop_id < (PROP_TOGGLE + LIB3270_TOGGLE_COUNT)) { @@ -145,7 +157,6 @@ FALSE,G_PARAM_READABLE|G_PARAM_WRITABLE); g_object_class_install_property(gobject_class,PROP_LUNAME,v3270_properties[PROP_LUNAME]); - v3270_properties[PROP_AUTO_DISCONNECT] = g_param_spec_string( "auto_disconnect", "auto_disconnect", @@ -153,6 +164,13 @@ FALSE,G_PARAM_READABLE|G_PARAM_WRITABLE); g_object_class_install_property(gobject_class,PROP_AUTO_DISCONNECT,v3270_properties[PROP_AUTO_DISCONNECT]); + v3270_properties[PROP_URL] = g_param_spec_string( + "url", + "url", + "Host URL", + FALSE,G_PARAM_READABLE|G_PARAM_WRITABLE); + g_object_class_install_property(gobject_class,PROP_AUTO_DISCONNECT,v3270_properties[PROP_URL]); + // Toggle properties int f; -- libgit2 0.21.2