2012-11-30 14:57:50 +00:00
|
|
|
/* addr_resolution_dlg.c
|
2013-05-22 23:28:11 +00:00
|
|
|
* Show current address resolution as a hosts file
|
2012-11-30 14:57:50 +00:00
|
|
|
*
|
|
|
|
* Copyright 2012 Anders Broman <anders.broman@ericsson.com>
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#include <epan/addr_resolv.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "ui/gtk/dlg_utils.h"
|
2013-04-07 17:59:07 +00:00
|
|
|
#include "ui/gtk/font_utils.h"
|
2012-11-30 14:57:50 +00:00
|
|
|
#include "ui/gtk/gui_utils.h"
|
|
|
|
#include "ui/gtk/main.h"
|
2013-05-22 23:28:11 +00:00
|
|
|
#include "ui/gtk/addr_resolution_dlg.h"
|
2012-11-30 14:57:50 +00:00
|
|
|
|
|
|
|
static GtkWidget *addr_resolution_dlg_w = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
#define HOSTNAME_POS 48
|
|
|
|
#define ADDRSTRLEN 46 /* Covers IPv4 & IPv6 */
|
|
|
|
#define ADDRESS_STR_MAX 1024
|
|
|
|
|
2013-08-02 15:05:00 +00:00
|
|
|
static void
|
|
|
|
eth_hash_to_texbuff(gpointer key, gpointer value, gpointer user_data)
|
|
|
|
{
|
2014-08-05 20:10:44 +00:00
|
|
|
gchar string_buff[ADDRESS_STR_MAX];
|
|
|
|
GtkTextBuffer *buffer = (GtkTextBuffer*)user_data;
|
|
|
|
gint64 eth_as_gint64 = *(gint64*)key;
|
|
|
|
hashether_t* tp = (hashether_t*)value;
|
|
|
|
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "%.2X:%.2X:%.2X:%.2X:%.2X:%.2X Status: %u %s %s\n",
|
|
|
|
(guint8)(eth_as_gint64>>40&0xff),
|
|
|
|
(guint8)(eth_as_gint64>>32&0xff),
|
|
|
|
(guint8)((eth_as_gint64>>24)&0xff),
|
|
|
|
(guint8)((eth_as_gint64>>16)&0xff),
|
|
|
|
(guint8)((eth_as_gint64>>8)&0xff),
|
|
|
|
(guint8)(eth_as_gint64&0xff),
|
2015-02-12 01:13:36 +00:00
|
|
|
get_hash_ether_status(tp),
|
|
|
|
get_hash_ether_hexaddr(tp),
|
|
|
|
get_hash_ether_resolved_name(tp));
|
2014-08-05 20:10:44 +00:00
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
2013-08-02 15:05:00 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
static void
|
|
|
|
manuf_hash_to_texbuff(gpointer key, gpointer value, gpointer user_data)
|
|
|
|
{
|
2014-08-05 20:10:44 +00:00
|
|
|
gchar string_buff[ADDRESS_STR_MAX];
|
|
|
|
GtkTextBuffer *buffer = (GtkTextBuffer*)user_data;
|
2015-02-12 03:16:01 +00:00
|
|
|
hashmanuf_t *manuf = (hashmanuf_t*)value;
|
2014-08-05 20:10:44 +00:00
|
|
|
int eth_as_gint = *(int*)key;
|
2013-08-02 15:05:00 +00:00
|
|
|
|
2015-02-12 03:16:01 +00:00
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "%.2X:%.2X:%.2X %s\n",eth_as_gint>>16, (eth_as_gint>>8)&0xff, eth_as_gint&0xff, get_hash_manuf_resolved_name(manuf));
|
2014-08-05 20:10:44 +00:00
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
2013-08-02 15:05:00 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
wka_hash_to_texbuff(gpointer key, gpointer value, gpointer user_data)
|
|
|
|
{
|
2014-08-05 20:10:44 +00:00
|
|
|
gchar string_buff[ADDRESS_STR_MAX];
|
|
|
|
GtkTextBuffer *buffer = (GtkTextBuffer*)user_data;
|
|
|
|
gchar *name = (gchar *)value;
|
|
|
|
gint64 eth_as_gint64 = *(gint64*)key;
|
|
|
|
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "%.2X:%.2X:%.2X:%.2X:%.2X:%.2X %s\n",
|
|
|
|
(guint8)(eth_as_gint64>>40&0xff),
|
|
|
|
(guint8)(eth_as_gint64>>32&0xff),
|
|
|
|
(guint8)((eth_as_gint64>>24)&0xff),
|
|
|
|
(guint8)((eth_as_gint64>>16)&0xff),
|
|
|
|
(guint8)((eth_as_gint64>>8)&0xff),
|
|
|
|
(guint8)(eth_as_gint64&0xff),
|
|
|
|
name);
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
2013-08-02 15:05:00 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-08-05 16:36:24 +00:00
|
|
|
static void
|
|
|
|
serv_port_hash_to_texbuff(gpointer key, gpointer value, gpointer user_data)
|
|
|
|
{
|
2014-08-05 20:10:44 +00:00
|
|
|
gchar string_buff[ADDRESS_STR_MAX];
|
|
|
|
GtkTextBuffer *buffer = (GtkTextBuffer*)user_data;
|
|
|
|
serv_port_t *serv_port_table = (serv_port_t *)value;
|
|
|
|
int port = *(int*)key;
|
2013-08-05 16:36:24 +00:00
|
|
|
|
2014-08-05 20:10:44 +00:00
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "Port %u \n"" TCP %s\n"" UDP %s\n"" SCTP %s\n"" DCCP %s\n",
|
|
|
|
port,
|
|
|
|
serv_port_table->tcp_name,
|
|
|
|
serv_port_table->udp_name,
|
|
|
|
serv_port_table->sctp_name,
|
|
|
|
serv_port_table->dccp_name);
|
2013-08-05 16:36:24 +00:00
|
|
|
|
2014-08-05 20:10:44 +00:00
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
2013-08-05 16:36:24 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-08-11 19:02:26 +00:00
|
|
|
static void
|
|
|
|
ipv4_hash_table_to_texbuff(gpointer key, gpointer value, gpointer user_data)
|
|
|
|
{
|
2014-08-05 20:10:44 +00:00
|
|
|
gchar string_buff[ADDRESS_STR_MAX];
|
|
|
|
GtkTextBuffer *buffer = (GtkTextBuffer*)user_data;
|
|
|
|
hashipv4_t *ipv4_hash_table_entry = (hashipv4_t *)value;
|
|
|
|
int addr = GPOINTER_TO_UINT(key);
|
2013-08-11 19:02:26 +00:00
|
|
|
|
2014-08-05 20:10:44 +00:00
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "Key:0x%x IP: %s, Name: %s\n",
|
|
|
|
addr,
|
|
|
|
ipv4_hash_table_entry->ip,
|
|
|
|
ipv4_hash_table_entry->name);
|
2013-08-11 19:02:26 +00:00
|
|
|
|
2014-08-05 20:10:44 +00:00
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
2013-08-11 19:02:26 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-09-11 19:22:24 +00:00
|
|
|
static void
|
2013-09-11 19:49:16 +00:00
|
|
|
ipv4_hash_table_resolved_to_texbuff(gpointer key _U_, gpointer value, gpointer user_data)
|
2013-09-11 19:22:24 +00:00
|
|
|
{
|
2014-08-05 20:10:44 +00:00
|
|
|
gchar string_buff[ADDRESS_STR_MAX];
|
|
|
|
GtkTextBuffer *buffer = (GtkTextBuffer*)user_data;
|
|
|
|
hashipv4_t *ipv4_hash_table_entry = (hashipv4_t *)value;
|
2013-09-11 19:22:24 +00:00
|
|
|
|
2014-08-05 20:10:44 +00:00
|
|
|
if((ipv4_hash_table_entry->flags & DUMMY_ADDRESS_ENTRY)== 0){
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "%s\t%s\n",
|
|
|
|
ipv4_hash_table_entry->ip,
|
|
|
|
ipv4_hash_table_entry->name);
|
2013-09-11 19:22:24 +00:00
|
|
|
|
2014-08-05 20:10:44 +00:00
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
}
|
2013-09-11 19:22:24 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-08-18 19:02:48 +00:00
|
|
|
static void
|
2013-08-18 19:18:20 +00:00
|
|
|
ipv6_hash_table_to_texbuff(gpointer key _U_, gpointer value, gpointer user_data)
|
2013-08-18 19:02:48 +00:00
|
|
|
{
|
2014-08-05 20:10:44 +00:00
|
|
|
gchar string_buff[ADDRESS_STR_MAX];
|
|
|
|
GtkTextBuffer *buffer = (GtkTextBuffer*)user_data;
|
|
|
|
hashipv6_t *ipv6_hash_table_entry = (hashipv6_t *)value;
|
2013-08-18 19:02:48 +00:00
|
|
|
|
2014-08-05 20:10:44 +00:00
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "IP: %s, Name: %s\n",
|
|
|
|
ipv6_hash_table_entry->ip6,
|
|
|
|
ipv6_hash_table_entry->name);
|
2013-08-18 19:02:48 +00:00
|
|
|
|
2014-08-05 20:10:44 +00:00
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
2013-08-11 19:02:26 +00:00
|
|
|
|
2013-08-18 19:02:48 +00:00
|
|
|
}
|
2013-09-11 19:22:24 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
ipv6_hash_table_resolved_to_texbuff(gpointer key _U_, gpointer value, gpointer user_data)
|
|
|
|
{
|
2014-08-05 20:10:44 +00:00
|
|
|
gchar string_buff[ADDRESS_STR_MAX];
|
|
|
|
GtkTextBuffer *buffer = (GtkTextBuffer*)user_data;
|
|
|
|
hashipv6_t *ipv6_hash_table_entry = (hashipv6_t *)value;
|
2013-09-11 19:22:24 +00:00
|
|
|
|
2014-08-05 20:10:44 +00:00
|
|
|
if((ipv6_hash_table_entry->flags & DUMMY_ADDRESS_ENTRY)== 0){
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "%s\t%s\n",
|
|
|
|
ipv6_hash_table_entry->ip6,
|
|
|
|
ipv6_hash_table_entry->name);
|
2013-09-11 19:22:24 +00:00
|
|
|
|
2014-08-05 20:10:44 +00:00
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
}
|
2013-09-11 19:22:24 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-11-30 14:57:50 +00:00
|
|
|
static void
|
|
|
|
addres_resolution_to_texbuff(GtkTextBuffer *buffer)
|
|
|
|
{
|
2013-04-07 17:59:07 +00:00
|
|
|
gchar string_buff[ADDRESS_STR_MAX];
|
2014-08-05 20:10:44 +00:00
|
|
|
GHashTable *manuf_hashtable;
|
|
|
|
GHashTable *wka_hashtable;
|
|
|
|
GHashTable *eth_hashtable;
|
|
|
|
GHashTable *serv_port_hashtable;
|
|
|
|
GHashTable *ipv4_hash_table;
|
|
|
|
GHashTable *ipv6_hash_table;
|
2013-04-07 17:59:07 +00:00
|
|
|
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "# Hosts information in Wireshark \n#\n");
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "# Host data gathered from %s\n\n", cfile.filename);
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
|
|
|
|
/* Dump the v4 addresses first, then v6 */
|
2014-08-05 20:10:44 +00:00
|
|
|
ipv4_hash_table = get_ipv4_hash_table();
|
|
|
|
if(ipv4_hash_table){
|
|
|
|
g_hash_table_foreach( ipv4_hash_table, ipv4_hash_table_resolved_to_texbuff, buffer);
|
|
|
|
}
|
|
|
|
|
|
|
|
ipv6_hash_table = get_ipv6_hash_table();
|
|
|
|
if(ipv6_hash_table){
|
|
|
|
g_hash_table_foreach( ipv6_hash_table, ipv6_hash_table_resolved_to_texbuff, buffer);
|
|
|
|
}
|
|
|
|
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "\n\n# Address resolution IPv4 Hash table \n#\n");
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
|
|
|
|
if(ipv4_hash_table){
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "# With %i entries\n#\n", g_hash_table_size(ipv4_hash_table));
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
g_hash_table_foreach( ipv4_hash_table, ipv4_hash_table_to_texbuff, buffer);
|
|
|
|
}
|
|
|
|
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "\n\n# Address resolution IPv6 Hash table \n#\n");
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
|
|
|
|
if(ipv6_hash_table){
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "# With %i entries\n#\n", g_hash_table_size(ipv6_hash_table));
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
g_hash_table_foreach( ipv6_hash_table, ipv6_hash_table_to_texbuff, buffer);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "\n\n# Port names information in Wireshark \n#\n");
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
|
|
|
|
serv_port_hashtable = get_serv_port_hashtable();
|
|
|
|
if(serv_port_hashtable){
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "# With %i entries\n#\n", g_hash_table_size(serv_port_hashtable));
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
g_hash_table_foreach( serv_port_hashtable, serv_port_hash_to_texbuff, buffer);
|
|
|
|
}
|
|
|
|
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "\n\n# Eth names information in Wireshark \n#\n");
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
|
|
|
|
eth_hashtable = get_eth_hashtable();
|
|
|
|
if(eth_hashtable){
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "# With %i entries\n#\n", g_hash_table_size(eth_hashtable));
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
g_hash_table_foreach( eth_hashtable, eth_hash_to_texbuff, buffer);
|
|
|
|
}
|
|
|
|
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "\n\n# Manuf information in Wireshark \n#\n");
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
|
|
|
|
manuf_hashtable = get_manuf_hashtable();
|
|
|
|
if(manuf_hashtable){
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "# With %i entries\n#\n", g_hash_table_size(manuf_hashtable));
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
g_hash_table_foreach( manuf_hashtable, manuf_hash_to_texbuff, buffer);
|
|
|
|
}
|
|
|
|
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "\n\n# wka information in Wireshark \n#\n");
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
|
|
|
|
wka_hashtable = get_wka_hashtable();
|
|
|
|
if(wka_hashtable){
|
|
|
|
g_snprintf(string_buff, ADDRESS_STR_MAX, "# With %i entries\n#\n", g_hash_table_size(wka_hashtable));
|
|
|
|
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
|
|
|
|
g_hash_table_foreach( wka_hashtable, wka_hash_to_texbuff, buffer);
|
|
|
|
}
|
2013-08-02 15:05:00 +00:00
|
|
|
|
|
|
|
|
2012-11-30 14:57:50 +00:00
|
|
|
}
|
2013-04-07 17:59:07 +00:00
|
|
|
|
2012-11-30 14:57:50 +00:00
|
|
|
void
|
|
|
|
addr_resolution_dlg (GtkAction *action _U_, gpointer data _U_)
|
|
|
|
{
|
|
|
|
|
2013-04-07 17:59:07 +00:00
|
|
|
GtkWidget *vbox;
|
|
|
|
GtkWidget *view;
|
|
|
|
GtkWidget *scroll;
|
|
|
|
GtkWidget *bbox;
|
|
|
|
GtkWidget *ok_bt, *cancel_bt, *help_bt;
|
|
|
|
GtkTextBuffer *buffer;
|
|
|
|
|
|
|
|
addr_resolution_dlg_w = dlg_window_new ("Address Resolution");
|
|
|
|
gtk_widget_set_size_request (addr_resolution_dlg_w, 750, 350);
|
|
|
|
gtk_window_set_resizable (GTK_WINDOW (addr_resolution_dlg_w), TRUE);
|
|
|
|
gtk_container_set_border_width (GTK_CONTAINER (addr_resolution_dlg_w), DLG_OUTER_MARGIN);
|
|
|
|
|
|
|
|
vbox = ws_gtk_box_new(GTK_ORIENTATION_VERTICAL, DLG_UNRELATED_SPACING, FALSE);
|
|
|
|
gtk_container_add (GTK_CONTAINER (addr_resolution_dlg_w), vbox);
|
|
|
|
gtk_widget_show (vbox);
|
|
|
|
|
|
|
|
view = gtk_text_view_new ();
|
|
|
|
gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(view), GTK_WRAP_WORD);
|
|
|
|
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
|
2013-07-26 16:19:00 +00:00
|
|
|
#if GTK_CHECK_VERSION(3, 0, 0)
|
|
|
|
gtk_widget_override_font(view, user_font_get_regular());
|
|
|
|
#else
|
2013-04-07 17:59:07 +00:00
|
|
|
gtk_widget_modify_font(view, user_font_get_regular());
|
2013-07-26 16:19:00 +00:00
|
|
|
#endif
|
2013-04-07 17:59:07 +00:00
|
|
|
gtk_widget_show (view);
|
|
|
|
|
|
|
|
scroll = gtk_scrolled_window_new(NULL, NULL);
|
|
|
|
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroll),
|
|
|
|
GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
|
|
|
|
gtk_container_add(GTK_CONTAINER(scroll), view);
|
|
|
|
gtk_widget_show(scroll);
|
|
|
|
gtk_box_pack_start(GTK_BOX (vbox), scroll, TRUE, TRUE, 0);
|
|
|
|
|
|
|
|
/* Get the address list */
|
|
|
|
addres_resolution_to_texbuff(buffer);
|
|
|
|
|
|
|
|
/* Button row. */
|
|
|
|
bbox = dlg_button_row_new (GTK_STOCK_OK, GTK_STOCK_CANCEL, GTK_STOCK_HELP, NULL);
|
|
|
|
gtk_box_pack_end (GTK_BOX(vbox), bbox, FALSE, FALSE, 0);
|
|
|
|
|
|
|
|
ok_bt = (GtkWidget *)g_object_get_data (G_OBJECT(bbox), GTK_STOCK_OK);
|
2014-07-31 04:35:06 +00:00
|
|
|
g_signal_connect(ok_bt, "clicked", G_CALLBACK(window_cancel_button_cb), addr_resolution_dlg_w); /* act as cxl */
|
2013-04-07 17:59:07 +00:00
|
|
|
gtk_widget_set_sensitive (ok_bt, TRUE);
|
|
|
|
|
|
|
|
cancel_bt = (GtkWidget *)g_object_get_data (G_OBJECT(bbox), GTK_STOCK_CANCEL);
|
|
|
|
window_set_cancel_button (addr_resolution_dlg_w, cancel_bt, window_cancel_button_cb);
|
|
|
|
|
|
|
|
help_bt = (GtkWidget *)g_object_get_data (G_OBJECT(bbox), GTK_STOCK_HELP);
|
2012-11-30 14:57:50 +00:00
|
|
|
#if 0
|
2013-04-07 17:59:07 +00:00
|
|
|
g_signal_connect (help_bt, "clicked",/* G_CALLBACK(topic_cb)*/NULL, /*(gpointer)HELP_MANUAL_ADDR_RESOLVE_DIALOG*/NULL);
|
2012-11-30 14:57:50 +00:00
|
|
|
#endif
|
2013-04-07 17:59:07 +00:00
|
|
|
gtk_widget_set_sensitive (help_bt, FALSE);
|
2012-11-30 14:57:50 +00:00
|
|
|
|
2013-04-07 17:59:07 +00:00
|
|
|
gtk_widget_grab_default (ok_bt);
|
|
|
|
/*g_signal_connect (addr_resolution_dlg_w, "delete_event", G_CALLBACK(window_delete_event_cb), NULL);*/
|
2012-11-30 14:57:50 +00:00
|
|
|
|
|
|
|
|
2013-04-07 17:59:07 +00:00
|
|
|
gtk_widget_show (addr_resolution_dlg_w);
|
2012-11-30 14:57:50 +00:00
|
|
|
}
|
|
|
|
|
2013-04-07 17:59:07 +00:00
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|