
jan at nessus
Feb 1, 2007, 4:29 PM
Post #1 of 1
(730 views)
Permalink
|
|
NessusClient/nessus monitor_dialog.c,1.3,1.4
|
|
Update of /usr/local/cvs/NessusClient/nessus In directory raccoon.nessus.org:/tmp/cvs-serv95213 Modified Files: monitor_dialog.c Log Message: Replacing GtkPixmap by GtkImage, same time getting rid of xstuff.h dependency. Index: monitor_dialog.c =================================================================== RCS file: /usr/local/cvs/NessusClient/nessus/monitor_dialog.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- monitor_dialog.c 11 Sep 2005 12:39:00 -0000 1.3 +++ monitor_dialog.c 2 Feb 2007 00:29:43 -0000 1.4 @@ -37,7 +37,6 @@ #include "context.h" #include "preferences.h" #include "attack.h" -#include "xstuff.h" #include "comm.h" #include "auth.h" #include "parser.h" @@ -373,8 +372,8 @@ GtkWidget * button; GtkWidget * separator; GtkWidget * box, * hbox; - GtkStyle * style; - GtkWidget * pixmapwid; + GdkPixbuf *pixbuf; + GtkWidget *img; GList * dlist; GtkWidget * window = arg_get_value(ctrls,"WINDOW"); struct context * context = arg_get_value(ctrls, "CONTEXT"); @@ -403,11 +402,11 @@ gtk_box_pack_start(GTK_BOX(hbox), box, FALSE, FALSE, 0); if(F_show_pixmaps) { - style = gtk_widget_get_style(window); - pixmapwid = make_pixmap(window, &style->bg[GTK_STATE_NORMAL], (gchar**)computer_xpm); - - gtk_box_pack_start(GTK_BOX(box), pixmapwid, FALSE, FALSE, 0); - gtk_widget_show(pixmapwid); + pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)computer_xpm); + img = gtk_image_new_from_pixbuf(pixbuf); + + gtk_box_pack_start(GTK_BOX(box), img, FALSE, FALSE, 0); + gtk_widget_show(img); } label = gtk_label_new(hostname); gtk_object_set_data(GTK_OBJECT(item), "label", label); _______________________________________________ Nessus-cvs mailing list Nessus-cvs [at] list http://mail.nessus.org/mailman/listinfo/nessus-cvs
|