From Jakub Zawadzki:

This patch fix return value in new_packet_list_find_row_from_data when !select

From Me: Change back the cell coloring and remove the horizontal-separator making the colorinjg look the same as in the old packet list.

svn path=/trunk/; revision=29168
This commit is contained in:
Anders Broman 2009-07-22 15:23:08 +00:00
parent 41b86b26b8
commit 69e79617ef
2 changed files with 11 additions and 4 deletions

View File

@ -130,7 +130,6 @@ create_view_and_model(void)
gtk_tree_view_set_fixed_height_mode(GTK_TREE_VIEW(packetlist->view),
TRUE);
#endif
g_signal_connect(packetlist->view, "cursor-changed",
G_CALLBACK(new_packet_list_select_cb), NULL);
@ -249,8 +248,8 @@ new_packet_list_find_row_from_data(gpointer data, gboolean select)
/* Needed to get the middle and bottom panes updated? */
new_packet_list_select_cb(GTK_TREE_VIEW(packetlist->view),data);
return row;
}
return row;
}
}
@ -324,8 +323,8 @@ show_cell_data_func(GtkTreeViewColumn *col _U_, GtkCellRenderer *renderer,
"text", cell_text,
"foreground-gdk", &fg_gdk,
"foreground-set", enable_color,
"cell-background-gdk", &bg_gdk,
"cell-background-set", enable_color,
"background-gdk", &bg_gdk,
"background-set", enable_color,
NULL);
}else{
g_object_set(renderer,

View File

@ -179,6 +179,14 @@ packet_list_class_init(PacketListClass *klass)
object_class = (GObjectClass*) klass;
object_class->finalize = packet_list_finalize;
gtk_rc_parse_string (
"style \"PacketList-style\"\n"
"{\n"
" GtkTreeView::horizontal-separator = 0\n"
"} widget_class \"*TreeView*\""
" style \"PacketList-style\"");
}
static void