svnno****@sourc*****
svnno****@sourc*****
Sat Feb 14 11:03:29 JST 2009
Revision: 3676 http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3676 Author: ikezoe Date: 2009-02-14 11:03:29 +0900 (Sat, 14 Feb 2009) Log Message: ----------- Use macro. Modified Paths: -------------- kazehakase/trunk/module/embed/gecko/kz-gecko-embed.cpp kazehakase/trunk/module/embed/gecko/kz-gecko-single.cpp kazehakase/trunk/module/embed/gecko/kz-mozdownloader.cpp kazehakase/trunk/module/search/kz-anthy-trainer.c kazehakase/trunk/module/search/kz-hyper-estraier-search.c kazehakase/trunk/module/search/kz-search-rast.c Modified: kazehakase/trunk/module/embed/gecko/kz-gecko-embed.cpp =================================================================== --- kazehakase/trunk/module/embed/gecko/kz-gecko-embed.cpp 2009-02-14 01:40:31 UTC (rev 3675) +++ kazehakase/trunk/module/embed/gecko/kz-gecko-embed.cpp 2009-02-14 02:03:29 UTC (rev 3676) @@ -533,9 +533,9 @@ kz_gecko_embed_parent_class = (GtkMozEmbedClass *)g_type_class_peek_parent (klass); - gobject_class = (GObjectClass *) klass; - widget_class = (GtkWidgetClass *) klass; - moz_embed_class = (GtkMozEmbedClass *) klass; + gobject_class = G_OBJECT_CLASS(klass); + widget_class = GTK_WIDGET_CLASS(klass); + moz_embed_class = GTK_MOZ_EMBED_CLASS(klass); gobject_class->constructor = constructor; gobject_class->dispose = dispose; Modified: kazehakase/trunk/module/embed/gecko/kz-gecko-single.cpp =================================================================== --- kazehakase/trunk/module/embed/gecko/kz-gecko-single.cpp 2009-02-14 01:40:31 UTC (rev 3675) +++ kazehakase/trunk/module/embed/gecko/kz-gecko-single.cpp 2009-02-14 02:03:29 UTC (rev 3676) @@ -90,8 +90,7 @@ { GObjectClass *object_class; - kz_gecko_single_parent_class = g_type_class_peek_parent (klass); - object_class = (GObjectClass *) klass; + object_class = G_OBJECT_CLASS(klass); object_class->constructor = constructor; object_class->dispose = dispose; Modified: kazehakase/trunk/module/embed/gecko/kz-mozdownloader.cpp =================================================================== --- kazehakase/trunk/module/embed/gecko/kz-mozdownloader.cpp 2009-02-14 01:40:31 UTC (rev 3675) +++ kazehakase/trunk/module/embed/gecko/kz-mozdownloader.cpp 2009-02-14 02:03:29 UTC (rev 3676) @@ -44,15 +44,14 @@ GObjectClass *object_class; KzDownloaderClass *dl_class; - object_class = (GObjectClass *) klass; - dl_class = (KzDownloaderClass *) klass; + object_class = G_OBJECT_CLASS(klass); + dl_class = KZ_DOWNLOADER_CLASS(klass); - // GObject object_class->dispose = dispose; dl_class->kz_downloader_get_percent = kz_moz_downloader_get_percent; dl_class->kz_downloader_cancel = kz_moz_downloader_cancel; - g_type_class_add_private (object_class, sizeof(KzMozDownloaderPrivate)); + g_type_class_add_private(object_class, sizeof(KzMozDownloaderPrivate)); } Modified: kazehakase/trunk/module/search/kz-anthy-trainer.c =================================================================== --- kazehakase/trunk/module/search/kz-anthy-trainer.c 2009-02-14 01:40:31 UTC (rev 3675) +++ kazehakase/trunk/module/search/kz-anthy-trainer.c 2009-02-14 02:03:29 UTC (rev 3676) @@ -124,8 +124,8 @@ KzSearchClass *search_class; parent_class = g_type_class_peek_parent (klass); - object_class = (GObjectClass *) klass; - search_class = (KzSearchClass *) klass; + object_class = G_OBJECT_CLASS(klass); + search_class = KZ_SEARCH_CLASS(klass); object_class->dispose = dispose; Modified: kazehakase/trunk/module/search/kz-hyper-estraier-search.c =================================================================== --- kazehakase/trunk/module/search/kz-hyper-estraier-search.c 2009-02-14 01:40:31 UTC (rev 3675) +++ kazehakase/trunk/module/search/kz-hyper-estraier-search.c 2009-02-14 02:03:29 UTC (rev 3676) @@ -159,7 +159,7 @@ GObjectClass *object_class; parent_class = g_type_class_peek_parent (klass); - object_class = (GObjectClass *) klass; + object_class = G_OBJECT_CLASS(klass); object_class->dispose = dispose; } Modified: kazehakase/trunk/module/search/kz-search-rast.c =================================================================== --- kazehakase/trunk/module/search/kz-search-rast.c 2009-02-14 01:40:31 UTC (rev 3675) +++ kazehakase/trunk/module/search/kz-search-rast.c 2009-02-14 02:03:29 UTC (rev 3676) @@ -136,8 +136,8 @@ KzSearchClass *search_class; parent_class = g_type_class_peek_parent (klass); - object_class = (GObjectClass *) klass; - search_class = (KzSearchClass *) klass; + object_class = G_OBJECT_CLASS(klass); + search_class = KZ_SEARCH_CLASS(klass); object_class->constructor = constructor; object_class->dispose = dispose;