Package: mbrowse
Version: 0.3.1-6
Severity: normal
*** Please type your report below this line ***
The steps for reproducing the problem are:
1) Set the "View Suffix Only" check button in the Options menu.
2) Walk through a branch, you see suffix only output as expected
3) Delete some numbers in Object Identifier field
4) Walk through a branch, you see full oid names output, unexpectedly
5) Check the "View Suffix Only" option, it remains checked, it is now
incoherent with the output
I attach a patch that solves the problem. Additionally the patch widens
the Instance field which is currently too short for string indeces.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages mbrowse depends on:
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libglib1.2 1.2.10-17 The GLib library of C routines
ii libgtk1.2 1.2.10-18 The GIMP Toolkit set of
widgets fo
ii libsnmp9 5.2.3-7 NET SNMP (Simple Network
Managemen
ii libwrap0 7.6.dbs-13 Wietse Venema's TCP
wrappers libra
ii libx11-6 2:1.0.3-7 X11 client-side library
ii libxext6 1:1.0.1-2 X11 miscellaneous extension
librar
ii libxi6 1:1.0.1-4 X11 Input extension library
mbrowse recommends no packages.
-- no debconf information
Only in /home/mgr/mbrowse-0.3.1/src: Makefile
diff mbrowse-0.3.1/src/callbacks.c /home/mgr/mbrowse-0.3.1/src/callbacks.c
266,267d265
< snmp_set_suffix_only(0);
< snmp_set_full_objid(1);
272,273d269
< snmp_set_suffix_only(tview);
< snmp_set_full_objid(0);
diff mbrowse-0.3.1/src/interface.c /home/mgr/mbrowse-0.3.1/src/interface.c
38c38
< int tview = 1;
---
> int tview = 0;
116c116,120
< snmp_set_suffix_only(tview);
---
> if (tview) {
> snmp_set_suffix_only(0);
> } else {
> snmp_set_full_objid(1);
> }
203c207
< { "+View Suffix Only",view_suffix,NULL,NULL },
---
> { "+View Module::Suffix",view_suffix,NULL,NULL },
420c424
< gtk_widget_set_usize(instance_entry,50,-2);
---
> gtk_widget_set_usize(instance_entry,60,-2);
diff mbrowse-0.3.1/src/snmpstuff.c /home/mgr/mbrowse-0.3.1/src/snmpstuff.c
87c87
< snmp_set_suffix_only(1);
---
> snmp_set_full_objid(1);
362a363
> break;