Gtkmm-forge Digest, Vol 3, Issue 13



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 350584] "Gtk::Calendar::get_date()" is	inconsistent with
      "enum Glib::Date::Month" (gtkmm (bugzilla.gnome.org))
   2. [Bug 350734] New: segfault in RadioAction	constructor
      (gtkmm (bugzilla.gnome.org))
   3. [Bug 350734] segfault in RadioAction constructor
      (gtkmm (bugzilla.gnome.org))
   4. [Bug 350734] segfault in RadioAction constructor
      (gtkmm (bugzilla.gnome.org))


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

Message: 1
Date: Thu, 10 Aug 2006 06:18:14 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 350584] "Gtk::Calendar::get_date()" is
	inconsistent with "enum Glib::Date::Month"
To: gtkmm-forge lists sourceforge net
Message-ID: <20060810061814 D8C416C40AE 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=350584
 gtkmm | general | Ver: 2.8.x


Murray Cumming changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |murrayc murrayc com




------- Comment #1 from Murray Cumming  2006-08-10 06:17 UTC -------
This is a GTK+ issue, and one that I doubt they'd bother fixing, though it
would theoretically be possible by deprecated gtk_calendar_get_date() and
adding a new function that returned the enum instead of an int. I think it is
how it is because GtkCalendare existed before GDate. 

It is at least documented:
http://developer.gimp.org/api/2.0/gtk/GtkCalendar.html#gtk-calendar-get-date

But for gtkmm it would be nice to add a 
void get_date(Glib::Date& date) const
method overload. A patch would be welcome.

Normally we would use a return type instead of an output parameter but I think
that would be strange next to the existing get_date() method.


-- 
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: Thu, 10 Aug 2006 12:58:56 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 350734] New: segfault in RadioAction
	constructor
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-350734-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=350734
 gtkmm | general | Ver: 2.9.x

           Summary: segfault in RadioAction constructor
           Product: gtkmm
           Version: 2.9.x
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: jonathon jongsma gmail com
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


When trying to inherit from RadioAction, the constructor causes a segfault. 
This occurs at least in 2.6 and later.  Example program:


#include <glibmm/refptr.h>
#include <gtkmm/main.h>
#include <gtkmm/radioaction.h>
#include <gtkmm/stock.h>


namespace
{

 class Radio_action : public Gtk::RadioAction
 {
 public:

   Radio_action (Group& group)
     : Gtk::RadioAction (group, "test", Gtk::StockID (), "", "")
   { }

   static  Glib::RefPtr <Radio_action>
   create (Group& group)
   {
     return Glib::RefPtr <Radio_action> (new Radio_action (group));
   }
 };

}


int
main (int argc, char** argv)
{
 Gtk::Main  main (argc, argv);

 Radio_action::Group  test_group;

#if 1
 // This segfaults.
 Radio_action::create (test_group);
#else
 Gtk::RadioAction::create (test_group, "test");
#endif

 return 0;
}


stack trace:
(gdb) run
Starting program: /home/doug/testprg/a.out
[Thread debugging using libthread_db enabled]
[New Thread 46912496377392 (LWP 16809)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912496377392 (LWP 16809)]
0x0000003df6523ed0 in g_type_check_instance_is_a ()
from /usr/lib64/libgobject-2.0.so.0
(gdb) where
#0  0x0000003df6523ed0 in g_type_check_instance_is_a ()
from /usr/lib64/libgobject-2.0.so.0
#1  0x0000003df814bcb6 in gtk_radio_action_get_group ()
from /usr/lib64/libgtk-x11-2.0.so.0
#2  0x00000039234553b5 in Gtk::RadioAction::get_group ()
from /usr/lib64/libgtkmm-2.4.so.1
#3  0x0000003923455408 in Gtk::RadioAction::set_group ()
from /usr/lib64/libgtkmm-2.4.so.1
#4  0x00000039234558a7 in Gtk::RadioAction::RadioAction$base ()
from /usr/lib64/libgtkmm-2.4.so.1
#5  0x0000000000401dc1 in Radio_action (this=0x5477c0,
group= 0x7fff91a5a1d0) at testprg.cc:15
#6  0x0000000000401ef4 in (anonymous namespace)::Radio_action::create
(group= 0x7fff91a5a1d0) at testprg.cc:21
#7  0x0000000000401c54 in main (argc=1, argv=0x7fff91a5a2f8) at
testprg.cc:37


-- 
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: Thu, 10 Aug 2006 14:05:05 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 350734] segfault in RadioAction
	constructor
To: gtkmm-forge lists sourceforge net
Message-ID: <20060810140505 1451F6C40AA 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=350734
 gtkmm | general | Ver: 2.9.x





------- Comment #1 from Paul Davis  2006-08-10 14:04 UTC -------
Created an attachment (id=70644)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=70644&action=view)
Test case that doesn't segfault

Adding Glib::ObjectBase(0) to the static initialization of the constructor
prevents the segfault.


-- 
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: Thu, 10 Aug 2006 14:24:40 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 350734] segfault in RadioAction
	constructor
To: gtkmm-forge lists sourceforge net
Message-ID: <20060810142440 EB5CD6C40AE 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=350734
 gtkmm | general | Ver: 2.9.x





------- Comment #2 from jonner  2006-08-10 14:24 UTC -------
Interesting.  Clearly we don't want to have to actually do that manually in our
derived classes though.  I don't have a lot of time in the next few days, but
i'll try to dig into this a bit more at some point unless somebody comes up
with something better before I get to it.


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



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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

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

_______________________________________________
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 13
******************************************



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