Skip to content

Commit

Permalink
Add several FIXMEs to keep track of provisional changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Dec 21, 2010
1 parent 9c303c5 commit 6b42a57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/pinhole.rb
@@ -1,5 +1,6 @@
require 'gir_ffi'

# FIXME: Make gir_ffi load everything as global.
GlobalGtk = FFI::DynamicLibrary.open(
FFI.map_library_name('gtk-x11-2.0'),
FFI::DynamicLibrary::RTLD_LAZY | FFI::DynamicLibrary::RTLD_GLOBAL)
Expand Down
2 changes: 2 additions & 0 deletions lib/pinhole/image.rb
@@ -1,6 +1,7 @@
module Pinhole
class Image < Gtk::ScrolledWindow

# FIXME: Create appropriate Color constructor.
#COLOR_BLACK = Gdk::Color.new(0, 0, 0)

def initialize
Expand Down Expand Up @@ -44,6 +45,7 @@ def update_pixbuf
public

def fullscreen
# FIXME: Restore once black is defined.
#@eventbox.modify_bg Gtk::STATE_NORMAL, COLOR_BLACK
@fullscreen = true
update_scrollbar_policy
Expand Down
2 changes: 2 additions & 0 deletions lib/pinhole/mainwindow.rb
Expand Up @@ -55,12 +55,14 @@ def run
def setup_ui
@builder = Gtk::Builder.new
@builder.add_from_file Pinhole.path "data", "pinhole.ui"
# FIXME: Add override to simplify this method call.
@builder.connect_signals_full Proc.new { |b,o,sn,hn,co,f,ud|
sn.gsub! /_/, '-'
GObject.signal_connect cast_object_pointer(o), sn, self.method(hn)
}, nil
end

# FIXME: Make part of gir_ffi.
def cast_object_pointer optr
tp = GObject.type_from_instance_pointer optr
gir = GirFFI::IRepository.default
Expand Down

0 comments on commit 6b42a57

Please sign in to comment.