Commit c835357030302469f00a4703c5c5feb07f937591

Authored by perry.werneck@gmail.com
1 parent e390d169

Retornando ícone de "unlocked" ao original post que conexões SSL incompletas ago…

…ra ficam com o "warning" sobreposto ao cadeado
src/pw3270/v3270/oia.c
... ... @@ -349,12 +349,12 @@ void v3270_draw_ssl_status(cairo_t *cr, H3270 *host, struct v3270_metrics *metri
349 349  
350 350 case LIB3270_SSL_NEGOTIATING: /**< Negotiating SSL */
351 351 gdk_cairo_set_source_color(cr,color+V3270_COLOR_OIA_STATUS_WARNING);
352   - draw_xbm(cr,rect,unlocked_width,unlocked_height,unlocked_bits);
  352 + draw_xbm(cr,rect,negotiated_width,negotiated_height,negotiated_bits);
353 353 break;
354 354  
355 355 case LIB3270_SSL_NEGOTIATED: /**< Connection secure, no CA or self-signed */
356 356 gdk_cairo_set_source_color(cr,color+V3270_COLOR_OIA_STATUS_OK);
357   - draw_xbm(cr,rect,negotiated_width,negotiated_height,negotiated_bits);
  357 + draw_xbm(cr,rect,locked_width,locked_height,locked_bits);
358 358 gdk_cairo_set_source_color(cr,color+V3270_COLOR_OIA_STATUS_WARNING);
359 359 draw_xbm(cr,rect,warning_width,warning_height,warning_bits);
360 360 break;
... ...
src/pw3270/v3270/unlocked.xbm
... ... @@ -6,9 +6,9 @@ static unsigned char unlocked_bits[] = {
6 6 0x00, 0x30, 0x07, 0xce, 0x00, 0x30, 0x03, 0xcc, 0x00, 0x30, 0x03, 0xcc,
7 7 0x00, 0x30, 0x03, 0xcc, 0x00, 0x30, 0x03, 0xcc, 0x00, 0x30, 0x03, 0xcc,
8 8 0x00, 0x30, 0x03, 0xfc, 0x00, 0x30, 0x03, 0xfc, 0xff, 0xff, 0x3f, 0x00,
9   - 0xff, 0xff, 0x3f, 0x00, 0x03, 0x00, 0x30, 0x00, 0x03, 0x00, 0x30, 0x00,
10   - 0x03, 0x00, 0x30, 0x00, 0x03, 0x00, 0x30, 0x00, 0x03, 0x00, 0x30, 0x00,
11   - 0x03, 0x00, 0x30, 0x00, 0x03, 0x00, 0x30, 0x00, 0x03, 0x00, 0x30, 0x00,
12   - 0x03, 0x00, 0x30, 0x00, 0x03, 0x00, 0x30, 0x00, 0x03, 0x00, 0x30, 0x00,
13   - 0x03, 0x00, 0x30, 0x00, 0x03, 0x00, 0x30, 0x00, 0x03, 0x00, 0x30, 0x00,
  9 + 0xff, 0xff, 0x3f, 0x00, 0x57, 0x55, 0x35, 0x00, 0xab, 0xaa, 0x3a, 0x00,
  10 + 0x57, 0x55, 0x35, 0x00, 0xab, 0xaa, 0x3a, 0x00, 0x57, 0x55, 0x35, 0x00,
  11 + 0xab, 0xaa, 0x3a, 0x00, 0x57, 0x55, 0x35, 0x00, 0xab, 0xaa, 0x3a, 0x00,
  12 + 0x57, 0x55, 0x35, 0x00, 0xab, 0xaa, 0x3a, 0x00, 0x57, 0x55, 0x35, 0x00,
  13 + 0xab, 0xaa, 0x3a, 0x00, 0x57, 0x55, 0x35, 0x00, 0xab, 0xaa, 0x3a, 0x00,
14 14 0xff, 0xff, 0x3f, 0x00, 0xff, 0xff, 0x3f, 0x00 };
... ...