Commit f3b8aa20e5ef7e1c1cab520f769b2708e112811c
1 parent
44fee5c5
Exists in
master
and in
1 other branch
+ Fixing rpm build.
+ Adding host URL as widget property.
Showing
4 changed files
with
24 additions
and
4 deletions
Show diff stats
glade/v3270.xml.in
rpm/libv3270.spec
| ... | ... | @@ -61,7 +61,7 @@ BuildRequires: coreutils |
| 61 | 61 | BuildRequires: gcc-c++ |
| 62 | 62 | BuildRequires: gettext-devel |
| 63 | 63 | BuildRequires: m4 |
| 64 | -BuildRequires: libgladeui | |
| 64 | +BuildRequires: libgladeui-2-6 | |
| 65 | 65 | |
| 66 | 66 | %description |
| 67 | 67 | |
| ... | ... | @@ -96,7 +96,7 @@ Summary: Glade catalog for the TN3270 terminal emulator library |
| 96 | 96 | Group: Development/Libraries/C and C++ |
| 97 | 97 | |
| 98 | 98 | Requires: libv3270-devel = %{version} |
| 99 | -Requires: libgladeui | |
| 99 | +Requires: glade | |
| 100 | 100 | |
| 101 | 101 | %description -n glade-catalog-v3270 |
| 102 | 102 | |
| ... | ... | @@ -165,4 +165,4 @@ exit 0 |
| 165 | 165 | /sbin/ldconfig |
| 166 | 166 | exit 0 |
| 167 | 167 | |
| 168 | 168 | -%changelog |
| 169 | +%changelog | |
| 169 | 170 | \ No newline at end of file | ... | ... |
src/v3270/private.h
src/v3270/properties.c
| ... | ... | @@ -63,6 +63,10 @@ |
| 63 | 63 | v3270_set_auto_disconnect(GTK_WIDGET(object),g_value_get_int(value)); |
| 64 | 64 | break; |
| 65 | 65 | |
| 66 | + case PROP_URL: | |
| 67 | + v3270_set_url(GTK_WIDGET(object),g_value_get_string(value)); | |
| 68 | + break; | |
| 69 | + | |
| 66 | 70 | default: |
| 67 | 71 | if(prop_id < (PROP_TOGGLE + LIB3270_TOGGLE_COUNT)) |
| 68 | 72 | { |
| ... | ... | @@ -100,6 +104,14 @@ |
| 100 | 104 | g_value_set_boolean(value,lib3270_has_selection(window->host) ? TRUE : FALSE ); |
| 101 | 105 | break; |
| 102 | 106 | |
| 107 | + case PROP_URL: | |
| 108 | + { | |
| 109 | + char buffer[1024]; | |
| 110 | + memset(buffer,0,sizeof(buffer)); | |
| 111 | + g_value_set_string(value,lib3270_get_url(window->host, buffer, sizeof(buffer))); | |
| 112 | + } | |
| 113 | + break; | |
| 114 | + | |
| 103 | 115 | default: |
| 104 | 116 | if(prop_id < (PROP_TOGGLE + LIB3270_TOGGLE_COUNT)) |
| 105 | 117 | { |
| ... | ... | @@ -145,7 +157,6 @@ |
| 145 | 157 | FALSE,G_PARAM_READABLE|G_PARAM_WRITABLE); |
| 146 | 158 | g_object_class_install_property(gobject_class,PROP_LUNAME,v3270_properties[PROP_LUNAME]); |
| 147 | 159 | |
| 148 | - | |
| 149 | 160 | v3270_properties[PROP_AUTO_DISCONNECT] = g_param_spec_string( |
| 150 | 161 | "auto_disconnect", |
| 151 | 162 | "auto_disconnect", |
| ... | ... | @@ -153,6 +164,13 @@ |
| 153 | 164 | FALSE,G_PARAM_READABLE|G_PARAM_WRITABLE); |
| 154 | 165 | g_object_class_install_property(gobject_class,PROP_AUTO_DISCONNECT,v3270_properties[PROP_AUTO_DISCONNECT]); |
| 155 | 166 | |
| 167 | + v3270_properties[PROP_URL] = g_param_spec_string( | |
| 168 | + "url", | |
| 169 | + "url", | |
| 170 | + "Host URL", | |
| 171 | + FALSE,G_PARAM_READABLE|G_PARAM_WRITABLE); | |
| 172 | + g_object_class_install_property(gobject_class,PROP_AUTO_DISCONNECT,v3270_properties[PROP_URL]); | |
| 173 | + | |
| 156 | 174 | // Toggle properties |
| 157 | 175 | int f; |
| 158 | 176 | ... | ... |