Masato Taruishi
taru****@users*****
2004年 9月 10日 (金) 21:15:26 JST
=================================================================== RCS file: demo/haviewer/haviewer.glade,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- demo/haviewer/haviewer.glade 2004/09/10 11:44:00 1.15 +++ demo/haviewer/haviewer.glade 2004/09/10 12:15:25 1.16 @@ -391,69 +391,11 @@ <widget class="GtkButton" id="entry_update"> <property name="visible">True</property> <property name="can_focus">True</property> + <property name="label">gtk-execute</property> + <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_entry_update_clicked" last_modification_time="Fri, 10 Sep 2004 09:30:03 GMT"/> - - <child> - <widget class="GtkAlignment" id="alignment3"> - <property name="visible">True</property> - <property name="xalign">0.5</property> - <property name="yalign">0.5</property> - <property name="xscale">0</property> - <property name="yscale">0</property> - <property name="top_padding">0</property> - <property name="bottom_padding">0</property> - <property name="left_padding">0</property> - <property name="right_padding">0</property> - - <child> - <widget class="GtkHBox" id="hbox10"> - <property name="visible">True</property> - <property name="homogeneous">False</property> - <property name="spacing">2</property> - - <child> - <widget class="GtkImage" id="image3"> - <property name="visible">True</property> - <property name="stock">gtk-execute</property> - <property name="icon_size">4</property> - <property name="xalign">0.5</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="padding">0</property> - <property name="expand">False</property> - <property name="fill">False</property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label18"> - <property name="visible">True</property> - <property name="label" translatable="yes">Test!</property> - <property name="use_underline">True</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0.5</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="padding">0</property> - <property name="expand">False</property> - <property name="fill">False</property> - </packing> - </child> - </widget> - </child> - </widget> - </child> </widget> <packing> <property name="padding">0</property> =================================================================== RCS file: demo/haviewer/haviewer.rb,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- demo/haviewer/haviewer.rb 2004/09/10 11:40:28 1.27 +++ demo/haviewer/haviewer.rb 2004/09/10 12:15:25 1.28 @@ -128,6 +128,8 @@ class UltraPossum < View + Conf = ::UltraPossum::Config.new + class UltraPossumHost < Host OID = "private.12345" # .2.101.1" @@ -136,7 +138,7 @@ OID_SINCE = OID + ".1.3.0" @@latest_entryCSN = "" - @@monitored_entry = "cn=u0001,o=ultrapossum" + @@monitored_entry = "cn=u0001,#{Conf["SUFFIX"]}" def UltraPossumHost.update_latest_entryCSN `ldapsearch -l 1 -x -h #{Conf["LDAPMASTER"]} -b #{@@monitored_entry} -s base -LLL +`.each_line do |line| @@ -240,7 +242,6 @@ end - Conf = ::UltraPossum::Config.new UltraPossumHosts = [] begin hash = {}