Gtkmm-forge Digest, Vol 3, Issue 2



Send Gtkmm-forge mailing list submissions to
	gtkmm-forge lists sourceforge net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
	gtkmm-forge-request lists sourceforge net

You can reach the person managing the list at
	gtkmm-forge-owner lists sourceforge net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."


gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla.  A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs. Do not try to unsubscribe gtkmm-forge from gtkmm-list.


Today's Topics:

   1. [Bug 347857] advanced printing example crashes
      (gtkmm (bugzilla.gnome.org))
   2. [Bug 349334] Calling close() from	Gnome::Vfs::DirectoryHandle
      causes segfault (gnomemm (bugzilla.gnome.org))
   3. [Bug 349334] Calling close() from	Gnome::Vfs::DirectoryHandle
      causes segfault (gnomemm (bugzilla.gnome.org))
   4. [Bug 347857] advanced printing example crashes
      (gtkmm (bugzilla.gnome.org))
   5. [Bug 349334] Calling close() from	Gnome::Vfs::DirectoryHandle
      causes segfault (gnomemm (bugzilla.gnome.org))
   6. [Bug 349334] Calling close() from	Gnome::Vfs::DirectoryHandle
      causes segfault (gnomemm (bugzilla.gnome.org))
   7. [Bug 349650] New: Gtk::FontButton(const	Glib::ustring&)
      constructor does not work (gtkmm (bugzilla.gnome.org))
   8. [Bug 349650] Gtk::FontButton(const Glib::ustring&)
      constructor does not work (gtkmm (bugzilla.gnome.org))


----------------------------------------------------------------------

Message: 1
Date: Tue,  1 Aug 2006 22:03:53 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 347857] advanced printing example
	crashes
To: gtkmm-forge lists sourceforge net
Message-ID: <20060801220353 E5BB16C411A box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=347857
 gtkmm | general | Ver: 2.9.x





------- Comment #14 from Marko Anastasov  2006-08-01 22:03 UTC -------
My initial idea that in on_preview() a (blocking) dialog should be put up was
wrong. The purpose of on_preview() is essentially to set a cairo context on the
provided PrintContext. Asynchronysm also applies here and after that is done
on_preview() should return (true). on_begin_print() and the rest get called
after that. So now PreviewDialog is actually a Window, and PrintFormOperation
keeps a pointer to it.

Moreover, I noticed that I didn't even connect to given PrintOperationPreview's
ready and got_page_size.

Another mistake was that I wrote PreviewDialog::on_expose_event() and thus
implemented the window's virtual expose_event handler. Renaming it to
on_drawing_area_expose_event resolved this unwanted behaviour.

I had to make PreviewDialog keep a pointer to PrintFormOperation just to be
able to access the Pango::Layout it sets. With the initial approach of keeping
a copy of it in PD, later when it's needed in on_got_page_size() a segfault
occurs, the pointer is somehow null, IIRC.

Regarding the conversions. I know it's weird to put reftaking as default but in
fact in both cases, for PrintContext and PaperSize, all conversions that exist
appear to demand reftaking. For PrintContext it's in printoperation(preview).hg
and for PaperSize it's pagesetup.hg and printsettings.hg . I'm sure for
PaperSize that unless I put the ref in convert_gtk.m4, valgrind complains a lot
about uninitialized values (in on_got_page_size()) and later a segfault occurs,
double delete of a PaperSize object as a member of PrintSettings (on an attempt
to unref it somewhere in gtk code). That's *with* overriding CONVERSIONs for
all get_* functions.

Anyway, I don't see how these changes to *.m4 and the hg files can affect
print-to-pdf behaviour. I removed all my locally modified files and rebuilt
gtkmm with example(s) and there's still a problem. Please can you check this
again, with current gtk and cairo.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



------------------------------

Message: 2
Date: Wed,  2 Aug 2006 03:26:40 +0000 (UTC)
From: "gnomemm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 349334] Calling close() from
	Gnome::Vfs::DirectoryHandle causes segfault
To: gtkmm-forge lists sourceforge net
Message-ID: <20060802032640 C06CB6C4144 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=349334
 gnomemm | gnome-vfsmm | Ver: 2.6





------- Comment #2 from sosuiming yahoo com  2006-08-02 03:26 UTC -------
Created an attachment (id=70052)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=70052&action=view)
source codes and makefile


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



------------------------------

Message: 3
Date: Wed,  2 Aug 2006 03:29:08 +0000 (UTC)
From: "gnomemm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 349334] Calling close() from
	Gnome::Vfs::DirectoryHandle causes segfault
To: gtkmm-forge lists sourceforge net
Message-ID: <20060802032908 50CD46C4144 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=349334
 gnomemm | gnome-vfsmm | Ver: 2.6





------- Comment #3 from sosuiming yahoo com  2006-08-02 03:28 UTC -------
Attached here are the sources and makefile.
Compilation is OK but the program segfaults whenever the following runs:

dir_handle.close();
(N.B. dir_handle is an instance of Gnome::Vfs::DirectoryHandle)

Commenting out the statement seems to avoid the problem.



Matthias Kaeppler <nospam digitalraid com> encountered the same problem as me:
http://www.mail-archive.com/gnomemm-list gnome org/msg00048.html


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



------------------------------

Message: 4
Date: Wed,  2 Aug 2006 06:12:41 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 347857] advanced printing example
	crashes
To: gtkmm-forge lists sourceforge net
Message-ID: <20060802061241 06BC86C414B box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=347857
 gtkmm | general | Ver: 2.9.x





------- Comment #15 from Murray Cumming  2006-08-02 06:12 UTC -------
Excellent detective work. On behalf of gtkmm users everywhere I thank you.

Please check in what you have, but attach it as a patch here so I can easily
see what's changed. Then I'll investigate again.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



------------------------------

Message: 5
Date: Wed,  2 Aug 2006 06:20:00 +0000 (UTC)
From: "gnomemm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 349334] Calling close() from
	Gnome::Vfs::DirectoryHandle causes segfault
To: gtkmm-forge lists sourceforge net
Message-ID: <20060802062000 AE0936C4148 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=349334
 gnomemm | gnome-vfsmm | Ver: 2.6





------- Comment #4 from Murray Cumming  2006-08-02 06:19 UTC -------
Thanks. I'll try to investigate this in the next few days.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



------------------------------

Message: 6
Date: Wed,  2 Aug 2006 06:21:26 +0000 (UTC)
From: "gnomemm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 349334] Calling close() from
	Gnome::Vfs::DirectoryHandle causes segfault
To: gtkmm-forge lists sourceforge net
Message-ID: <20060802062126 5C27A6C4148 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=349334
 gnomemm | gnome-vfsmm | Ver: 2.6





------- Comment #5 from Murray Cumming  2006-08-02 06:21 UTC -------
By the way, I usually prefer test cases to be as small as possible while also
demonstrating the problem, but I should be able to manage with this.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



------------------------------

Message: 7
Date: Wed,  2 Aug 2006 10:12:02 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 349650] New: Gtk::FontButton(const
	Glib::ustring&) constructor does not work
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-349650-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=349650
 gtkmm | general | Ver: 2.9.x

           Summary: Gtk::FontButton(const Glib::ustring&) constructor does
                    not work
           Product: gtkmm
           Version: 2.9.x
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: armin 0x539 de
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: 2.13/2.14
   GNOME milestone: Unspecified


Please describe the problem:
The constructor tries to set the property "fontname" of the button, but the
correct property name is "font-name".

Steps to reproduce:
1. Call the Gtk::FontButton constructor with a font name as argument.

Actual results:
It prints a warning that says that there is no "fontname" property in
GtkFontButton and does not set the correct font but stil displays the default
"Sans 12".

Expected results:
It should initialize the button with the given font.

Does this happen every time?
Yes.

Other information:


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



------------------------------

Message: 8
Date: Wed,  2 Aug 2006 10:13:31 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 349650] Gtk::FontButton(const
	Glib::ustring&)	constructor does not work
To: gtkmm-forge lists sourceforge net
Message-ID: <20060802101331 2F5FC6C415C box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=349650
 gtkmm | general | Ver: 2.9.x





------- Comment #1 from Armin Burgmeier  2006-08-02 10:13 UTC -------
Created an attachment (id=70064)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=70064&action=view)
Proposed patch

The patch renames the argument in Gtk::FontButton::FontButton to font_name
which causes gmmproc to generate the correct property name.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



------------------------------

-------------------------------------------------------------------------
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

------------------------------

_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge


End of Gtkmm-forge Digest, Vol 3, Issue 2
*****************************************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]