the error is gone, thanks.
Balint

Kouhei Sutou wrote:
Hi,

In <456759B5.2090607@gmail.com>
  "[ruby-gnome2-devel-en] uninitialized constant Gtk::PageSetupUnixDialog (NameError)" on Fri, 24 Nov 2006 22:44:37 +0200,
  Dobai-Pataky Bálint <dpblnt@gmail.com> wrote:

  
@page_setup_dialog=Gtk::PageSetupUnixDialog.new()
gives
uninitialized constant Gtk::PageSetupUnixDialog (NameError)
    

Does this patch work?

=====
Index: src/rbgtkpagesetupunixdialog.c
===================================================================
RCS file: /cvsroot/ruby-gnome2/ruby-gnome2/gtk/src/rbgtkpagesetupunixdialog.c,v
retrieving revision 1.3
diff -u -p -r1.3 rbgtkpagesetupunixdialog.c
--- src/rbgtkpagesetupunixdialog.c      23 Oct 2006 17:10:15 -0000      1.3
+++ src/rbgtkpagesetupunixdialog.c      25 Nov 2006 01:53:40 -0000
@@ -11,7 +11,7 @@

 #include "global.h"

-#ifdef HAVE_GTK_GTKPAGESETUPUNIXDIALOG_H
+#if GTK_CHECK_VERSION(2,10,0)
 #include <gtk/gtkpagesetupunixdialog.h>

 #define _SELF(s) (GTK_PAGE_SETUP_UNIX_DIALOG(RVAL2GOBJ(s)))
@@ -61,7 +61,7 @@ psud_get_print_settings(VALUE self)
 void
 Init_gtk_page_setup_unix_dialog()
 {
-#ifdef HAVE_GTK_GTKPAGESETUPUNIXDIALOG_H
+#if GTK_CHECK_VERSION(2,10,0)
     VALUE gPageSetupUnixDialog = G_DEF_CLASS(GTK_TYPE_PAGE_SETUP_UNIX_DIALOG,
                                              "PageSetupUnixDialog", mGtk);
 
=====


Thanks,
--
kou

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ruby-gnome2-devel-en mailing list
ruby-gnome2-devel-en@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en