Main Page | Data Structures | File List | Data Fields | Globals

interface.c File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <bonobo.h>
#include <gnome.h>
#include "callbacks.h"
#include "interface.h"
#include "support.h"

Go to the source code of this file.

Defines

#define GLADE_HOOKUP_OBJECT(component, widget, name)
#define GLADE_HOOKUP_OBJECT_NO_REF(component, widget, name)   g_object_set_data (G_OBJECT (component), name, widget)

Functions

GtkWidget * create_window1 (void)
GtkWidget * create_about (void)


Define Documentation

#define GLADE_HOOKUP_OBJECT component,
widget,
name   ) 
 

Value:

g_object_set_data_full (G_OBJECT (component), name, \
    gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)

Definition at line 40 of file interface.c.

Referenced by create_window1().

#define GLADE_HOOKUP_OBJECT_NO_REF component,
widget,
name   )     g_object_set_data (G_OBJECT (component), name, widget)
 

Definition at line 44 of file interface.c.

Referenced by create_about(), and create_window1().


Function Documentation

GtkWidget* create_about void   ) 
 

Definition at line 705 of file interface.c.

References create_pixbuf(), and GLADE_HOOKUP_OBJECT_NO_REF.

Referenced by on_about1_activate().

00706 {
00707   const gchar *authors[] = {
00708     "Founder and lead developer:",
00709     "Fernando Apesteguia <fernape@users.sourceforge.net>\n",
00710     "Developers:",
00711     "Jokin Segundo <daedalvs@users.sourceforge.net>\n",
00712     "Website:",
00713     "M. Luz Lopez <mlopmar@users.sourceforge.net> ",
00714     "Julio Tejedor <jtejpal@users.sourceforge.net>",
00715     NULL
00716   };
00717   const gchar *documenters[] = {
00718     "Fernando Apesteguia <fernape@users.sourceforge.net>",
00719     "Jokin Segundo <daedalvs@users.sourceforge.net>",
00720     "M. Luz Lopez <mlopmar@users.sourceforge.net> ",
00721     "Julio Tejedor <jtejpal@users.sourceforge.net>",
00722     NULL
00723   };
00724   /* TRANSLATORS: Replace this string with your names, one name per line. */
00725   gchar *translators = _("translator_credits");
00726   GdkPixbuf *about_logo_pixbuf;
00727   GtkWidget *about;
00728   GdkPixbuf *about_icon_pixbuf;
00729 
00730   if (!strcmp (translators, "translator_credits"))
00731     translators = NULL;
00732   about_logo_pixbuf = create_pixbuf ("lkmonitor/lkm-logo.png");
00733   about = gnome_about_new ("lkmonitor", VERSION,
00734                         _("Copyright (c) Fernando Apesteguia"),
00735                         _("Linux Kernel Monitor"),
00736                         authors,
00737                         documenters,
00738                         translators,
00739                         about_logo_pixbuf);
00740   gtk_container_set_border_width (GTK_CONTAINER (about), 5);
00741   about_icon_pixbuf = create_pixbuf ("lkmonitor/lkm-logo.png");
00742   if (about_icon_pixbuf)
00743     {
00744       gtk_window_set_icon (GTK_WINDOW (about), about_icon_pixbuf);
00745       gdk_pixbuf_unref (about_icon_pixbuf);
00746     }
00747   gtk_window_set_type_hint (GTK_WINDOW (about), GDK_WINDOW_TYPE_HINT_DIALOG);
00748 
00749   /* Store pointers to all widgets, for use by lookup_widget(). */
00750   GLADE_HOOKUP_OBJECT_NO_REF (about, about, "about");
00751 
00752   return about;
00753 }

GtkWidget* create_window1 void   ) 
 

Definition at line 67 of file interface.c.

References create_pixbuf(), create_pixmap(), GLADE_HOOKUP_OBJECT, GLADE_HOOKUP_OBJECT_NO_REF, on_window1_destroy(), and window1.

Referenced by main().

00068 {
00069   GtkWidget *window1;
00070   GdkPixbuf *window1_icon_pixbuf;
00071   GtkWidget *vbox1;
00072   GtkWidget *menubar1;
00073   GtkWidget *nb_main;
00074   GtkWidget *fixed8;
00075   GtkWidget *image4;
00076   GtkWidget *lbl_processor;
00077   GtkWidget *lbl_vendor;
00078   GtkWidget *lbl_family;
00079   GtkWidget *lbl_model;
00080   GtkWidget *lbl_stepping;
00081   GtkWidget *lbl_Mhz;
00082   GtkWidget *lbl_cache;
00083   GtkWidget *lbl_fpu;
00084   GtkWidget *lbl_fpu_exception;
00085   GtkWidget *lbl_cpu_id_level;
00086   GtkWidget *lbl_wp;
00087   GtkWidget *lbl_bogomips;
00088   GtkWidget *scrolledwindow2;
00089   GtkWidget *viewport2;
00090   GtkWidget *lbl_flags;
00091   GtkWidget *label183;
00092   GtkWidget *label184;
00093   GtkWidget *label158;
00094   GtkWidget *lbl_model_name;
00095   GtkWidget *label162;
00096   GtkWidget *label160;
00097   GtkWidget *label163;
00098   GtkWidget *label164;
00099   GtkWidget *label165;
00100   GtkWidget *label166;
00101   GtkWidget *label167;
00102   GtkWidget *label168;
00103   GtkWidget *label178;
00104   GtkWidget *label176;
00105   GtkWidget *label159;
00106   GtkWidget *label186;
00107   GtkWidget *fixed9;
00108   GtkWidget *frame2;
00109   GtkWidget *fixed10;
00110   GtkWidget *pb_mem;
00111   GtkWidget *pb_swap;
00112   GtkWidget *label187;
00113   GtkWidget *image5;
00114   GtkWidget *lbl_total;
00115   GtkWidget *lbl_free;
00116   GtkWidget *lbl_buffers;
00117   GtkWidget *lbl_cached;
00118   GtkWidget *lbl_active;
00119   GtkWidget *lbl_inactive;
00120   GtkWidget *lbl_dirty;
00121   GtkWidget *lbl_hp_free;
00122   GtkWidget *lbl_hp_size;
00123   GtkWidget *lbl_high_total;
00124   GtkWidget *lbl_high_free;
00125   GtkWidget *lbl_low_total;
00126   GtkWidget *lbl_low_free;
00127   GtkWidget *lbl_swap_total;
00128   GtkWidget *lbl_swap_free;
00129   GtkWidget *label220;
00130   GtkWidget *label218;
00131   GtkWidget *label188;
00132   GtkWidget *label189;
00133   GtkWidget *label190;
00134   GtkWidget *lbl_swap_cached;
00135   GtkWidget *label191;
00136   GtkWidget *label192;
00137   GtkWidget *label193;
00138   GtkWidget *lbl_hp_total;
00139   GtkWidget *label194;
00140   GtkWidget *label195;
00141   GtkWidget *label196;
00142   GtkWidget *label211;
00143   GtkWidget *label197;
00144   GtkWidget *label198;
00145   GtkWidget *label199;
00146   GtkWidget *label200;
00147   GtkWidget *label201;
00148   GtkWidget *label222;
00149 
00150   window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
00151   gtk_widget_set_size_request (window1, 560, 437);
00152   gtk_window_set_title (GTK_WINDOW (window1), _("lkmonitor"));
00153   gtk_window_set_position (GTK_WINDOW (window1), GTK_WIN_POS_CENTER);
00154   gtk_window_set_default_size (GTK_WINDOW (window1), 462, 342);
00155   gtk_window_set_resizable (GTK_WINDOW (window1), FALSE);
00156   window1_icon_pixbuf = create_pixbuf ("lkmonitor/lkm-logo.png");
00157   if (window1_icon_pixbuf)
00158     {
00159       gtk_window_set_icon (GTK_WINDOW (window1), window1_icon_pixbuf);
00160       gdk_pixbuf_unref (window1_icon_pixbuf);
00161     }
00162 
00163   vbox1 = gtk_vbox_new (FALSE, 0);
00164   gtk_widget_show (vbox1);
00165   gtk_container_add (GTK_CONTAINER (window1), vbox1);
00166 
00167   menubar1 = gtk_menu_bar_new ();
00168   gtk_widget_show (menubar1);
00169   gtk_box_pack_start (GTK_BOX (vbox1), menubar1, FALSE, FALSE, 0);
00170   gnome_app_fill_menu (GTK_MENU_SHELL (menubar1), menubar1_uiinfo,
00171                        NULL, FALSE, 0);
00172 
00173   nb_main = gtk_notebook_new ();
00174   gtk_widget_show (nb_main);
00175   gtk_box_pack_start (GTK_BOX (vbox1), nb_main, TRUE, TRUE, 0);
00176   gtk_widget_set_size_request (nb_main, -1, 360);
00177   gtk_notebook_set_tab_pos (GTK_NOTEBOOK (nb_main), GTK_POS_LEFT);
00178 
00179   fixed8 = gtk_fixed_new ();
00180   gtk_widget_show (fixed8);
00181   gtk_container_add (GTK_CONTAINER (nb_main), fixed8);
00182   gtk_widget_set_size_request (fixed8, -1, 320);
00183 
00184   image4 = create_pixmap (window1, "lkmonitor/gnome-cpu.png");
00185   gtk_widget_show (image4);
00186   gtk_fixed_put (GTK_FIXED (fixed8), image4, 408, 32);
00187   gtk_widget_set_size_request (image4, 40, 40);
00188 
00189   lbl_processor = gtk_label_new ("");
00190   gtk_widget_show (lbl_processor);
00191   gtk_fixed_put (GTK_FIXED (fixed8), lbl_processor, 135, 20);
00192   gtk_widget_set_size_request (lbl_processor, 144, 16);
00193   gtk_label_set_line_wrap (GTK_LABEL (lbl_processor), TRUE);
00194 
00195   lbl_vendor = gtk_label_new ("");
00196   gtk_widget_show (lbl_vendor);
00197   gtk_fixed_put (GTK_FIXED (fixed8), lbl_vendor, 135, 40);
00198   gtk_widget_set_size_request (lbl_vendor, 160, 16);
00199   gtk_label_set_line_wrap (GTK_LABEL (lbl_vendor), TRUE);
00200 
00201   lbl_family = gtk_label_new ("");
00202   gtk_widget_show (lbl_family);
00203   gtk_fixed_put (GTK_FIXED (fixed8), lbl_family, 135, 64);
00204   gtk_widget_set_size_request (lbl_family, 104, 16);
00205   gtk_label_set_line_wrap (GTK_LABEL (lbl_family), TRUE);
00206 
00207   lbl_model = gtk_label_new ("");
00208   gtk_widget_show (lbl_model);
00209   gtk_fixed_put (GTK_FIXED (fixed8), lbl_model, 135, 80);
00210   gtk_widget_set_size_request (lbl_model, 264, 16);
00211   gtk_label_set_line_wrap (GTK_LABEL (lbl_model), TRUE);
00212 
00213   lbl_stepping = gtk_label_new ("");
00214   gtk_widget_show (lbl_stepping);
00215   gtk_fixed_put (GTK_FIXED (fixed8), lbl_stepping, 135, 120);
00216   gtk_widget_set_size_request (lbl_stepping, 41, 16);
00217   gtk_label_set_line_wrap (GTK_LABEL (lbl_stepping), TRUE);
00218 
00219   lbl_Mhz = gtk_label_new ("");
00220   gtk_widget_show (lbl_Mhz);
00221   gtk_fixed_put (GTK_FIXED (fixed8), lbl_Mhz, 135, 140);
00222   gtk_widget_set_size_request (lbl_Mhz, 64, 16);
00223   gtk_label_set_line_wrap (GTK_LABEL (lbl_Mhz), TRUE);
00224 
00225   lbl_cache = gtk_label_new ("");
00226   gtk_widget_show (lbl_cache);
00227   gtk_fixed_put (GTK_FIXED (fixed8), lbl_cache, 135, 160);
00228   gtk_widget_set_size_request (lbl_cache, 56, 16);
00229   gtk_label_set_line_wrap (GTK_LABEL (lbl_cache), TRUE);
00230 
00231   lbl_fpu = gtk_label_new ("");
00232   gtk_widget_show (lbl_fpu);
00233   gtk_fixed_put (GTK_FIXED (fixed8), lbl_fpu, 135, 180);
00234   gtk_widget_set_size_request (lbl_fpu, 41, 16);
00235   gtk_label_set_line_wrap (GTK_LABEL (lbl_fpu), TRUE);
00236 
00237   lbl_fpu_exception = gtk_label_new ("");
00238   gtk_widget_show (lbl_fpu_exception);
00239   gtk_fixed_put (GTK_FIXED (fixed8), lbl_fpu_exception, 135, 200);
00240   gtk_widget_set_size_request (lbl_fpu_exception, 41, 16);
00241   gtk_label_set_line_wrap (GTK_LABEL (lbl_fpu_exception), TRUE);
00242 
00243   lbl_cpu_id_level = gtk_label_new ("");
00244   gtk_widget_show (lbl_cpu_id_level);
00245   gtk_fixed_put (GTK_FIXED (fixed8), lbl_cpu_id_level, 135, 220);
00246   gtk_widget_set_size_request (lbl_cpu_id_level, 41, 16);
00247   gtk_label_set_line_wrap (GTK_LABEL (lbl_cpu_id_level), TRUE);
00248 
00249   lbl_wp = gtk_label_new ("");
00250   gtk_widget_show (lbl_wp);
00251   gtk_fixed_put (GTK_FIXED (fixed8), lbl_wp, 135, 240);
00252   gtk_widget_set_size_request (lbl_wp, 41, 16);
00253   gtk_label_set_line_wrap (GTK_LABEL (lbl_wp), TRUE);
00254 
00255   lbl_bogomips = gtk_label_new ("");
00256   gtk_widget_show (lbl_bogomips);
00257   gtk_fixed_put (GTK_FIXED (fixed8), lbl_bogomips, 135, 260);
00258   gtk_widget_set_size_request (lbl_bogomips, 72, 16);
00259   gtk_label_set_line_wrap (GTK_LABEL (lbl_bogomips), TRUE);
00260 
00261   scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL);
00262   gtk_widget_show (scrolledwindow2);
00263   gtk_fixed_put (GTK_FIXED (fixed8), scrolledwindow2, 135, 280);
00264   gtk_widget_set_size_request (scrolledwindow2, 274, 40);
00265   gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_POLICY_ALWAYS, GTK_POLICY_NEVER);
00266 
00267   viewport2 = gtk_viewport_new (NULL, NULL);
00268   gtk_widget_show (viewport2);
00269   gtk_container_add (GTK_CONTAINER (scrolledwindow2), viewport2);
00270 
00271   lbl_flags = gtk_label_new ("");
00272   gtk_widget_show (lbl_flags);
00273   gtk_container_add (GTK_CONTAINER (viewport2), lbl_flags);
00274   gtk_widget_set_size_request (lbl_flags, -1, 15);
00275 
00276   label183 = gtk_label_new (_("Processor"));
00277   gtk_widget_show (label183);
00278   gtk_fixed_put (GTK_FIXED (fixed8), label183, 16, 20);
00279   gtk_widget_set_size_request (label183, 90, 16);
00280   gtk_label_set_line_wrap (GTK_LABEL (label183), TRUE);
00281 
00282   label184 = gtk_label_new (_("Vendor"));
00283   gtk_widget_show (label184);
00284   gtk_fixed_put (GTK_FIXED (fixed8), label184, 16, 40);
00285   gtk_widget_set_size_request (label184, 90, 16);
00286   gtk_label_set_line_wrap (GTK_LABEL (label184), TRUE);
00287 
00288   label158 = gtk_label_new (_("Family"));
00289   gtk_widget_show (label158);
00290   gtk_fixed_put (GTK_FIXED (fixed8), label158, 16, 60);
00291   gtk_widget_set_size_request (label158, 90, 16);
00292   gtk_label_set_line_wrap (GTK_LABEL (label158), TRUE);
00293 
00294   lbl_model_name = gtk_label_new ("");
00295   gtk_widget_show (lbl_model_name);
00296   gtk_fixed_put (GTK_FIXED (fixed8), lbl_model_name, 135, 100);
00297   gtk_widget_set_size_request (lbl_model_name, 176, 16);
00298   gtk_label_set_line_wrap (GTK_LABEL (lbl_model_name), TRUE);
00299 
00300   label162 = gtk_label_new (_("Stepping"));
00301   gtk_widget_show (label162);
00302   gtk_fixed_put (GTK_FIXED (fixed8), label162, 16, 120);
00303   gtk_widget_set_size_request (label162, 90, 16);
00304   gtk_label_set_line_wrap (GTK_LABEL (label162), TRUE);
00305 
00306   label160 = gtk_label_new (_("Model name"));
00307   gtk_widget_show (label160);
00308   gtk_fixed_put (GTK_FIXED (fixed8), label160, 16, 100);
00309   gtk_widget_set_size_request (label160, 120, 16);
00310   gtk_label_set_line_wrap (GTK_LABEL (label160), TRUE);
00311 
00312   label163 = gtk_label_new (_("Mhz"));
00313   gtk_widget_show (label163);
00314   gtk_fixed_put (GTK_FIXED (fixed8), label163, 16, 140);
00315   gtk_widget_set_size_request (label163, 90, 16);
00316   gtk_label_set_line_wrap (GTK_LABEL (label163), TRUE);
00317 
00318   label164 = gtk_label_new (_("Cache"));
00319   gtk_widget_show (label164);
00320   gtk_fixed_put (GTK_FIXED (fixed8), label164, 16, 160);
00321   gtk_widget_set_size_request (label164, 90, 16);
00322   gtk_label_set_line_wrap (GTK_LABEL (label164), TRUE);
00323 
00324   label165 = gtk_label_new (_("fpu"));
00325   gtk_widget_show (label165);
00326   gtk_fixed_put (GTK_FIXED (fixed8), label165, 16, 180);
00327   gtk_widget_set_size_request (label165, 90, 16);
00328   gtk_label_set_line_wrap (GTK_LABEL (label165), TRUE);
00329 
00330   label166 = gtk_label_new (_("fpu exception"));
00331   gtk_widget_show (label166);
00332   gtk_fixed_put (GTK_FIXED (fixed8), label166, 16, 200);
00333   gtk_widget_set_size_request (label166, 120, 16);
00334   gtk_label_set_line_wrap (GTK_LABEL (label166), TRUE);
00335 
00336   label167 = gtk_label_new (_("Cpu id level"));
00337   gtk_widget_show (label167);
00338   gtk_fixed_put (GTK_FIXED (fixed8), label167, 16, 220);
00339   gtk_widget_set_size_request (label167, 120, 16);
00340   gtk_label_set_line_wrap (GTK_LABEL (label167), TRUE);
00341 
00342   label168 = gtk_label_new (_("wp"));
00343   gtk_widget_show (label168);
00344   gtk_fixed_put (GTK_FIXED (fixed8), label168, 16, 240);
00345   gtk_widget_set_size_request (label168, 41, 16);
00346   gtk_label_set_line_wrap (GTK_LABEL (label168), TRUE);
00347 
00348   label178 = gtk_label_new (_("Flags"));
00349   gtk_widget_show (label178);
00350   gtk_fixed_put (GTK_FIXED (fixed8), label178, 16, 280);
00351   gtk_widget_set_size_request (label178, 90, 16);
00352   gtk_label_set_line_wrap (GTK_LABEL (label178), TRUE);
00353 
00354   label176 = gtk_label_new (_("BogoMIPS"));
00355   gtk_widget_show (label176);
00356   gtk_fixed_put (GTK_FIXED (fixed8), label176, 16, 260);
00357   gtk_widget_set_size_request (label176, 90, 16);
00358   gtk_label_set_line_wrap (GTK_LABEL (label176), TRUE);
00359 
00360   label159 = gtk_label_new (_("Model"));
00361   gtk_widget_show (label159);
00362   gtk_fixed_put (GTK_FIXED (fixed8), label159, 16, 80);
00363   gtk_widget_set_size_request (label159, 90, 16);
00364   gtk_label_set_line_wrap (GTK_LABEL (label159), TRUE);
00365 
00366   label186 = gtk_label_new (_("Processor"));
00367   gtk_widget_show (label186);
00368   gtk_notebook_set_tab_label (GTK_NOTEBOOK (nb_main), gtk_notebook_get_nth_page (GTK_NOTEBOOK (nb_main), 0), label186);
00369 
00370   fixed9 = gtk_fixed_new ();
00371   gtk_widget_show (fixed9);
00372   gtk_container_add (GTK_CONTAINER (nb_main), fixed9);
00373 
00374   frame2 = gtk_frame_new (NULL);
00375   gtk_widget_show (frame2);
00376   gtk_fixed_put (GTK_FIXED (fixed9), frame2, 296, 144);
00377   gtk_widget_set_size_request (frame2, 168, 112);
00378 
00379   fixed10 = gtk_fixed_new ();
00380   gtk_widget_show (fixed10);
00381   gtk_container_add (GTK_CONTAINER (frame2), fixed10);
00382 
00383   pb_mem = gtk_progress_bar_new ();
00384   gtk_widget_show (pb_mem);
00385   gtk_fixed_put (GTK_FIXED (fixed10), pb_mem, 8, 16);
00386   gtk_widget_set_size_request (pb_mem, 150, 20);
00387   gtk_progress_bar_set_text (GTK_PROGRESS_BAR (pb_mem), _("Memory Use"));
00388 
00389   pb_swap = gtk_progress_bar_new ();
00390   gtk_widget_show (pb_swap);
00391   gtk_fixed_put (GTK_FIXED (fixed10), pb_swap, 8, 56);
00392   gtk_widget_set_size_request (pb_swap, 150, 20);
00393   gtk_progress_bar_set_text (GTK_PROGRESS_BAR (pb_swap), _("Swap Use"));
00394 
00395   label187 = gtk_label_new ("");
00396   gtk_widget_show (label187);
00397   gtk_frame_set_label_widget (GTK_FRAME (frame2), label187);
00398 
00399   image5 = create_pixmap (window1, "lkmonitor/gnome-ccperiph.png");
00400   gtk_widget_show (image5);
00401   gtk_fixed_put (GTK_FIXED (fixed9), image5, 400, 32);
00402   gtk_widget_set_size_request (image5, 48, 48);
00403 
00404   lbl_total = gtk_label_new ("");
00405   gtk_widget_show (lbl_total);
00406   gtk_fixed_put (GTK_FIXED (fixed9), lbl_total, 150, 40);
00407   gtk_widget_set_size_request (lbl_total, 80, 16);
00408   gtk_label_set_line_wrap (GTK_LABEL (lbl_total), TRUE);
00409 
00410   lbl_free = gtk_label_new ("");
00411   gtk_widget_show (lbl_free);
00412   gtk_fixed_put (GTK_FIXED (fixed9), lbl_free, 150, 60);
00413   gtk_widget_set_size_request (lbl_free, 80, 16);
00414   gtk_label_set_line_wrap (GTK_LABEL (lbl_free), TRUE);
00415 
00416   lbl_buffers = gtk_label_new ("");
00417   gtk_widget_show (lbl_buffers);
00418   gtk_fixed_put (GTK_FIXED (fixed9), lbl_buffers, 150, 80);
00419   gtk_widget_set_size_request (lbl_buffers, 88, 16);
00420   gtk_label_set_line_wrap (GTK_LABEL (lbl_buffers), TRUE);
00421 
00422   lbl_cached = gtk_label_new ("");
00423   gtk_widget_show (lbl_cached);
00424   gtk_fixed_put (GTK_FIXED (fixed9), lbl_cached, 150, 100);
00425   gtk_widget_set_size_request (lbl_cached, 88, 16);
00426   gtk_label_set_line_wrap (GTK_LABEL (lbl_cached), TRUE);
00427 
00428   lbl_active = gtk_label_new ("");
00429   gtk_widget_show (lbl_active);
00430   gtk_fixed_put (GTK_FIXED (fixed9), lbl_active, 150, 140);
00431   gtk_widget_set_size_request (lbl_active, 64, 16);
00432   gtk_label_set_line_wrap (GTK_LABEL (lbl_active), TRUE);
00433 
00434   lbl_inactive = gtk_label_new ("");
00435   gtk_widget_show (lbl_inactive);
00436   gtk_fixed_put (GTK_FIXED (fixed9), lbl_inactive, 150, 160);
00437   gtk_widget_set_size_request (lbl_inactive, 88, 16);
00438   gtk_label_set_line_wrap (GTK_LABEL (lbl_inactive), TRUE);
00439 
00440   lbl_dirty = gtk_label_new ("");
00441   gtk_widget_show (lbl_dirty);
00442   gtk_fixed_put (GTK_FIXED (fixed9), lbl_dirty, 150, 180);
00443   gtk_widget_set_size_request (lbl_dirty, 96, 16);
00444   gtk_label_set_line_wrap (GTK_LABEL (lbl_dirty), TRUE);
00445 
00446   lbl_hp_free = gtk_label_new ("");
00447   gtk_widget_show (lbl_hp_free);
00448   gtk_fixed_put (GTK_FIXED (fixed9), lbl_hp_free, 150, 220);
00449   gtk_widget_set_size_request (lbl_hp_free, 88, 16);
00450   gtk_label_set_line_wrap (GTK_LABEL (lbl_hp_free), TRUE);
00451 
00452   lbl_hp_size = gtk_label_new ("");
00453   gtk_widget_show (lbl_hp_size);
00454   gtk_fixed_put (GTK_FIXED (fixed9), lbl_hp_size, 150, 240);
00455   gtk_widget_set_size_request (lbl_hp_size, 96, 16);
00456   gtk_label_set_line_wrap (GTK_LABEL (lbl_hp_size), TRUE);
00457 
00458   lbl_high_total = gtk_label_new ("");
00459   gtk_widget_show (lbl_high_total);
00460   gtk_fixed_put (GTK_FIXED (fixed9), lbl_high_total, 150, 260);
00461   gtk_widget_set_size_request (lbl_high_total, 96, 16);
00462   gtk_label_set_line_wrap (GTK_LABEL (lbl_high_total), TRUE);
00463 
00464   lbl_high_free = gtk_label_new ("");
00465   gtk_widget_show (lbl_high_free);
00466   gtk_fixed_put (GTK_FIXED (fixed9), lbl_high_free, 150, 280);
00467   gtk_widget_set_size_request (lbl_high_free, 104, 16);
00468   gtk_label_set_line_wrap (GTK_LABEL (lbl_high_free), TRUE);
00469 
00470   lbl_low_total = gtk_label_new ("");
00471   gtk_widget_show (lbl_low_total);
00472   gtk_fixed_put (GTK_FIXED (fixed9), lbl_low_total, 150, 300);
00473   gtk_widget_set_size_request (lbl_low_total, 104, 16);
00474   gtk_label_set_line_wrap (GTK_LABEL (lbl_low_total), TRUE);
00475 
00476   lbl_low_free = gtk_label_new ("");
00477   gtk_widget_show (lbl_low_free);
00478   gtk_fixed_put (GTK_FIXED (fixed9), lbl_low_free, 150, 320);
00479   gtk_widget_set_size_request (lbl_low_free, 104, 16);
00480   gtk_label_set_line_wrap (GTK_LABEL (lbl_low_free), TRUE);
00481 
00482   lbl_swap_total = gtk_label_new ("");
00483   gtk_widget_show (lbl_swap_total);
00484   gtk_fixed_put (GTK_FIXED (fixed9), lbl_swap_total, 150, 340);
00485   gtk_widget_set_size_request (lbl_swap_total, 104, 16);
00486   gtk_label_set_line_wrap (GTK_LABEL (lbl_swap_total), TRUE);
00487 
00488   lbl_swap_free = gtk_label_new ("");
00489   gtk_widget_show (lbl_swap_free);
00490   gtk_fixed_put (GTK_FIXED (fixed9), lbl_swap_free, 150, 360);
00491   gtk_widget_set_size_request (lbl_swap_free, 88, 16);
00492   gtk_label_set_line_wrap (GTK_LABEL (lbl_swap_free), TRUE);
00493 
00494   label220 = gtk_label_new (_("Total"));
00495   gtk_widget_show (label220);
00496   gtk_fixed_put (GTK_FIXED (fixed9), label220, 16, 40);
00497   gtk_widget_set_size_request (label220, 60, 16);
00498   gtk_label_set_line_wrap (GTK_LABEL (label220), TRUE);
00499 
00500   label218 = gtk_label_new (_("Free"));
00501   gtk_widget_show (label218);
00502   gtk_fixed_put (GTK_FIXED (fixed9), label218, 16, 60);
00503   gtk_widget_set_size_request (label218, 60, 16);
00504   gtk_label_set_line_wrap (GTK_LABEL (label218), TRUE);
00505 
00506   label188 = gtk_label_new (_("Buffers"));
00507   gtk_widget_show (label188);
00508   gtk_fixed_put (GTK_FIXED (fixed9), label188, 16, 80);
00509   gtk_widget_set_size_request (label188, 60, 16);
00510   gtk_label_set_line_wrap (GTK_LABEL (label188), TRUE);
00511 
00512   label189 = gtk_label_new (_("Cached"));
00513   gtk_widget_show (label189);
00514   gtk_fixed_put (GTK_FIXED (fixed9), label189, 16, 100);
00515   gtk_widget_set_size_request (label189, 60, 16);
00516   gtk_label_set_line_wrap (GTK_LABEL (label189), TRUE);
00517 
00518   label190 = gtk_label_new (_("Swap cached"));
00519   gtk_widget_show (label190);
00520   gtk_fixed_put (GTK_FIXED (fixed9), label190, 16, 120);
00521   gtk_widget_set_size_request (label190, 100, 16);
00522   gtk_label_set_line_wrap (GTK_LABEL (label190), TRUE);
00523 
00524   lbl_swap_cached = gtk_label_new ("");
00525   gtk_widget_show (lbl_swap_cached);
00526   gtk_fixed_put (GTK_FIXED (fixed9), lbl_swap_cached, 150, 120);
00527   gtk_widget_set_size_request (lbl_swap_cached, 88, 16);
00528   gtk_label_set_line_wrap (GTK_LABEL (lbl_swap_cached), TRUE);
00529 
00530   label191 = gtk_label_new (_("Active"));
00531   gtk_widget_show (label191);
00532   gtk_fixed_put (GTK_FIXED (fixed9), label191, 16, 140);
00533   gtk_widget_set_size_request (label191, 60, 16);
00534   gtk_label_set_line_wrap (GTK_LABEL (label191), TRUE);
00535 
00536   label192 = gtk_label_new (_("Inactive"));
00537   gtk_widget_show (label192);
00538   gtk_fixed_put (GTK_FIXED (fixed9), label192, 16, 160);
00539   gtk_widget_set_size_request (label192, 100, 16);
00540   gtk_label_set_line_wrap (GTK_LABEL (label192), TRUE);
00541 
00542   label193 = gtk_label_new (_("Dirty"));
00543   gtk_widget_show (label193);
00544   gtk_fixed_put (GTK_FIXED (fixed9), label193, 16, 180);
00545   gtk_widget_set_size_request (label193, 100, 16);
00546   gtk_label_set_line_wrap (GTK_LABEL (label193), TRUE);
00547 
00548   lbl_hp_total = gtk_label_new ("");
00549   gtk_widget_show (lbl_hp_total);
00550   gtk_fixed_put (GTK_FIXED (fixed9), lbl_hp_total, 150, 200);
00551   gtk_widget_set_size_request (lbl_hp_total, 88, 16);
00552   gtk_label_set_line_wrap (GTK_LABEL (lbl_hp_total), TRUE);
00553 
00554   label194 = gtk_label_new (_("HugePages Total"));
00555   gtk_widget_show (label194);
00556   gtk_fixed_put (GTK_FIXED (fixed9), label194, 16, 200);
00557   gtk_widget_set_size_request (label194, 120, 16);
00558   gtk_label_set_line_wrap (GTK_LABEL (label194), TRUE);
00559 
00560   label195 = gtk_label_new (_("HugePages Free"));
00561   gtk_widget_show (label195);
00562   gtk_fixed_put (GTK_FIXED (fixed9), label195, 16, 220);
00563   gtk_widget_set_size_request (label195, 120, 16);
00564   gtk_label_set_line_wrap (GTK_LABEL (label195), TRUE);
00565 
00566   label196 = gtk_label_new (_("Huge Page size"));
00567   gtk_widget_show (label196);
00568   gtk_fixed_put (GTK_FIXED (fixed9), label196, 16, 240);
00569   gtk_widget_set_size_request (label196, 120, 16);
00570   gtk_label_set_line_wrap (GTK_LABEL (label196), TRUE);
00571 
00572   label211 = gtk_label_new (_("High total"));
00573   gtk_widget_show (label211);
00574   gtk_fixed_put (GTK_FIXED (fixed9), label211, 16, 260);
00575   gtk_widget_set_size_request (label211, 120, 16);
00576   gtk_label_set_line_wrap (GTK_LABEL (label211), TRUE);
00577 
00578   label197 = gtk_label_new (_("High free"));
00579   gtk_widget_show (label197);
00580   gtk_fixed_put (GTK_FIXED (fixed9), label197, 16, 280);
00581   gtk_widget_set_size_request (label197, 120, 16);
00582   gtk_label_set_line_wrap (GTK_LABEL (label197), TRUE);
00583 
00584   label198 = gtk_label_new (_("Low total"));
00585   gtk_widget_show (label198);
00586   gtk_fixed_put (GTK_FIXED (fixed9), label198, 16, 300);
00587   gtk_widget_set_size_request (label198, 120, 16);
00588   gtk_label_set_line_wrap (GTK_LABEL (label198), TRUE);
00589 
00590   label199 = gtk_label_new (_("Low free"));
00591   gtk_widget_show (label199);
00592   gtk_fixed_put (GTK_FIXED (fixed9), label199, 16, 320);
00593   gtk_widget_set_size_request (label199, 120, 16);
00594   gtk_label_set_line_wrap (GTK_LABEL (label199), TRUE);
00595 
00596   label200 = gtk_label_new (_("Swap total"));
00597   gtk_widget_show (label200);
00598   gtk_fixed_put (GTK_FIXED (fixed9), label200, 16, 340);
00599   gtk_widget_set_size_request (label200, 120, 16);
00600   gtk_label_set_line_wrap (GTK_LABEL (label200), TRUE);
00601 
00602   label201 = gtk_label_new (_("Swap free"));
00603   gtk_widget_show (label201);
00604   gtk_fixed_put (GTK_FIXED (fixed9), label201, 16, 360);
00605   gtk_widget_set_size_request (label201, 120, 16);
00606   gtk_label_set_line_wrap (GTK_LABEL (label201), TRUE);
00607 
00608   label222 = gtk_label_new (_("Memory"));
00609   gtk_widget_show (label222);
00610   gtk_notebook_set_tab_label (GTK_NOTEBOOK (nb_main), gtk_notebook_get_nth_page (GTK_NOTEBOOK (nb_main), 1), label222);
00611 
00612   g_signal_connect ((gpointer) window1, "destroy",
00613                     G_CALLBACK (on_window1_destroy),
00614                     NULL);
00615 
00616   /* Store pointers to all widgets, for use by lookup_widget(). */
00617   GLADE_HOOKUP_OBJECT_NO_REF (window1, window1, "window1");
00618   GLADE_HOOKUP_OBJECT (window1, vbox1, "vbox1");
00619   GLADE_HOOKUP_OBJECT (window1, menubar1, "menubar1");
00620   GLADE_HOOKUP_OBJECT (window1, menubar1_uiinfo[0].widget, "menuitem3");
00621   GLADE_HOOKUP_OBJECT (window1, menu3_uiinfo[0].widget, "imagemenuitem3");
00622   GLADE_HOOKUP_OBJECT (window1, menubar1_uiinfo[1].widget, "menuitem4");
00623   GLADE_HOOKUP_OBJECT (window1, menu4_uiinfo[0].widget, "imagemenuitem4");
00624   GLADE_HOOKUP_OBJECT (window1, nb_main, "nb_main");
00625   GLADE_HOOKUP_OBJECT (window1, fixed8, "fixed8");
00626   GLADE_HOOKUP_OBJECT (window1, image4, "image4");
00627   GLADE_HOOKUP_OBJECT (window1, lbl_processor, "lbl_processor");
00628   GLADE_HOOKUP_OBJECT (window1, lbl_vendor, "lbl_vendor");
00629   GLADE_HOOKUP_OBJECT (window1, lbl_family, "lbl_family");
00630   GLADE_HOOKUP_OBJECT (window1, lbl_model, "lbl_model");
00631   GLADE_HOOKUP_OBJECT (window1, lbl_stepping, "lbl_stepping");
00632   GLADE_HOOKUP_OBJECT (window1, lbl_Mhz, "lbl_Mhz");
00633   GLADE_HOOKUP_OBJECT (window1, lbl_cache, "lbl_cache");
00634   GLADE_HOOKUP_OBJECT (window1, lbl_fpu, "lbl_fpu");
00635   GLADE_HOOKUP_OBJECT (window1, lbl_fpu_exception, "lbl_fpu_exception");
00636   GLADE_HOOKUP_OBJECT (window1, lbl_cpu_id_level, "lbl_cpu_id_level");
00637   GLADE_HOOKUP_OBJECT (window1, lbl_wp, "lbl_wp");
00638   GLADE_HOOKUP_OBJECT (window1, lbl_bogomips, "lbl_bogomips");
00639   GLADE_HOOKUP_OBJECT (window1, scrolledwindow2, "scrolledwindow2");
00640   GLADE_HOOKUP_OBJECT (window1, viewport2, "viewport2");
00641   GLADE_HOOKUP_OBJECT (window1, lbl_flags, "lbl_flags");
00642   GLADE_HOOKUP_OBJECT (window1, label183, "label183");
00643   GLADE_HOOKUP_OBJECT (window1, label184, "label184");
00644   GLADE_HOOKUP_OBJECT (window1, label158, "label158");
00645   GLADE_HOOKUP_OBJECT (window1, lbl_model_name, "lbl_model_name");
00646   GLADE_HOOKUP_OBJECT (window1, label162, "label162");
00647   GLADE_HOOKUP_OBJECT (window1, label160, "label160");
00648   GLADE_HOOKUP_OBJECT (window1, label163, "label163");
00649   GLADE_HOOKUP_OBJECT (window1, label164, "label164");
00650   GLADE_HOOKUP_OBJECT (window1, label165, "label165");
00651   GLADE_HOOKUP_OBJECT (window1, label166, "label166");
00652   GLADE_HOOKUP_OBJECT (window1, label167, "label167");
00653   GLADE_HOOKUP_OBJECT (window1, label168, "label168");
00654   GLADE_HOOKUP_OBJECT (window1, label178, "label178");
00655   GLADE_HOOKUP_OBJECT (window1, label176, "label176");
00656   GLADE_HOOKUP_OBJECT (window1, label159, "label159");
00657   GLADE_HOOKUP_OBJECT (window1, label186, "label186");
00658   GLADE_HOOKUP_OBJECT (window1, fixed9, "fixed9");
00659   GLADE_HOOKUP_OBJECT (window1, frame2, "frame2");
00660   GLADE_HOOKUP_OBJECT (window1, fixed10, "fixed10");
00661   GLADE_HOOKUP_OBJECT (window1, pb_mem, "pb_mem");
00662   GLADE_HOOKUP_OBJECT (window1, pb_swap, "pb_swap");
00663   GLADE_HOOKUP_OBJECT (window1, label187, "label187");
00664   GLADE_HOOKUP_OBJECT (window1, image5, "image5");
00665   GLADE_HOOKUP_OBJECT (window1, lbl_total, "lbl_total");
00666   GLADE_HOOKUP_OBJECT (window1, lbl_free, "lbl_free");
00667   GLADE_HOOKUP_OBJECT (window1, lbl_buffers, "lbl_buffers");
00668   GLADE_HOOKUP_OBJECT (window1, lbl_cached, "lbl_cached");
00669   GLADE_HOOKUP_OBJECT (window1, lbl_active, "lbl_active");
00670   GLADE_HOOKUP_OBJECT (window1, lbl_inactive, "lbl_inactive");
00671   GLADE_HOOKUP_OBJECT (window1, lbl_dirty, "lbl_dirty");
00672   GLADE_HOOKUP_OBJECT (window1, lbl_hp_free, "lbl_hp_free");
00673   GLADE_HOOKUP_OBJECT (window1, lbl_hp_size, "lbl_hp_size");
00674   GLADE_HOOKUP_OBJECT (window1, lbl_high_total, "lbl_high_total");
00675   GLADE_HOOKUP_OBJECT (window1, lbl_high_free, "lbl_high_free");
00676   GLADE_HOOKUP_OBJECT (window1, lbl_low_total, "lbl_low_total");
00677   GLADE_HOOKUP_OBJECT (window1, lbl_low_free, "lbl_low_free");
00678   GLADE_HOOKUP_OBJECT (window1, lbl_swap_total, "lbl_swap_total");
00679   GLADE_HOOKUP_OBJECT (window1, lbl_swap_free, "lbl_swap_free");
00680   GLADE_HOOKUP_OBJECT (window1, label220, "label220");
00681   GLADE_HOOKUP_OBJECT (window1, label218, "label218");
00682   GLADE_HOOKUP_OBJECT (window1, label188, "label188");
00683   GLADE_HOOKUP_OBJECT (window1, label189, "label189");
00684   GLADE_HOOKUP_OBJECT (window1, label190, "label190");
00685   GLADE_HOOKUP_OBJECT (window1, lbl_swap_cached, "lbl_swap_cached");
00686   GLADE_HOOKUP_OBJECT (window1, label191, "label191");
00687   GLADE_HOOKUP_OBJECT (window1, label192, "label192");
00688   GLADE_HOOKUP_OBJECT (window1, label193, "label193");
00689   GLADE_HOOKUP_OBJECT (window1, lbl_hp_total, "lbl_hp_total");
00690   GLADE_HOOKUP_OBJECT (window1, label194, "label194");
00691   GLADE_HOOKUP_OBJECT (window1, label195, "label195");
00692   GLADE_HOOKUP_OBJECT (window1, label196, "label196");
00693   GLADE_HOOKUP_OBJECT (window1, label211, "label211");
00694   GLADE_HOOKUP_OBJECT (window1, label197, "label197");
00695   GLADE_HOOKUP_OBJECT (window1, label198, "label198");
00696   GLADE_HOOKUP_OBJECT (window1, label199, "label199");
00697   GLADE_HOOKUP_OBJECT (window1, label200, "label200");
00698   GLADE_HOOKUP_OBJECT (window1, label201, "label201");
00699   GLADE_HOOKUP_OBJECT (window1, label222, "label222");
00700 
00701   return window1;
00702 }


Generated on Wed Feb 15 11:24:02 2006 for lkmonitor by  doxygen 1.3.9.1