"Fossies" - the Fresh Open Source Software Archive  

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

ui_utils.h  (etherape-0.9.17):ui_utils.h  (etherape-0.9.18)
skipping to change at line 24 skipping to change at line 24
* 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/>.
* *
* ui_utils: helper gui routines * ui_utils: helper gui routines
*/ */
#ifndef UI_UTILS_H #ifndef UI_UTILS_H
#define UI_UTILS_H #define UI_UTILS_H
#include "appdata.h" #include "appdata.h"
#include <gtk/gtkbutton.h> #include <gtk/gtk.h>
#include <gtk/gtkclist.h>
#include <gtk/gtkcheckmenuitem.h>
#define MAX_C(a,b) ((a) > (b) ? (a) : (b)) #define MAX_C(a,b) ((a) > (b) ? (a) : (b))
#define MIN_C(a,b) ((a) > (b) ? (a) : (b)) #define MIN_C(a,b) ((a) > (b) ? (a) : (b))
#define LUMINANCE(r,g,b) ((MAX_C( (double)(r)/0xFFFF, MAX_C( (double)(g)/0xFFFF, \ #define LUMINANCE(r,g,b) ((MAX_C( (double)(r)/0xFFFF, MAX_C( (double)(g)/0xFFFF, \
(double)(b)/0xFFFF)) + \ (double)(b)/0xFFFF)) + \
MIN_C( (double)(r)/0xFFFF, MIN_C( (double)(g)/0xFFFF, \ MIN_C( (double)(r)/0xFFFF, MIN_C( (double)(g)/0xFFFF, \
(double)(b)/0xFFFF))) / 2.0) (double)(b)/0xFFFF))) / 2.0)
/* returns a newly allocated string with a formatted traffic */ /* returns a newly allocated string with a formatted traffic */
gchar *traffic_to_str(gdouble traffic, gboolean is_speed); gchar *traffic_to_str(gdouble traffic, gboolean is_speed);
/* registers the named glade widget on the specified object */ /* registers the named glade widget on the specified object */
void register_glade_widget(GladeXML *xm, GObject *tgt, const gchar *widgetName); void register_glade_widget(GtkBuilder *bldr, GtkWidget *tgt, const gchar *widget Name);
/* changes text of label lblname on window wnd */ /* changes text of label lblname on window wnd */
void update_gtklabel(GtkWidget *wnd, const gchar *lblname, const gchar *value); void update_gtklabel(GtkWidget *wnd, const gchar *lblname, const gchar *value);
/* show hide widget named lblname on window wnd */ /* show hide widget named lblname on window wnd */
void show_widget(GtkWidget *wnd, const gchar *lblname); void show_widget(GtkWidget *wnd, const gchar *lblname);
void hide_widget(GtkWidget *wnd, const gchar *lblname); void hide_widget(GtkWidget *wnd, const gchar *lblname);
/* creates a new text column with a specific title, column number colno and /* creates a new text column with a specific title, column number colno and
* adds it to treeview gv. If r_just true the column is right justified */ * adds it to treeview gv. If r_just true the column is right justified */
 End of changes. 2 change blocks. 
4 lines changed or deleted 2 lines changed or added

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