Ethereal-dev: Re: SV: [Ethereal-dev] [PATCH] Voip Calls

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Javier Acuña" <javier.acuna@xxxxxxxxxx>
Date: Fri, 10 Jun 2005 17:32:57 -0400
Hi Anders

I'm sorry, I missed that mail exchange. Here I'm sending a patch with the following:

cic 
wiki link (in english)
close button for the window that has the wiki link

I believe the link to the wiki is important because it is no the wiki that it is explained the meaning of each column.
I hope it's OK this time

Best Regards
Javier  




________________________________________________________________

Mensaje enviado desde el Servicio Webmail del Dominio sixbell.cl


 
                   


_____________________________
La informacion contenida en esta transmision es confidencial, y no puede ser usada por otras personas que su(s) destinatario(s). El uso no autorizado de la informacion contenida en esta transmision puede ser sancionado. Si ha recibido esta transmision por error, por favor destruyala y notifique al remitente telefonicamente, con cobro revertido o via e-mail.

The information contained in this transmission is privileged, and may not be used by any person other than its addressee(s). Unauthorized use of the information contained in this transmission may be punished  by law.  If received in error, please destroy and notify the sender by calling collect or by e-mail.
_____________________________
--- /home/javier/source/gtk/voip_calls_dlg.c	2005-06-10 14:39:43.000000000 -0400
+++ /home/javier/my_source/gtk/voip_calls_dlg.c	2005-06-10 17:23:57.000000000 -0400
@@ -333,13 +333,9 @@
 	g_string_free(filter_string_fwd, TRUE);
 }
 
-static void spa_bt_clicked( GtkButton *button _U_)
-{
-    browser_open_url("http://wiki.ethereal.com/VoIP_20calls_20spanish";);
-}
-
-static void en_bt_clicked( GtkButton *button _U_)
+static void wiki_bt_clicked( GtkButton *button _U_)
 {
+    
     browser_open_url("http://wiki.ethereal.com/VoIP_20calls";);
 } 
 
@@ -349,36 +345,35 @@
 {
 /*-- Declare the GTK Widgets used in the program --*/
   GtkWidget *window;
-  GtkWidget *spa_button;
-  GtkWidget *en_button;
+  GtkWidget *bt_wiki;
   GtkWidget *hbox;
+  GtkWidget *bt_close;
+
 
   /*-- Create the hbox --*/
   hbox = gtk_hbox_new(FALSE, 0);
   
 
-
   /*-- Create the new window --*/
   window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
 
-  /*-- Create a button --*/
-  spa_button = gtk_button_new_with_label("Go to spanish help page");
-  en_button = gtk_button_new_with_label("Go to english help page");
+  /*-- Create the buttons --*/
+  bt_wiki = gtk_button_new_with_label("Go to Wiki help page");
+  bt_close = BUTTON_NEW_FROM_STOCK(GTK_STOCK_CLOSE);
+  window_set_cancel_button(window, bt_close, window_cancel_button_cb);
   
   /*-- Pack all the radio buttons into the hbox --*/
-  gtk_box_pack_start(GTK_BOX(hbox), spa_button, TRUE, TRUE, 2);
-  gtk_box_pack_start(GTK_BOX(hbox), en_button, TRUE, TRUE, 2);
+  gtk_box_pack_start(GTK_BOX(hbox), bt_wiki, TRUE, TRUE, 2);
+  gtk_box_pack_start(GTK_BOX(hbox), bt_close, TRUE, TRUE, 2);
 
   /*-- Add the hbox to the window --*/
   gtk_container_add(GTK_CONTAINER(window), hbox);
-    
 
-  SIGNAL_CONNECT(spa_button, "clicked", spa_bt_clicked, NULL);
-  SIGNAL_CONNECT(en_button, "clicked", en_bt_clicked, NULL);
+  SIGNAL_CONNECT(button, "clicked", wiki_bt_clicked, NULL);
 
   /*-- Display the widgets --*/
-  gtk_widget_show(en_button);
-  gtk_widget_show(spa_button);
+  gtk_widget_show(bt_close);
+  gtk_widget_show(bt_wiki);
   gtk_widget_show(hbox);
   gtk_widget_show(window);