]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtktooltips.c
call the base class init fucntions from all parent types upon class
[~andy/gtk] / gtk / gtktooltips.c
index ca1b40402b74fb9fdf1b0f6a1dae1193f2a59e89..044a6011fda8023737364bf71c461372dd241189 100644 (file)
@@ -12,8 +12,9 @@
  * Library General Public License for more details.
  *
  * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the Free
- * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 #include <stdlib.h>
 #include <string.h>
@@ -49,7 +50,7 @@ static GtkDataClass *parent_class;
 static const gchar  *tooltips_data_key = "_GtkTooltipsData";
 
 guint
-gtk_tooltips_get_type ()
+gtk_tooltips_get_type (void)
 {
   static guint tooltips_type = 0;
 
@@ -62,8 +63,9 @@ gtk_tooltips_get_type ()
        sizeof (GtkTooltipsClass),
        (GtkClassInitFunc) gtk_tooltips_class_init,
        (GtkObjectInitFunc) gtk_tooltips_init,
-       (GtkArgSetFunc) NULL,
-       (GtkArgGetFunc) NULL,
+       /* reversed_1 */ NULL,
+       /* reversed_2 */ NULL,
+        (GtkClassInitFunc) NULL,
       };
 
       tooltips_type = gtk_type_unique (gtk_data_get_type (), &tooltips_info);
@@ -99,12 +101,12 @@ gtk_tooltips_init (GtkTooltips *tooltips)
 }
 
 GtkTooltips *
-gtk_tooltips_new ()
+gtk_tooltips_new (void)
 {
   return gtk_type_new (gtk_tooltips_get_type ());
 }
 
-void
+static void
 gtk_tooltips_free_string (gpointer data, gpointer user_data)
 {
   if (data)
@@ -541,6 +543,7 @@ gtk_tooltips_event_handler (GtkWidget *widget,
   switch (event->type)
     {
     case GDK_MOTION_NOTIFY:
+    case GDK_EXPOSE:
       /* do nothing */
       break;