Try to fix:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 20 Sep 2009 07:35:55 +0000 (07:35 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 20 Sep 2009 07:35:55 +0000 (07:35 +0000)
Fedora 11/Gtk2.16.6: Get two Gtk-Critical messages each time a capture fie is opened:
(lt-wireshark:15705): Gtk-CRITICAL **: gtk_tree_view_column_set_fixed_width: assertion `fixed_width > 0' failed
gtk_tree_view_column_set_fixed_width is incompatible with variable width columns.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29989 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/new_packet_list.c

index d63516ae2b3147acfc75cd919f36c5121f4a2a64..f137d1ba4cd45bdab8f7dc6f431d06bfd34f4e51 100644 (file)
@@ -204,7 +204,7 @@ create_view_and_model(void)
 
                /* Set the size the column will be displayed with */
                col_width = recent_get_column_width(i);
-               if(col_width == -1) {
+               if(col_width < 0) {
                        layout = gtk_widget_create_pango_layout(packetlist->view, get_column_width_string(get_column_format(i), i));
                        pango_layout_get_pixel_size(layout, &col_width, NULL);
                        gtk_tree_view_column_set_fixed_width(col, col_width);