[gtkmm] Gtkmm-forge digest, Vol 1 #382 - 3 msgs



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


Today's Topics:

   1. [Bug 109316] New - Documentation tells to manually free get_path return value. (bugzilla-daemon widget gnome org)
   2. [Bug 109334] New - Pango::AttrList problem (bugzilla-daemon widget gnome org)
   3. [Bug 109334] Changed - Pango::AttrList problem (bugzilla-daemon widget gnome org)

--__--__--

Message: 1
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Thu, 27 Mar 2003 04:53:08 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109316] New - Documentation tells to manually free get_path return value.

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=109316

Changed by markus gerwinski de 

--- shadow/109316	Thu Mar 27 04:53:08 2003
+++ shadow/109316.tmp.15142	Thu Mar 27 04:53:08 2003
@@ -0,0 +1,22 @@
+Bug#: 109316
+Product: gtkmm
+Version: 2.2
+OS: Linux
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: reference documentation
+AssignedTo: gtkmm-forge lists sourceforge net                            
+ReportedBy: markus gerwinski de               
+QAContact: gtkmm-forge lists sourceforge net
+TargetMilestone: ---
+URL: 
+Summary: Documentation tells to manually free get_path return value.
+
+The reference documentation for the method Gtk::TreeModel::get_path() tells
+you to manually free the returned Gtk::TreePath instance using
+gtk_tree_path_free(). This instruction is most probably obsolete and should
+be removed from the documentation. Developers using Gtkmm can ignore it: The
+get_path return value needn't be manually freed.



--__--__--

Message: 2
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Thu, 27 Mar 2003 11:17:00 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109334] New - Pango::AttrList problem

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=109334

Changed by ec142 york ac uk 

--- shadow/109334	Thu Mar 27 11:17:00 2003
+++ shadow/109334.tmp.27550	Thu Mar 27 11:17:00 2003
@@ -0,0 +1,101 @@
+Bug#: 109334
+Product: gtkmm
+Version: 2.2
+OS: Linux
+OS Details: redhat 7.2
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: general
+AssignedTo: gtkmm-forge lists sourceforge net                            
+ReportedBy: ec142 york ac uk               
+TargetMilestone: ---
+URL: 
+Summary: Pango::AttrList problem
+
+I get segmentation fault from the following program.
+If I comment out the line 
+	labelAttributes.insert( attr );
+in the constructor, the program works.
+
+I have tryed with both Gtk::Fixed and Gtk::Frame. 
+If the label is displayed in the constructor the problem disappears.
+The problem seems not to be related to the use of polimorfism on the 
+widget, as I have tryed to replace Gtk::Widget *widget with Gtk::Label 
+*widget, and I get segmentation fault as well.
+
+
+
+#include <gtkmm/main.h>
+#include <gtkmm/window.h>
+#include <gtkmm/fixed.h>
+#include <gtkmm/frame.h>
+#include <gtkmm/label.h>
+
+
+
+class Screen : public Gtk::Window{
+protected:
+	Gtk::Frame screenContainer;
+	Gtk::Widget *widget;
+	//Gtk::Label *widget;
+public:
+	Screen();
+	~Screen();
+	void refresh();
+};
+
+
+Screen::Screen()
+{
+	set_default_size(600,600);
+	Pango::Attribute attr = Pango::Attribute::create_attr_size(30000);
+	Pango::AttrList labelAttributes;
+	labelAttributes.insert( attr );
+	Gtk::Label *label = manage( new Gtk::Label("4") );
+	label->set_attributes(labelAttributes);
+	widget = label;
+
+	//screenContainer.put( *widget, 300, 300 );
+  	add( screenContainer );
+  	show_all();
+}
+
+Screen::~Screen(){
+	if( widget != NULL ){ 
+		delete widget; 
+	}
+}
+
+
+void Screen::refresh()
+{
+	//screenContainer.put(*widget,200,200);
+	screenContainer.add(*widget);
+	show_all();
+	queue_draw();
+
+	return;
+}
+
+int main (int argc, char *argv[])
+{
+  Gtk::Main kit(argc, argv);
+  Screen screen;
+  screen.refresh();
+  kit.run(screen);
+  return 0;
+}
+
+
+This is what I get in gdb:
+
+Program received signal SIGSEGV, Segmentation fault.
+0x40590c0e in pango_attribute_copy (attr=0x8081248) at pango-
+attributes.c:8686        
+result = attr->klass->copy (attr);
+Current language:  auto; currently c
+
+Regards,
+Enrico Costanza



--__--__--

Message: 3
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, ec142 york ac uk
Cc: 
Date: Thu, 27 Mar 2003 11:28:52 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109334] Changed - Pango::AttrList problem

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=109334

Changed by murrayc usa net 

--- shadow/109334	Thu Mar 27 11:17:00 2003
+++ shadow/109334.tmp.31736	Thu Mar 27 11:28:52 2003
@@ -96,6 +96,9 @@
 attributes.c:8686        
 result = attr->klass->copy (attr);
 Current language:  auto; currently c
 
 Regards,
 Enrico Costanza
+
+------- Additional Comments From murrayc usa net  2003-03-27 11:28 -------
+Thanks. In future, please attach example code rather than pasting it.




--__--__--

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


End of Gtkmm-forge Digest



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