"Fossies" - the Fresh Open Source Software Archive

Member "etherape-0.9.18/src/callbacks.c" (3 Jun 2018, 1501 Bytes) of package /linux/privat/etherape-0.9.18.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "callbacks.c" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 0.9.17_vs_0.9.18.

    1 /* EtherApe
    2  * Copyright (C) 2000 Juan Toledo, Riccardo Ghetta
    3  *
    4  * This program is free software; you can redistribute it and/or modify
    5  * it under the terms of the GNU General Public License as published by
    6  * the Free Software Foundation; either version 2 of the License, or
    7  * (at your option) any later version.
    8  *
    9  * This program is distributed in the hope that it will be useful,
   10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12  * GNU General Public License for more details.
   13  *
   14  * You should have received a copy of the GNU General Public License
   15  * along with this program; if not, see <http://www.gnu.org/licenses/>.
   16  */
   17 
   18 #ifdef HAVE_CONFIG_H
   19 #include <config.h>
   20 #endif
   21 
   22 #include <gtk/gtk.h>
   23 #include <goocanvas.h>
   24 #include "appdata.h"
   25 #include "callbacks.h"
   26 #include "diagram.h"
   27 #include "preferences.h"
   28 
   29 void on_canvas1_size_allocate(GtkWidget *widget,
   30                   GtkAllocation *allocation, gpointer user_data)
   31 {
   32     resize_diagram(allocation);
   33 }
   34 
   35 /* TODO this is not necessary, can be set directly in .ui */
   36 gboolean on_node_popup_motion_notify_event(GtkWidget *widget,
   37                                                                                  GdkEventMotion *event,
   38                                                                                      gpointer user_data)
   39 {
   40   gtk_widget_destroy (widget);
   41   return FALSE;
   42 }
   43 
   44 gboolean on_name_motion_notify_event(GtkWidget *widget,
   45                                                                      GdkEventMotion *event,
   46                                                                          gpointer user_data)
   47 {
   48   g_message ("Motion in name label");
   49   return FALSE;
   50 }