diff -u -ru gallery-vanilla-1.0/gallery_g2image/gallery_g2image.module gallery-if/gallery_g2image/gallery_g2image.module
--- gallery-vanilla-1.0/gallery_g2image/gallery_g2image.module  2008-06-10 16:58:13.000000000 +0200
+++ gallery-if/gallery_g2image/gallery_g2image.module   2009-04-27 13:56:15.000000000 +0200
@@ -118,3 +118,27 @@
 
   return $output;
 }
+
+/**
+ * Implementation of hook_wysiwyg_plugin().
+ */
+function gallery_wysiwyg_plugin($editor) {
+  switch ($editor) {
+    case 'tinymce':
+      if ($path = variable_get('gallery_g2image_path', FALSE)) {
+        return array(
+            'g2image' => array(
+              'path' => $path,
+              'buttons' => array('g2image' => t('G2image')),
+              'url' => 'http://g2image.steffensenfamily.com/',
+              'internal' => TRUE,
+              'load' => TRUE,
+              // Unsure if these are usefull
+              //            'type'        => 'external', // ??
+              //            'title'       => t('Gallery Images in TinyMCE'),
+              //            'description' => t('This plugin embeds a Gallery Image button in a Wysiwyg API enabled TinyMCE'),
+              ),
+            );
+    }
+  }
+}

