"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/callbacks.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).

callbacks.c  (etherape-0.9.17):callbacks.c  (etherape-0.9.18)
skipping to change at line 23 skipping to change at line 23
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #endif
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <libgnomecanvas/libgnomecanvas.h> #include <goocanvas.h>
#include "appdata.h" #include "appdata.h"
#include "callbacks.h" #include "callbacks.h"
#include "diagram.h" #include "diagram.h"
#include "preferences.h" #include "preferences.h"
void on_canvas1_size_allocate(GtkWidget *widget, void on_canvas1_size_allocate(GtkWidget *widget,
GtkAllocation *allocation, gpointer user_data) GtkAllocation *allocation, gpointer user_data)
{ {
gnome_canvas_set_scroll_region(GNOME_CANVAS(widget), resize_diagram(allocation);
-allocation->width / 2,
-allocation->height / 2,
allocation->width / 2,
allocation->height / 2);
ask_reposition(FALSE);
redraw_canvas_background(widget);
update_diagram(widget);
} }
/* TODO this is not necessary, can be set directly in etherape.glade */ /* TODO this is not necessary, can be set directly in .ui */
gboolean gboolean on_node_popup_motion_notify_event(GtkWidget *widget,
on_node_popup_motion_notify_event (GtkWidget * widget,
GdkEventMotion * event, gpointer user_data)
GdkEventMotion *event,
gpointer user_data)
{ {
gtk_widget_destroy (widget); gtk_widget_destroy (widget);
return FALSE; return FALSE;
} }
gboolean gboolean on_name_motion_notify_event(GtkWidget *widget,
on_name_motion_notify_event (GtkWidget * widget,
GdkEventMotion * event, gpointer user_data) GdkEventMotion *event,
gpointer user_da
ta)
{ {
g_message ("Motion in name label"); g_message ("Motion in name label");
return FALSE; return FALSE;
} }
 End of changes. 6 change blocks. 
18 lines changed or deleted 16 lines changed or added

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