changeset 39:6838c7123945

Tidied up code
author unexist
date Sat, 23 Jan 2010 23:23:54 +0100
parents 3efacab12daa
children 61134827e004
files subtly/gdk.rb subtly/gobject.rb subtly/gthread.rb subtly/gtk.rb
diffstat 4 files changed, 103 insertions(+), 103 deletions(-) [+]
line wrap: on
line diff
--- a/subtly/gdk.rb	Sat Jan 23 23:22:48 2010 +0100
+++ b/subtly/gdk.rb	Sat Jan 23 23:23:54 2010 +0100
@@ -35,8 +35,8 @@
     ## ffi_parse_color
     # Parse color name
     #
-    # @param  [String,  #read]   Color name
-    # @param  [Pointer, #write]  Store color here
+    # @param [String,  #read]   Color name
+    # @param [Pointer, #write]  Store color here
     ##
    
     attach_function(:ffi_parse_color,
@@ -46,7 +46,7 @@
     ## ffi_parse_key
     # Parse key name
     #
-    # @param  [String,  #read]   Color name
+    # @param [String,  #read]   Color name
     #
     # @return [Uint] Converted keyval
     ##
--- a/subtly/gobject.rb	Sat Jan 23 23:22:48 2010 +0100
+++ b/subtly/gobject.rb	Sat Jan 23 23:23:54 2010 +0100
@@ -24,10 +24,10 @@
     ## ffi_signal_connect
     # Add signal callback
     #
-    # @param  [Pointer, #read]  Widget to attach callback
-    # @param  [String,  #read]  Signal name
-    # @param  [Pointer, #read]  Callback function
-    # @param  [Pointer, #read]  Callback data
+    # @param [Pointer, #read]  Widget to attach callback
+    # @param [String,  #read]  Signal name
+    # @param [Pointer, #read]  Callback function
+    # @param [Pointer, #read]  Callback data
     ##
 
     attach_function(:ffi_signal_connect2,
--- a/subtly/gthread.rb	Sat Jan 23 23:22:48 2010 +0100
+++ b/subtly/gthread.rb	Sat Jan 23 23:23:54 2010 +0100
@@ -19,7 +19,7 @@
     ## ffi_init
     # Init thread system
     #
-    # @param  [Pointer, #read]  Just don't use, #GThreadFunctions
+    # @param [Pointer, #read]  Just don't use, #GThreadFunctions
     ##
 
     attach_function(:ffi_init,
--- a/subtly/gtk.rb	Sat Jan 23 23:22:48 2010 +0100
+++ b/subtly/gtk.rb	Sat Jan 23 23:23:54 2010 +0100
@@ -41,7 +41,7 @@
       ## init
       # Init Gtk system
       #
-      # @param  [Pointer, #read]  Parent widget
+      # @param [Pointer, #read]  Parent widget
       ##
 
       attach_function(:ffi_init,                   
@@ -85,7 +85,7 @@
       ## foreground
       # Set foreground color of widget
       #
-      # @param  [String, #read]  color  Color value
+      # @param [String, #read]  color  Color value
       ##
 
       def foreground=(color)
@@ -98,7 +98,7 @@
       ## background
       # Set background color of widget
       #
-      # @param  [String, #read]  color  Color value
+      # @param [String, #read]  color  Color value
       ##
 
       def background=(color)
@@ -111,9 +111,9 @@
       ## connect
       # Connect callback to signal
       #
-      # @param  [String,  #read]  signal    Signal name
-      # @param  [Proc,    #read]  callback  Callback proc
-      # @param  [Pointer, #read]  data      Userdata
+      # @param [String,  #read]  signal    Signal name
+      # @param [Proc,    #read]  callback  Callback proc
+      # @param [Pointer, #read]  data      Userdata
       ##
 
       def connect(signal, callback, data)
@@ -130,7 +130,7 @@
       ## alignment
       # Set alignment of widget
       #
-      # @param  [Array, #read]  array  Alignment array for x/y
+      # @param [Array, #read]  array  Alignment array for x/y
       ##
 
       def alignment=(array)
@@ -140,7 +140,7 @@
       ## focusable
       # Set if widget is focusable
       #
-      # @param  [Bool, #read]  value  New value
+      # @param [Bool, #read]  value  New value
       ##
 
       def focusable=(value)
@@ -150,7 +150,7 @@
       ## editable
       # Set if widget is editable
       #
-      # @param  [Bool, #read]  value  New value
+      # @param [Bool, #read]  value  New value
       ##
 
       def editable=(value)
@@ -171,9 +171,9 @@
       ## ffi_set_fg
       # Set foreground color of widget
       #
-      # @param  [Pointer, #read]  widget  A #GtkWidget
-      # @param  [State,   #read]  state   Widget state
-      # @param  [Pointer, #read]  color   A #GdkColor
+      # @param [Pointer, #read]  widget  A #GtkWidget
+      # @param [State,   #read]  state   Widget state
+      # @param [Pointer, #read]  color   A #GdkColor
       ##
 
       attach_function(:ffi_set_fg,
@@ -183,9 +183,9 @@
       ## ffi_set_fg
       # Set background color of widget
       #
-      # @param  [Pointer, #read]  widget  A #GtkWidget
-      # @param  [State,   #read]  state   Widget state
-      # @param  [Pointer, #read]  color   A #GdkColor
+      # @param [Pointer, #read]  widget  A #GtkWidget
+      # @param [State,   #read]  state   Widget state
+      # @param [Pointer, #read]  color   A #GdkColor
       ##
 
       attach_function(:ffi_set_bg,
@@ -195,9 +195,9 @@
       ## ffi_set_alignment
       # Set background color of widget
       #
-      # @param  [Pointer, #read]  misc    A #GtkMisc
-      # @param  [Float,   #read]  xalign  X alignment
-      # @param  [Float,   #read]  yalign  Y alignment
+      # @param [Pointer, #read]  misc    A #GtkMisc
+      # @param [Float,   #read]  xalign  X alignment
+      # @param [Float,   #read]  yalign  Y alignment
       ##
 
       attach_function(:ffi_set_alignment,
@@ -207,8 +207,8 @@
       ## ffi_set_can_focus
       # Set if widget can focus
       #
-      # @param  [Pointer, #read]  widget     A #GtkWidget
-      # @param  [Book,    #read]  can_focus  Set focusable
+      # @param [Pointer, #read]  widget     A #GtkWidget
+      # @param [Book,    #read]  can_focus  Set focusable
       ##
 
       attach_function(:ffi_set_can_focus,
@@ -218,8 +218,8 @@
       ## ffi_set_can_edit
       # Set if widget is editable
       #
-      # @param  [Pointer, #read]  editable     A #GtkWidget
-      # @param  [Book,    #read]  is_editable  Set editable
+      # @param [Pointer, #read]  editable     A #GtkWidget
+      # @param [Book,    #read]  is_editable  Set editable
       ##
 
       attach_function(:ffi_set_can_edit,
@@ -241,7 +241,7 @@
       ## add
       # Add widget to container
       #
-      # @param  [Widget, #read]  widget  A #Widget
+      # @param [Widget, #read]  widget  A #Widget
       ##
 
       def add(widget)
@@ -253,7 +253,7 @@
       ## ffi_show_all
       # Show all child widgets
       #
-      # @param  [Pointer, #read]  widget  A #GtkWdget
+      # @param [Pointer, #read]  widget  A #GtkWdget
       ##
 
       attach_function(:ffi_show_all,
@@ -263,8 +263,8 @@
       ## ffi_add
       # Add widget to container
       #
-      # @param  [Pointer, #read]  container  A #GtkContainer
-      # @param  [Pointer, #read]  widget     A #GtkWidget
+      # @param [Pointer, #read]  container  A #GtkContainer
+      # @param [Pointer, #read]  widget     A #GtkWidget
       ##
 
       attach_function(:ffi_add,
@@ -288,7 +288,7 @@
       ## title=
       # Set window title
       #
-      # @param  [String, #read]  title  Window title
+      # @param [String, #read]  title  Window title
       ##
 
       def title=(str)
@@ -298,7 +298,7 @@
       ## klass=
       # Set window class
       #
-      # @param  [Array, #read]  array  Klass array
+      # @param [Array, #read]  array  Klass array
       ##
 
       def klass=(array)
@@ -308,7 +308,7 @@
       ## size=
       # Set window size
       #
-      # @param  [Array, #read]  array  Size array
+      # @param [Array, #read]  array  Size array
       ##
 
       def size=(array)
@@ -320,7 +320,7 @@
       ## ffi_new
       # Create new window
       #
-      # @param  [Fixnum, #read]  type  A #GtkWindowType
+      # @param [Fixnum, #read]  type  A #GtkWindowType
       #
       # @return [Pointer] A new widget
       ##
@@ -332,8 +332,8 @@
       ## ffi_set_title
       # Set window title
       #
-      # @param  [Pointer, #read]  window  A #GtkWindow
-      # @param  [String,  #read]  title   Window title
+      # @param [Pointer, #read]  window  A #GtkWindow
+      # @param [String,  #read]  title   Window title
       ##
 
       attach_function(:ffi_set_title,
@@ -343,9 +343,9 @@
       ## ffi_set_klass
       # Set window instance and class
       #
-      # @param  [Pointer, #read]  window         A #GtkWindow
-      # @param  [String,  #read]  wmclass_name   Instance name
-      # @param  [String,  #read]  wmclass_class  Class name
+      # @param [Pointer, #read]  window         A #GtkWindow
+      # @param [String,  #read]  wmclass_name   Instance name
+      # @param [String,  #read]  wmclass_class  Class name
       ##
 
       attach_function(:ffi_set_klass,
@@ -355,9 +355,9 @@
       ## ffi_set_size
       # Set default size of widget
       #
-      # @param  [Pointer, #read]  window  A #GtkWindow
-      # @param  [Fixnum,  #read]  width   Width of the widget
-      # @param  [Fixnum,  #read]  height  Height of the widget
+      # @param [Pointer, #read]  window  A #GtkWindow
+      # @param [Fixnum,  #read]  width   Width of the widget
+      # @param [Fixnum,  #read]  height  Height of the widget
       ##
 
       attach_function(:ffi_set_size,
@@ -428,8 +428,8 @@
       ## ffi_new
       # Create scrolled window
       #
-      # @param  [Pointer, #read]  hadjustment  A #GtkAdjustment
-      # @param  [Pointer, #read]  vadjustment  A #GtkAdjustment
+      # @param [Pointer, #read]  hadjustment  A #GtkAdjustment
+      # @param [Pointer, #read]  vadjustment  A #GtkAdjustment
       #
       # @return [Pointer] The new widget
       ##
@@ -441,7 +441,7 @@
       ## ffi_get_vadjustment
       # Get vertical adjustment
       #
-      # @param  [Pointer, #read]  scrolled_window A #GtkScrolledWindow
+      # @param [Pointer, #read]  scrolled_window A #GtkScrolledWindow
       #
       # @return [Pointer] A #GtkAdjustment
       ##
@@ -453,8 +453,8 @@
       ## ffi_set_vadjust_value
       # Set vertical adjustment value
       #
-      # @param  [Pointer, #read]  adjustment  A #GtkAdjustment
-      # @param  [Float,   #read]  value       The new value
+      # @param [Pointer, #read]  adjustment  A #GtkAdjustment
+      # @param [Float,   #read]  value       The new value
       #
       # @return [Pointer] A #GtkAdjustment
       ##
@@ -466,7 +466,7 @@
       ## ffi_get_vadjust_value
       # Get vertical adjustment value
       #
-      # @param  [Pointer, #read]  adjustment  A #GtkAdjustment
+      # @param [Pointer, #read]  adjustment  A #GtkAdjustment
       #
       # @return [Float] The vadjustment value
       ##
@@ -478,7 +478,7 @@
       ## ffi_get_vadjust_lower
       # Get vertical adjustment lower value
       #
-      # @param  [Pointer, #read]  adjustment  A #GtkAdjustment
+      # @param [Pointer, #read]  adjustment  A #GtkAdjustment
       #
       # @return [Float] The vadjustment lower value
       ##
@@ -490,7 +490,7 @@
       ## ffi_get_vadjust_upper
       # Get vertical adjustment upper value
       #
-      # @param  [Pointer, #read]  adjustment  A #GtkAdjustment
+      # @param [Pointer, #read]  adjustment  A #GtkAdjustment
       #
       # @return [Float] The vadjustment upper value
       ##
@@ -502,7 +502,7 @@
       ## ffi_get_vadjust_page_size
       # Get vertical adjustment page size
       #
-      # @param  [Pointer, #read]  adjustment  A #GtkAdjustment
+      # @param [Pointer, #read]  adjustment  A #GtkAdjustment
       #
       # @return [Float] The vadjustment page size
       ##
@@ -518,9 +518,9 @@
       ## initialize
       # Create a new box
       #
-      # @param  [Symbol, #read]  type  Type of box
-      # @param  [Bool,   #read]  homogeneous  Homogeneous or not
-      # @param  [Bool,   #read]  spacing      Spacing
+      # @param [Symbol, #read]  type  Type of box
+      # @param [Bool,   #read]  homogeneous  Homogeneous or not
+      # @param [Bool,   #read]  spacing      Spacing
       # @return [Object] New box
       ##
 
@@ -535,9 +535,9 @@
       ## add
       # Add widget to box
       #
-      # @param  [Widget, #read]  widget   A #Widget
-      # @param  [Bool,   #read]  expand   Expand widget
-      # @param  [Bool,   #read]  padding  Pad widget
+      # @param [Widget, #read]  widget   A #Widget
+      # @param [Bool,   #read]  expand   Expand widget
+      # @param [Bool,   #read]  padding  Pad widget
       ##
 
       def add(widget, expand, fill, padding)
@@ -549,8 +549,8 @@
       ## ffi_vbox_new
       # Create vbox widget
       #
-      # @param  [Bool,   #read]  homogenous  Homogeneous or not
-      # @param  [Fixnum, #read]  spacing     Default space between children
+      # @param [Bool,   #read]  homogenous  Homogeneous or not
+      # @param [Fixnum, #read]  spacing     Default space between children
       # @return [Pointer] Return the new widget
       ##
 
@@ -561,8 +561,8 @@
       ## ffi_hbox_new
       # Create hbox widget
       #
-      # @param  [Bool,   #read]  homogeneous  Homogeneous or not
-      # @param  [Fixnum, #read]  spacing      Default space between children
+      # @param [Bool,   #read]  homogeneous  Homogeneous or not
+      # @param [Fixnum, #read]  spacing      Default space between children
       # @return [Pointer] Return the new widget
       ##
 
@@ -573,11 +573,11 @@
       ## ffi_add
       # Add widget to box
       #
-      # @param  [Pointer, #read]  box      Box widget
-      # @param  [Pointer, #read]  child    Widget to add
-      # @param  [Bool,    #read]  expand   Expand widget
-      # @param  [Bool,    #read]  fill     Fill widget
-      # @param  [Fixnum,  #read]  padding  Padding of children
+      # @param [Pointer, #read]  box      Box widget
+      # @param [Pointer, #read]  child    Widget to add
+      # @param [Bool,    #read]  expand   Expand widget
+      # @param [Bool,    #read]  fill     Fill widget
+      # @param [Fixnum,  #read]  padding  Padding of children
       ##
 
       attach_function(:ffi_add,
@@ -590,8 +590,8 @@
       ## initialize
       # Create new label
       #
-      # @param  [Bool, #read]  single      Single line?
-      # @param  [Bool, #read]  selectable  Selectable?
+      # @param [Bool, #read]  single      Single line?
+      # @param [Bool, #read]  selectable  Selectable?
       #
       # @return  [Widget]  New adjustment
       ##
@@ -606,7 +606,7 @@
       ## text=
       # Set text of label
       #
-      # @param  [String, #read]  str  String for label
+      # @param [String, #read]  str  String for label
       ##
 
       def text=(str)
@@ -616,7 +616,7 @@
       ## markup=
       # Set markup of label
       #
-      # @param  [String, #read]  str  Markup for label
+      # @param [String, #read]  str  Markup for label
       ##
 
       def markup=(str)
@@ -628,7 +628,7 @@
       ## ffi_new
       # Create label widget
       #
-      # @param  [String, #read]  String to display
+      # @param [String, #read]  String to display
       # @return [Pointer] Return the new widget
       ##
 
@@ -639,8 +639,8 @@
       ## ffi_set_text
       # Set widget label text
       #
-      # @param  [Pointer, #read]  Widget to set text
-      # @param  [String,  #read]  String to set
+      # @param [Pointer, #read]  Widget to set text
+      # @param [String,  #read]  String to set
       ##
 
       attach_function(:ffi_set_text,
@@ -650,8 +650,8 @@
       ## ffi_set_markup
       # Set widget label markup
       #
-      # @param  [Pointer, #read]  label  A #GtkLabel
-      # @param  [String,  #read]  str    String to set
+      # @param [Pointer, #read]  label  A #GtkLabel
+      # @param [String,  #read]  str    String to set
       ##
 
       attach_function(:ffi_set_markup,
@@ -661,8 +661,8 @@
       ## ffi_single_line
       # Set single line mode
       #
-      # @param  [Pointer, #read]  Widget to set text
-      # @param  [Bool,    #read]  Set single line mode
+      # @param [Pointer, #read]  Widget to set text
+      # @param [Bool,    #read]  Set single line mode
       ##
 
       attach_function(:ffi_single_line,
@@ -672,8 +672,8 @@
       ## ffi_selectable
       # Set selected
       #
-      # @param  [Pointer, #read]  Widget to set text
-      # @param  [Bool,    #read]  Set selectable
+      # @param [Pointer, #read]  Widget to set text
+      # @param [Bool,    #read]  Set selectable
       ##
 
       attach_function(:ffi_selectable,
@@ -685,7 +685,7 @@
       ## initialize
       # Creaze new entry
       #
-      # @param  [Bool, #read]  frame  Has frame?
+      # @param [Bool, #read]  frame  Has frame?
       #
       # @return [Widget] New entry
       ##
@@ -709,7 +709,7 @@
       ## text=
       # Set text of entry
       #
-      # @param  [String, #read]  str  String to set
+      # @param [String, #read]  str  String to set
       ##
 
       def text=(str)
@@ -729,7 +729,7 @@
       ## <<
       # Append text to entry
       #
-      # @param  [String, #read]  str  String to append
+      # @param [String, #read]  str  String to append
       ##
 
       def <<(str)
@@ -739,7 +739,7 @@
       ## length=
       # Set max length of widget
       #
-      # @param  [Fixnum, #read]  max  Max length
+      # @param [Fixnum, #read]  max  Max length
       ##
 
       def length=(max)
@@ -749,8 +749,8 @@
       ## width=
       # Set width in chars of widget
       #
-      # @param  [Pointer, #read]  entry    A #GtkEntry
-      # @param  [Fixnum,  #read]  n_chars  Width in chars
+      # @param [Pointer, #read]  entry    A #GtkEntry
+      # @param [Fixnum,  #read]  n_chars  Width in chars
       ##
 
       def width=(num)
@@ -772,8 +772,8 @@
       ## ffi_set_frame
       # Set widget frame
       #
-      # @param  [Pointer, #read]  entry    A #GtkEntry
-      # @param  [Bool,    #read]  setting  Set frame
+      # @param [Pointer, #read]  entry    A #GtkEntry
+      # @param [Bool,    #read]  setting  Set frame
       ##
 
       attach_function(:ffi_set_frame,
@@ -783,7 +783,7 @@
       ## ffi_get_text
       # Set widget entry text
       #
-      # @param  [Pointer, #read]  entry  A #GtkEntry
+      # @param [Pointer, #read]  entry  A #GtkEntry
       #
       # @return [String] Entry text
       ##
@@ -795,8 +795,8 @@
       ## ffi_set_text
       # Set widget entry text
       #
-      # @param  [Pointer, #read]  widget  A #GtkEntry
-      # @param  [String,  #read]  text    String to set
+      # @param [Pointer, #read]  widget  A #GtkEntry
+      # @param [String,  #read]  text    String to set
       ##
 
       attach_function(:ffi_set_text,
@@ -806,7 +806,7 @@
       ## ffi_get_length
       # Get entry text length
       #
-      # @param  [Pointer, #read]  widget  A #GtkEntry
+      # @param [Pointer, #read]  widget  A #GtkEntry
       #
       # @return [Uin16] Length of text
       ##
@@ -818,8 +818,8 @@
       ## ffi_set_length
       # Set entry text length
       #
-      # @param  [Pointer, #read]  entry  A #GtkEntry
-      # @param  [Uint16r, #read]  max    Maximum length of entry
+      # @param [Pointer, #read]  entry  A #GtkEntry
+      # @param [Uint16r, #read]  max    Maximum length of entry
       ##
 
       attach_function(:ffi_set_length,
@@ -829,8 +829,8 @@
       ## ffi_append_text
       # Append text to entry
       #
-      # @param  [Pointer, #read]  widget  A #GtkEntry
-      # @param  [String,  #read]  text    Text to append
+      # @param [Pointer, #read]  widget  A #GtkEntry
+      # @param [String,  #read]  text    Text to append
       ##
 
       attach_function(:ffi_append_text,
@@ -840,8 +840,8 @@
       ## ffi_set_width_chars
       # Set width in chars of widget
       #
-      # @param  [Pointer, #read]  widget   A #GtkEntry
-      # @param  [Fixnum,  #read]  n_chars  Width in chars
+      # @param [Pointer, #read]  widget   A #GtkEntry
+      # @param [Fixnum,  #read]  n_chars  Width in chars
       ##
 
       attach_function(:ffi_set_width_chars,
@@ -853,7 +853,7 @@
       ## initialize
       # Creaze new entry
       #
-      # @param  [Bool, #read]  frame  Has frame?
+      # @param [Bool, #read]  frame  Has frame?
       #
       # @return [Widget] New entry
       ##
@@ -914,7 +914,7 @@
       ## ffi_get_cliboard
       # Get the clipboard object for given selection
       #
-      # @param  [Fixnum, #read]  selection  Clipboard identifier
+      # @param [Fixnum, #read]  selection  Clipboard identifier
       #
       # @return [Pointer]  Clipboard for selection
       ##