add help button pointing to the wiki page
svn path=/trunk/; revision=14611
This commit is contained in:
parent
ef20416f66
commit
f20b5b0a32
1 changed files with 13 additions and 1 deletions
|
@ -334,6 +334,13 @@ voip_calls_on_filter (GtkButton *button _U_,
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
|
static void help_bt_clicked( GtkButton *button _U_)
|
||||||
|
{
|
||||||
|
browser_open_url("http://wiki.ethereal.com/VoIP_20calls");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
on_graph_bt_clicked (GtkButton *button _U_,
|
on_graph_bt_clicked (GtkButton *button _U_,
|
||||||
gpointer user_data _U_)
|
gpointer user_data _U_)
|
||||||
|
@ -526,6 +533,7 @@ static void voip_calls_dlg_create (void)
|
||||||
GtkWidget *scrolledwindow;
|
GtkWidget *scrolledwindow;
|
||||||
GtkWidget *hbuttonbox;
|
GtkWidget *hbuttonbox;
|
||||||
GtkWidget *bt_close;
|
GtkWidget *bt_close;
|
||||||
|
GtkWidget *bt_help;
|
||||||
GtkTooltips *tooltips = gtk_tooltips_new();
|
GtkTooltips *tooltips = gtk_tooltips_new();
|
||||||
|
|
||||||
gchar *titles[NUM_COLS] = {"Start Time", "Stop Time", "Initial Speaker", "From", "To", "Protocol", "Packets", "State", "Comments"};
|
gchar *titles[NUM_COLS] = {"Start Time", "Stop Time", "Initial Speaker", "From", "To", "Protocol", "Packets", "State", "Comments"};
|
||||||
|
@ -614,6 +622,11 @@ static void voip_calls_dlg_create (void)
|
||||||
gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox), GTK_BUTTONBOX_SPREAD);
|
gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox), GTK_BUTTONBOX_SPREAD);
|
||||||
gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbuttonbox), 30);
|
gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbuttonbox), 30);
|
||||||
|
|
||||||
|
bt_help = BUTTON_NEW_FROM_STOCK(GTK_STOCK_HELP);
|
||||||
|
gtk_container_add (GTK_CONTAINER (hbuttonbox), bt_help);
|
||||||
|
SIGNAL_CONNECT(bt_help, "clicked", help_bt_clicked, NULL);
|
||||||
|
gtk_tooltips_set_tip (tooltips, bt_help, "Go to the help page", NULL);
|
||||||
|
|
||||||
/*bt_unselect = gtk_button_new_with_label ("Unselect");
|
/*bt_unselect = gtk_button_new_with_label ("Unselect");
|
||||||
gtk_container_add (GTK_CONTAINER (hbuttonbox), bt_unselect);
|
gtk_container_add (GTK_CONTAINER (hbuttonbox), bt_unselect);
|
||||||
gtk_tooltips_set_tip (tooltips, bt_unselect, "Unselect this conversation", NULL);*/
|
gtk_tooltips_set_tip (tooltips, bt_unselect, "Unselect this conversation", NULL);*/
|
||||||
|
@ -624,7 +637,6 @@ static void voip_calls_dlg_create (void)
|
||||||
|
|
||||||
bt_graph = gtk_button_new_with_label("Graph");
|
bt_graph = gtk_button_new_with_label("Graph");
|
||||||
gtk_container_add(GTK_CONTAINER(hbuttonbox), bt_graph);
|
gtk_container_add(GTK_CONTAINER(hbuttonbox), bt_graph);
|
||||||
gtk_widget_show(bt_graph);
|
|
||||||
SIGNAL_CONNECT(bt_graph, "clicked", on_graph_bt_clicked, NULL);
|
SIGNAL_CONNECT(bt_graph, "clicked", on_graph_bt_clicked, NULL);
|
||||||
gtk_tooltips_set_tip (tooltips, bt_graph, "Show a flow graph of the selected calls.", NULL);
|
gtk_tooltips_set_tip (tooltips, bt_graph, "Show a flow graph of the selected calls.", NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue