Uninitialized constant Gtk::PageSetupUnixDialog (NameError)

Hi,

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

i suppose it should create a Gtk::PageSetupUnixDialog
i just updated from cvs, and the issue stands.

regards
Balint

Hi,

In [email protected]
“[ruby-gnome2-devel-en] uninitialized constant
Gtk::PageSetupUnixDialog (NameError)” on Fri, 24 Nov 2006 22:44:37
+0200,
Dobai-Pataky Bálint [email protected] 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


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

Hi,

In [email protected]
“Re: [ruby-gnome2-devel-en] uninitialized constant
Gtk::PageSetupUnixDialog (NameError)” on Sat, 25 Nov 2006 10:33:49
+0200,
Dobai-Pataky_Bálint [email protected] wrote:

the error is gone, thanks.

Thanks for confirming. I committed the patch.


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