[Bugs] #4034 Imageviewer UNSP: ImageViewer: zoom gesture center

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Oct 18 14:56:40 EDT 2012


#4034: ImageViewer: zoom gesture center
------------------------------------------+---------------------------------
    Reporter:  godiard                    |          Owner:  humitos    
        Type:  defect                     |         Status:  new        
    Priority:  Unspecified by Maintainer  |      Milestone:  0.98       
   Component:  Imageviewer                |        Version:  Unspecified
    Severity:  Unspecified                |       Keywords:             
Distribution:  Unspecified                |   Status_field:  Unconfirmed
------------------------------------------+---------------------------------

Comment(by humitos):

 Taking a look at the eog (Eye Of GNOME - the application to see images on
 GNOME) I found that it uses: {{{g_signal_handlers_block_matched}}} before
 setting the adjustment value. I understand that this is to avoid the
 ''vibration'' that my patch added.

 http://git.gnome.org/browse/eog/tree/src/eog-scroll-view.c#n311

 I tried to use that function but I'm not being able to pass None as the
 fifth argument and trying with another thing I'm getting a segmentation
 fault.

 Here are a code example:
 {{{
 from gi.repository import Gtk
 from gi.repository import GObject


 def my_func(*args, **kargs):
     print 'my_func was called.'


 adj = Gtk.Adjustment()
 sw = Gtk.ScrolledWindow()
 GObject.signal_handlers_block_matched(
     adj, GObject.SignalMatchType.DATA, 0, 0, None, my_func, sw)
 }}}

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/4034#comment:3>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list