Ethereal-dev: Re: SV: [Ethereal-dev] Voip Graph analysis enhancement
Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.
From: Alejandro Vaquero <alejandrovaquero@xxxxxxxxx>
Date: Mon, 06 Jun 2005 20:08:12 -0600
Find attached a patch for ths issue and also to correct the "first_item"
issue reported in "RE: [Ethereal-dev] Voip graph analysis "Save as" button"
Regards Alejandro packet steve wrote:
Broke the gtk1 build. glib-object.h is is glib2 only. graph_analysis.c:47:25: glib-object.h: No such file or directoryFrom: "Anders Broman" <a.broman@xxxxxxxxx> Reply-To: Ethereal development <ethereal-dev@xxxxxxxxxxxx> To: "'Ethereal development'" <ethereal-dev@xxxxxxxxxxxx> Subject: SV: [Ethereal-dev] Voip Graph analysis enhancement Date: Mon, 6 Jun 2005 16:31:19 +0200 Checked in Brg Anders -----Ursprungligt meddelande----- Från: ethereal-dev-bounces@xxxxxxxxxxxx [mailto:ethereal-dev-bounces@xxxxxxxxxxxx] För Alejandro Vaquero Skickat: den 4 juni 2005 21:31 Till: ethereal-dev@xxxxxxxxxxxx Ämne: [Ethereal-dev] Voip Graph analysis enhancement Hi List, find attached a patch to graph_analysis to: - Add a pane to contain the main graph and the comments to be able to split them - Change the main graph area to be a scrolled_window - Change the look of the selected item to be blue with white text color - Gray color the title area - Change the conversations color to more "soft" colors (it was difficult to read in some cases before) Regards Alejandro _______________________________________________ Ethereal-dev mailing list Ethereal-dev@xxxxxxxxxxxx http://www.ethereal.com/mailman/listinfo/ethereal-dev_______________________________________________ Ethereal-dev mailing list Ethereal-dev@xxxxxxxxxxxx http://www.ethereal.com/mailman/listinfo/ethereal-dev
Index: graph_analysis.c =================================================================== --- graph_analysis.c (revision 14571) +++ graph_analysis.c (working copy) @@ -44,7 +44,9 @@ /* in /gtk ... */ #include <gtk/gtk.h> +#if GTK_MAJOR_VERSION >= 2 #include <glib-object.h> +#endif #include <gdk/gdkkeysyms.h> #include "gtkglobals.h" @@ -267,7 +269,7 @@ /****************************************************************************/ gboolean dialog_graph_dump_to_file(graph_analysis_data_t* user_data) { - guint32 i, first_item, first_node, display_items, display_nodes; + guint32 i, first_node, display_items, display_nodes; guint32 start_position, end_position, item_width; guint32 current_item; graph_analysis_item_t *gai; @@ -286,8 +288,6 @@ return FALSE; } - first_item = user_data->dlg.first_item; - /* get the items to display and fill the matrix array */ list = g_list_first(user_data->graph_info->list); current_item = 0; @@ -296,7 +296,6 @@ { gai = list->data; if (gai->display){ - if (i>=first_item){ user_data->dlg.items[current_item].frame_num = gai->frame_num; user_data->dlg.items[current_item].time = gai->time; user_data->dlg.items[current_item].port_src = gai->port_src; @@ -307,7 +306,6 @@ user_data->dlg.items[current_item].src_node = gai->src_node; user_data->dlg.items[current_item].dst_node = gai->dst_node; current_item++; - } i++; } @@ -1373,6 +1371,7 @@ dialog_graph_redraw(user_data); return TRUE; } +#if GTK_MAJOR_VERSION >= 2 /****************************************************************************/ static gint pane_callback(GtkWidget *widget, GParamSpec *pspec, gpointer data) { @@ -1381,12 +1380,10 @@ if(!user_data){ exit(10); } -#if GTK_MAJOR_VERSION >= 2 if (gtk_paned_get_position(GTK_PANED(user_data->dlg.hpane)) > user_data->dlg.pixmap_width) gtk_paned_set_position(GTK_PANED(user_data->dlg.hpane), user_data->dlg.pixmap_width); else if (gtk_paned_get_position(GTK_PANED(user_data->dlg.hpane)) < NODE_WIDTH*2) gtk_paned_set_position(GTK_PANED(user_data->dlg.hpane), NODE_WIDTH*2); -#endif /* repaint the comment area because when moving the pane position thre are times that the expose_event_comments is not called */ gdk_draw_pixmap(user_data->dlg.draw_area_comments->window, user_data->dlg.draw_area_comments->style->fg_gc[GTK_WIDGET_STATE(widget)], @@ -1397,6 +1394,7 @@ user_data->dlg.draw_area_comments->allocation.height); return TRUE; } +#endif /****************************************************************************/ static gint v_scrollbar_changed(GtkWidget *widget _U_, gpointer data) @@ -1424,7 +1422,6 @@ GtkWidget *viewport; GtkWidget *scroll_window_comments; GtkWidget *viewport_comments; - GValue value = { 0, }; hbox=gtk_hbox_new(FALSE, 0); gtk_widget_show(hbox); @@ -1501,17 +1498,13 @@ user_data->dlg.hpane = gtk_hpaned_new(); gtk_paned_pack1(GTK_PANED (user_data->dlg.hpane), scroll_window, TRUE, TRUE); gtk_paned_pack2(GTK_PANED (user_data->dlg.hpane), scroll_window_comments, FALSE, TRUE); - +#if GTK_MAJOR_VERSION >= 2 SIGNAL_CONNECT(user_data->dlg.hpane, "notify::position", pane_callback, user_data); - +#endif gtk_widget_show(user_data->dlg.hpane); gtk_box_pack_start(GTK_BOX(hbox), user_data->dlg.hpane, TRUE, TRUE, 0); -#if GTK_MAJOR_VERSION >= 2 - gtk_container_child_get_property(GTK_CONTAINER(user_data->dlg.hpane), scroll_window, "resize", &value); -#endif - /* create the associated v_scrollbar */ user_data->dlg.v_scrollbar_adjustment=(GtkAdjustment *)gtk_adjustment_new(0,0,0,0,0,0); user_data->dlg.v_scrollbar=gtk_vscrollbar_new(user_data->dlg.v_scrollbar_adjustment);
- Follow-Ups:
- SV: SV: [Ethereal-dev] Voip Graph analysis enhancement
- From: Anders Broman
- SV: SV: [Ethereal-dev] Voip Graph analysis enhancement
- References:
- RE: SV: [Ethereal-dev] Voip Graph analysis enhancement
- From: packet steve
- RE: SV: [Ethereal-dev] Voip Graph analysis enhancement
- Prev by Date: RE: SV: [Ethereal-dev] Voip Graph analysis enhancement
- Next by Date: [Ethereal-dev] New asn.1 based TCAP dissector.
- Previous by thread: RE: SV: [Ethereal-dev] Voip Graph analysis enhancement
- Next by thread: SV: SV: [Ethereal-dev] Voip Graph analysis enhancement
- Index(es):