search for: onclose

Displaying 16 results from an estimated 16 matches for "onclose".

Did you mean: enclose
2012 Mar 05
2
[PATCH] Remove call to set_autosync.
...44 --- a/lib/Sys/VirtConvert/GuestfsHandle.pm +++ b/lib/Sys/VirtConvert/GuestfsHandle.pm @@ -103,9 +103,6 @@ sub new &$open(); } - # Enable autosync to defend against data corruption on unclean shutdown - $g->set_autosync(1); - $self->{g} = $g; $self->{onclose} = []; -- 1.7.9.1
2011 Jun 09
0
Samba on RHEL 6: Permission denied when mounting FUSE partition
...011-06-02 16:38:12,028 DEBUG FuseMethodsInvoker:1220 - We have 3 configured users and string len is '3' 2011-06-02 16:38:12,029 DEBUG FuseMethodsInvoker:1225 - In List files:: User[0] is 'user' 2011-06-02 16:38:12,029 DEBUG FuseMethodsInvoker:1225 - In List files:: User[1] is 'OnClose' 2011-06-02 16:38:12,029 DEBUG FuseMethodsInvoker:1225 - In List files:: User[2] is 'ReadInfoVerify' Fuse Debug Output under RHEL 6, VM: 2011-06-02 07:44:29,117 DEBUG FuseMethodsInvoker:720 - Entering javaAccess with path '/' -- mask '1' 2011-06-02 07:44:...
2004 Apr 21
2
Resizing a ListCtrl
...e.new(250, 200), LC_REPORT | LC_SINGLE_SEL) fillListCtrl() centerSizer.add(@fileList, 6, GROW|EXPAND) # }}} @dlgSizer.add(centerSizer, 1) @dlgSizer.set_size_hints(self) set_sizer(@dlgSizer) # end main layout }}} ## global events {{{ evt_close {onClose} evt_size() {|event| onSize(event) } # }}} end ## }}} def onClose ## {{{ destroy() end ## }}} def onSize(event=nil) frame_size = event.get_size x = frame_size.x - 10 y = frame_size.y - 10 @fileList.set_size_xy(x, y) event.skip() if event end def...
2010 Jun 17
2
[PATCH] Improve cleanup of libguestfs handle with Sys::VirtV2V::GuestfsHandle
...mp;$sigquit($sig_received) if ($sig_received eq 'QUIT'); + } + $SIG{'INT'} = $sigint; + $SIG{'QUIT'} = $sigquit; + + # Enable autosync to defend against data corruption on unclean shutdown + $g->set_autosync(1); + + $self->{g} = $g; + + $self->{onclose} = []; + + bless($self, $class); + return $self; +} + +=item add_on_close + +Register a callback to be called before closing the underlying Sys::Guestfs +handle. + +=cut + +sub add_on_close +{ + my $self = shift; + + push(@{$self->{onclose}}, shift); +} + +=item close + +Call all reg...
2005 Apr 05
0
Connecting messages to methods
...responder" include Fox class Window < FXMainWindow include Responder ID_SELF, ID_BTN = enum(FXMainWindow::ID_LAST, 2) def initialize(a, title) super(a, title, nil, nil, DECOR_ALL, 0, 0, 640, 480) self.setSelector(ID_SELF) self.setTarget(self) self.connect(SEL_CLOSE, method(:onClose)) self.connect(SEL_COMMAND, method(:onCommand)) FXButton.new(self, "Click me!", nil, self, ID_BTN) end def create super show(PLACEMENT_SCREEN) end def onClose(sender, sel, event) getApp.exit(0) end def onCommand(sender, sel, event) # ... end end -- I''d li...
2006 Jul 10
4
Detecting the close of a browser
Hi, I noticed that www.meebo.com has the ability that when you close the browser during a session, it prompts you , are you sure you want to close? How does it do this? I would like to use such an ability , so that if the user preempts a close on the browser, I can kill all threads I have running for that user. Thanks -- Posted via http://www.ruby-forum.com/.
2004 Jun 11
9
Handling Events that don''t take an ID
Hey Kevin, Am I correct in assuming that if I want a particular widget to respond to an event which doesn''t take an ID as an argument (like evt_size or evt_left_down), that I have to inherit a new widget and define the event handler within the inherited class? Here''s a little contrived code example to illustrate what I mean: class MyCtrl < Wx::TextCtrl def
2016 Jul 06
1
"No previous versions" - GPFS 3.5 and shadow_copy2
...= yes gpfs:leases = yes gpfs:dfreequota = yes nfs4:mode = simple nfs4:chown = yes nfs4:acedup = merge fileid:algorithm = fsname force unknown acl user = yes shadow:snapdir = .snapshots shadow:fixinodes = yes shadow:snapdirseverywhere = yes shadow:sort = desc syncops:onclose = no syncops:onmeta = no kernel oplocks = yes level2 oplocks = yes oplocks = yes notify:inotify = no wide links = no async smb echo handler = yes dmapi support = yes aio write size = 1 aio read size = 1 socket options = IPTOS_LOWDELAY TCP_NODELAY enable core fi...
2003 Oct 20
5
wxruby - ruby-gtk2
Hi! Can anybody tell me basic differences using wxwindows and gtk2 GUI with ruby? Gergo -- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+
2013 Nov 15
2
Virtio: 32bit CentOS 6.4 on VirtualBox to oVirt on Fedora 19 64bit via virt-v2v
...onverter/RedHat.pm I have looked at the code: /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm:~490 creating this and dumped the contents of the grub look up: Sys::VirtConvert::GuestfsHandle=HASH(0x433da98)< >/dev/VolGroup/lv_root< $VAR1 = bless( { 'onclose' => [ sub { "DUMMY" } ], 'g' => bless( { '_g' => 70645888, '_flags' => 0...
2006 Nov 13
7
[736] trunk/wxruby2/samples/dialogs/dialogs.rb: Fixed crashing bug in on_paint and made the code style more Ruby like.
...lass="cx"> </span><del>- evt_button(DIALOGS_MODELESS_BTN) {|event| onButton(event) } </del><ins>+ evt_button(DIALOGS_MODELESS_BTN) {|event| on_button(event) } </ins><span class="cx"> </span><del>- evt_close() {|event| onClose(event) } </del><ins>+ evt_close() {|event| on_close(event) } </ins><span class="cx"> </span><span class="cx"> end </span><span class="cx"> </span><del>- def onButton(event) </del><ins>+ de...
2005 Aug 15
16
swig_up
Tracing down some things to add in validators and I''ve run across something that kinda bothers me... In order to implement validators you have to override the clone method. The directors seems to be set up to specifically handle this situation. However, whenever C++ calls back to the object''s methods the swig_get_up function is returning false. It seems like swig_up
2020 Aug 01
0
Wine release 5.14
...'t specify ETO_GLYPH_INDEX for bitmap fonts. ieframe: Implement IOleObject::GetUserClassID(). ieframe: Implement IOleObject::Advise(). ieframe: Implement IOleObject::Unadvise(). ieframe: Implement IOleObject::EnumAdvise(). ieframe: IOleObject::Close() should notify OnClose() advise sink. ieframe/tests: Add some tests for IOleObject::Advise(), IOleObject::Unadvise() and IOleObject::EnumAdvise(). fonts: Add initial version of Webdings font. Fran?ois Gouget (2): tests: Trace elapsed time when $WINETEST_TIME is set. winex11.drv: Fix the spelling...
2015 Oct 16
0
Wine release 1.7.53
...n() to return early on failure. ole32: Always use object_is_running to check whether the object is running. ole32: Return OLE_E_NOTRUNNING on a cache-miss when the object isn't running. ole32: Call the cache's OnRun and OnStop methods. ole32: Defer calling Stop in an OnClose notification during an object call. ole32: Release interfaces as part of Stop. setupapi/tests: Use RegQueryValueEx so that tests run on Win XP. Iv?n Matellanes (9): msvcirt: Add stub of class stdiobuf. msvcirt: Implement stdiobuf constructors and destructor. msvcirt:...
2008 Dec 05
0
Wine release 1.1.10
...o shader_dump_decl_usage(). wined3d: Explicitly pass the shader version to shader_dump_param() and shader_dump_arr_entry(). Huw Davies (12): ole32: Factor out the code to release the delegate interfaces. ole32: Defer releasing the delegate interfaces until after we return from an OnClose notification. version: Fixed comments. oleaut32: Add support for loading typelibs from NE files. comdlg32: GetPrinterW and GetPrinterDriverW return the size in bytes so don't multiply by sizeof(WCHAR). ole32: Forward the ASYNC_STGMEDIUM user marshallers to the STGMEDIUM...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...-- a/libswfdec/swfdec_as_strings.c +++ b/libswfdec/swfdec_as_strings.c @@ -485,5 +485,7 @@ const char swfdec_as_strings[] = SWFDEC_AS_CONSTANT_STRING ("y") SWFDEC_AS_CONSTANT_STRING ("idMap") SWFDEC_AS_CONSTANT_STRING ("id") + SWFDEC_AS_CONSTANT_STRING ("onClose") + SWFDEC_AS_CONSTANT_STRING ("onConnect") /* add more here */ ; diff --git a/libswfdec/swfdec_xml_socket.c b/libswfdec/swfdec_xml_socket.c index 89bfaae..bff72c7 100644 --- a/libswfdec/swfdec_xml_socket.c +++ b/libswfdec/swfdec_xml_socket.c @@ -1,5 +1,5 @@ /* Swfdec - * Copyr...