Wireshark-bugs: [Wireshark-bugs] [Bug 4487] I/O Graph dropdown boxes not working correctly
Date: Mon, 15 Feb 2010 08:59:33 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4487

--- Comment #9 from Bill Meier <wmeier@xxxxxxxxxxx> 2010-02-15 08:59:29 PST ---
OK: I've done some testing of how mouse clicks seem to work in gtk_combo_box
and in gtk_option_menu for:
  1. Gtk2.16 vs Gtk 2.18;
  2. Windows 7 vs Fedora 12 Linux; (See below addt'l for environment info)

(In the fix described above the I/O Graph code was changed to use gtk_combo_box
instead of gtk_option_menu for the "dropdown boxes").

On my systems, mouse clicks for these widgets are handled in basically two
different ways depending upon the widget and/or the Gtk Version and/or the O/S.

The two behaviors:

1. Clicking on the widget opens the drop-down; a second click is needed to 
   close the dropdown.

2. The dropdown remains visible only as long as the mouse button is held down.

Based upon the tests:

1. Windows Wireshark: behavior for gtk_options_menu seems to have changed going
   from Gtk 2.16 to 2.18 (as reported by Keith) while gtk_combo_box behavior
   did not change. Behavior #1 is seen for all but gtk_option_menu on Gtk 2.18.

2. Fedora Wireshark: behaviour #2 is (mostly) seen for both Gtk 2.16 and 2.18

   (See below for details)

My comments:

1. It would be interesting to know if the behaviors are similar in
   other Windows and Linux environments ?

2. Is one of the above behaviors the expected behavior and thus the other
   might be considered a bug ?

   (I could imagine that the actual behavior is dependent upon the details
    of the underlying implementation of windows, button events & etc and 
    thus might change on different systems).

3. Changing Wireshark use of gtk_option_menu to gtk_combo_box is 
   appropriate since gtk_option_menu is deprecated. However this
   may not lead to consistent behavior between O/S's.

-----

For the I/O Graph dropdowns on my Windows 7 envoronment:
  Wireshark 1.2.5: Behavior #1 [Gtk-2.16; gtk_option_menu]
  Wireshark 1.2.6: Behavior #2 [Gtk-2-18; gtk_option_menu]
  Wireshark 1.3.3: Behavior #1 [Gtk-2.18; gtk_combo_box]

The strange part: 
For the I/O Graph dropdowns on my Fedora 12 Linux:
  Wireshark 1.3.3: Behavior #2 (*mostly) [Gtk 2.18; gtk_combo_box]
  Wireshark 1.3.3: Behavior #2 (*mostly) [Gtk 2.18; gtk_option_menu]
                                          (used in 'decode-as")
  *repeated clicking of a dropdown sometimes shows behavior #1

---

I did some further testing (via a test program which displayed both
  a gtk_option_menu dropdown and a gtk_combo_box dropdown) and found that:

    My Windows 7: Most cases exhibited behavior #1
                            Gtk 2.16    Gtk 2.18
       gtk_option_menu         #1          #2
       gtk_combo_box           #1          #1

    My Fedora Linux:  All cases mostly exhibited behavior #2.
                            Gtk 2.16    Gtk 2.18
       gtk_option_menu         #2*         #2*
       gtk_combo_box           #2*         #2*

       *mostly: I got a sense that the behavior is somehow timing dependent.

-----

My Fedora 12 environment:  Fedora 12 running in a VirtualBox VM under Windows
7.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.