"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/node_windows.c" between
etherape-0.9.17.tar.gz and etherape-0.9.18.tar.gz

About: EtherApe is a GNOME/pcap-based graphical network monitor (etherman clone).

node_windows.c  (etherape-0.9.17):node_windows.c  (etherape-0.9.18)
skipping to change at line 50 skipping to change at line 50
static GtkWidget *nodes_wnd = NULL; /* Ptr to nodes window */ static GtkWidget *nodes_wnd = NULL; /* Ptr to nodes window */
static GtkCheckMenuItem *nodes_check = NULL; /* Ptr to nodes menu */ static GtkCheckMenuItem *nodes_check = NULL; /* Ptr to nodes menu */
/* private functions */ /* private functions */
static void nodes_table_clear(GtkWidget *window); static void nodes_table_clear(GtkWidget *window);
static void nodes_table_update(GtkWidget *window); static void nodes_table_update(GtkWidget *window);
void nodes_wnd_show(void) void nodes_wnd_show(void)
{ {
nodes_wnd = glade_xml_get_widget (appdata.xml, "nodes_wnd"); nodes_wnd = GTK_WIDGET(gtk_builder_get_object(appdata.xml, "nodes_wnd"));
nodes_check = GTK_CHECK_MENU_ITEM(glade_xml_get_widget (appdata.xml, "nodes_ch nodes_check = GTK_CHECK_MENU_ITEM(gtk_builder_get_object(appdata.xml, "nodes_c
eck")); heck"));
if (DEBUG_ENABLED) if (DEBUG_ENABLED)
{ {
gchar *nodemsg = nodes_catalog_dump(); gchar *nodemsg = nodes_catalog_dump();
g_log(G_LOG_DOMAIN,G_LOG_LEVEL_MESSAGE, "%s", nodemsg); g_log(G_LOG_DOMAIN,G_LOG_LEVEL_MESSAGE, "%s", nodemsg);
g_free(nodemsg); g_free(nodemsg);
} }
if (!nodes_wnd || gtk_widget_get_visible(nodes_wnd)) if (!nodes_wnd || gtk_widget_get_visible(nodes_wnd))
return; return;
skipping to change at line 199 skipping to change at line 199
{ {
GtkTreeView *gv; GtkTreeView *gv;
GtkListStore *gls; GtkListStore *gls;
GtkTreeModel *sort_model; GtkTreeModel *sort_model;
int i; int i;
/* get the treeview */ /* get the treeview */
gv = retrieve_treeview(window); gv = retrieve_treeview(window);
if (!gv) if (!gv)
{ {
gv = GTK_TREE_VIEW (glade_xml_get_widget (appdata.xml, "nodes_table")); gv = GTK_TREE_VIEW (gtk_builder_get_object (appdata.xml, "nodes_table"));
if (!gv) if (!gv)
{ {
g_critical("can't find nodes_table"); g_critical("can't find nodes_table");
return NULL; return NULL;
} }
register_treeview(window, gv); register_treeview(window, gv);
} }
sort_model = gtk_tree_view_get_model(gv); sort_model = gtk_tree_view_get_model(gv);
if (sort_model) if (sort_model)
skipping to change at line 414 skipping to change at line 414
void on_nodes_check_toggled(GtkCheckMenuItem *checkmenuitem, gpointer data) void on_nodes_check_toggled(GtkCheckMenuItem *checkmenuitem, gpointer data)
{ {
if (gtk_check_menu_item_get_active(checkmenuitem)) if (gtk_check_menu_item_get_active(checkmenuitem))
nodes_wnd_show(); nodes_wnd_show();
else else
nodes_wnd_hide(); nodes_wnd_hide();
} }
void on_nodes_toolbar_button_clicked(void) void on_nodes_toolbar_button_clicked(void)
{ {
GtkWidget *nodes_check = glade_xml_get_widget (appdata.xml, "nodes_check"); GtkWidget *nodes_check = GTK_WIDGET(gtk_builder_get_object(appdata.xml, "nodes _check"));
if (!nodes_check) if (!nodes_check)
return; return;
gtk_menu_item_activate (GTK_MENU_ITEM (nodes_check)); gtk_menu_item_activate(GTK_MENU_ITEM (nodes_check));
} }
/* double click on row */ /* double click on row */
void on_nodes_table_row_activated(GtkTreeView *gv, void on_nodes_table_row_activated(GtkTreeView *gv,
GtkTreePath *sorted_path, GtkTreePath *sorted_path,
GtkTreeViewColumn *column, GtkTreeViewColumn *column,
gpointer data) gpointer data)
{ {
GtkTreeModel *sort_model; GtkTreeModel *sort_model;
GtkTreeModel *gls; GtkTreeModel *gls;
 End of changes. 4 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)