aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_draw.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-05-09 07:01:07 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-05-09 07:01:07 +0000
commit09962ebb643c94d5cb6984c3ec7887ac81a8fc32 (patch)
treecacb4a7fcc8d9d5a6390ccf910e7c40e92e357b5 /gtk/proto_draw.c
parent4befb390d1bafb0b51c4fd61851bf68ac969f954 (diff)
make notebook tabs scrollable, if not all fits into the pane,
enable a popup menu on the notebook tabs, with the tab labels svn path=/trunk/; revision=10828
Diffstat (limited to 'gtk/proto_draw.c')
-rw-r--r--gtk/proto_draw.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/proto_draw.c b/gtk/proto_draw.c
index e145a58975..0c3e91b882 100644
--- a/gtk/proto_draw.c
+++ b/gtk/proto_draw.c
@@ -1,7 +1,7 @@
/* proto_draw.c
* Routines for GTK+ packet display
*
- * $Id: proto_draw.c,v 1.93 2004/05/01 15:15:08 ulfl Exp $
+ * $Id: proto_draw.c,v 1.94 2004/05/09 07:01:07 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -631,6 +631,12 @@ byte_view_new(void)
/* this will only have an effect, if no tabs are shown */
gtk_notebook_set_show_border(GTK_NOTEBOOK(byte_nb), FALSE);
+ /* set the tabs scrollable, if they don't fit into the pane */
+ gtk_notebook_set_scrollable(GTK_NOTEBOOK(byte_nb), TRUE);
+
+ /* enable a popup menu containing the tab labels, will be helpful if tabs don't fit into the pane */
+ gtk_notebook_popup_enable(GTK_NOTEBOOK(byte_nb));
+
/* Add a placeholder byte view so that there's at least something
displayed in the byte view notebook. */
add_byte_tab(byte_nb, "", NULL, NULL, NULL);