On 3/20/2013 6:41 PM, [email protected] wrote:
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=48445

User: gerald
Date: 2013/03/20 03:41 PM



Gerald:

There recently was an issue in capture_if_dlg.c where the use of gtk_window_get_size() and gtk_window_resize() seemed not to work well on some platforms.

In the end, what seemed to work well was to use get_widget_get_preferred_size() and then gtk_window_set_default_size().

See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8468 for all the gory details.

The patch attached to the bug replaced the use of get_size/resize with get_preferred_size/set_default_size.

(Note that gtk_widget_get_preferred_size is defined as gtk_widget_size_request for GTK2 which means that the 3rd arg to gtk_widget_get_preferred_size() is always set to NULL).

#define gtk_widget_get_preferred_size(x,y,z) \
gtk_widget_size_request(x,y)

Bill


___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:[email protected]?subject=unsubscribe

Reply via email to