summaryrefslogtreecommitdiff
path: root/ui/gtk/packet_list.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-01-22 18:27:18 +0000
committerGerald Combs <gerald@wireshark.org>2013-01-22 18:27:18 +0000
commit6ef1fc5002e8ed04019e81f236d4978010b0dfdb (patch)
tree1ababab774a91fa1cd79ee279c660714030f18f6 /ui/gtk/packet_list.c
parent394b6c1c00395d463897bee86c416bec8b173b7f (diff)
downloadwireshark-6ef1fc5002e8ed04019e81f236d4978010b0dfdb.tar.gz
GTK+:
Get rid of user-hostile behavior. In the layout preferences pane 2 & 3 radio buttons overrode the user's selection if a duplicate item was selected. Now we assume that the user knows what he or she is doing and steal duplicate selections from the other panes. Qt: Match the new GTK+ behavior in the layout preferences. Add padding around the layout images. Add toolbar style preferences to the Appearance pane (instead of the layout pane). All: Remove the selection mode and scrollbar placement prefs and mark them obsolete as recently discussed on -dev. Adjust the layout images yet again after more Awful Monitor Testing. svn path=/trunk/; revision=47214
Diffstat (limited to 'ui/gtk/packet_list.c')
-rw-r--r--ui/gtk/packet_list.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/ui/gtk/packet_list.c b/ui/gtk/packet_list.c
index 87911a10c6..45bd85af89 100644
--- a/ui/gtk/packet_list.c
+++ b/ui/gtk/packet_list.c
@@ -106,8 +106,6 @@ static gint row_number_from_iter(GtkTreeIter *iter);
static void scroll_to_current(void);
static gboolean query_packet_list_tooltip_cb(GtkWidget *widget, gint x, gint y, gboolean keyboard_tip, GtkTooltip *tooltip, gpointer data _U_);
-void packet_list_set_sel_browse(gboolean val, gboolean force_set);
-
GtkWidget *
packet_list_create(void)
{
@@ -117,8 +115,6 @@ packet_list_create(void)
view = create_view_and_model();
- packet_list_set_sel_browse(prefs.gui_plist_sel_browse, FALSE);
-
gtk_container_add(GTK_CONTAINER(scrollwin), view);
g_object_set_data(G_OBJECT(popup_menu_object), E_MPACKET_LIST_KEY, view);
@@ -1397,46 +1393,6 @@ packet_list_queue_draw(void)
cf_select_packet(&cfile, row);
}
-/* Set the selection mode of the packet list window. */
-void
-packet_list_set_sel_browse(gboolean val, gboolean force_set)
-{
- GtkSelectionMode new_mode;
- /* initialize with a mode we don't use, so that the mode == new_mode
- * test will fail the first time */
- static GtkSelectionMode mode = GTK_SELECTION_MULTIPLE;
-
- /* Yeah, GTK uses "browse" in the case where we do not, but oh well. I
- * think "browse" in Wireshark makes more sense than "SINGLE" in GTK+ */
- new_mode = val ? GTK_SELECTION_SINGLE : GTK_SELECTION_BROWSE;
-
- if ((mode == new_mode) && !force_set) {
- /*
- * The mode isn't changing, so don't do anything.
- * In particular, don't gratuitiously unselect the
- * current packet.
- *
- * XXX - Copied code from "old" packet list
- * - I don't know if the comment below is still true...
- * XXX - why do we have to unselect the current packet
- * ourselves? The documentation for the GtkCList at
- *
- * http://developer.gnome.org/doc/API/gtk/gtkclist.html
- *
- * says "Note that setting the widget's selection mode to
- * one of GTK_SELECTION_BROWSE or GTK_SELECTION_SINGLE will
- * cause all the items in the GtkCList to become deselected."
- */
- return;
- }
-
- if (cfile.finfo_selected)
- cf_unselect_field(&cfile);
-
- mode = new_mode;
- gtk_tree_selection_set_mode (gtk_tree_view_get_selection(GTK_TREE_VIEW(packetlist->view)), mode);
-}
-
void
packet_list_set_font(PangoFontDescription *font)
{