[gtkmm] Gtkmm-forge digest, Vol 1 #218 - 7 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 92511] New - Pango::Context::set_font_description causes app to abort when layout is drawn (bugzilla-daemon widget gnome org)
   2. [Bug 92514] New - pangomm has some bugs and incomplete documentation (bugzilla-daemon widget gnome org)
   3. [Bug 92514] Changed - pangomm has some bugs and incomplete documentation (bugzilla-daemon widget gnome org)
   4. [Bug 92514] Changed - pangomm has some bugs and incomplete documentation (bugzilla-daemon widget gnome org)
   5. [Bug 92516] New - perl-5.8.0 break file generation (bugzilla-daemon widget gnome org)
   6. [Bug 92516] Changed - perl-5.8.0 break file generation (bugzilla-daemon widget gnome org)
   7. [Bug 92208] Changed - Unable to inherit from items (bugzilla-daemon widget gnome org)

--__--__--

Message: 1
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed,  4 Sep 2002 16:00:18 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 92511] New - Pango::Context::set_font_description causes app to abort when layout is drawn

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

Changed by pcrosby pobox com 

--- shadow/92511	Wed Sep  4 16:00:18 2002
+++ shadow/92511.tmp.14226	Wed Sep  4 16:00:18 2002
@@ -0,0 +1,91 @@
+Bug#: 92511
+Product: gtkmm
+Version: 2.0
+OS: Linux
+OS Details: Linux merckx 2.4.19-rc5 #1 Thu Aug 1 14:59:31 PDT 2002 i686 unknown
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: general
+AssignedTo: gtkmm-forge lists sourceforge net                            
+ReportedBy: pcrosby pobox com               
+TargetMilestone: ---
+URL: 
+Summary: Pango::Context::set_font_description causes app to abort when layout is drawn
+
+if i try to change the font using a pango context, the app aborts when i
+try to draw the pango layout.
+
+here is some example code:
+
+Gtk::Window* pWin = NULL;  // excuse the global...it's just a test app
+typedef Glib::ArrayHandle< Glib::RefPtr<Pango::FontFamily> > tFontList;
+
+bool
+draw(GdkEventExpose* pEvent)
+{
+
+    // -------------------------------------------------------------------
+    // this is the only way that works and allows you to change the font:
+    // -------------------------------------------------------------------
+    //                                                                    
+    // Glib::RefPtr<Pango::Layout> pLayout = 
+    //     pWin->create_pango_layout("Pango Test Application");
+    // Pango::FontDescription font("fixed");
+    // pLayout->set_font_description(font); 
+
+    // ------------------------------------------------------------------
+    // broken examples below:
+    // ------------------------------------------------------------------
+
+    // this never works
+    //
+//  Glib::RefPtr<Pango::Context> pContext = Pango::Context::create();
+
+    // both of these work as long as i don't call set_font_description below
+    //
+//  Glib::RefPtr<Pango::Context> pContext = pWin->get_pango_context();
+    Glib::RefPtr<Pango::Context> pContext = pWin->create_pango_context();
+
+    // this displays a list of all my fonts, including "fixed"
+    //
+    tFontList pArray = pContext->list_families();
+    for (tFontList::const_iterator itr = pArray.begin();
+         itr != pArray.end(); ++itr) {
+         Glib::RefPtr<Pango::FontFamily> pFamily = *itr;
+         std::cout << pFamily->get_name() << std::endl;
+    }
+
+    // calling set_font_description causes the app to abort when     
+    // draw_layout
+    // is called, saying it can't find font "fixed" or any fallbacks,
+    // even though "fixed" is listed by the above code.  i've tried it
+    // with many other font names and it's always the same result.
+    //
+    Pango::FontDescription font("fixed");        
+    pContext->set_font_description(font);
+
+    Glib::RefPtr<Pango::Layout> pLayout = Pango::Layout::create(pContext);
+    pLayout->set_text("Pango Test Application");
+
+    Glib::RefPtr<Gdk::GC> gc = pWin->get_style()->get_black_gc();
+    pWin->get_window()->draw_layout(gc, 10, 10, pLayout);
+}
+
+int
+main(int argc, char* argv[])
+{
+	Gtk::Main kit(argc, argv);
+
+	pWin = new Gtk::Window(Gtk::WINDOW_TOPLEVEL);
+	
+	pWin->set_default_size(500, 100);
+
+	pWin->signal_expose_event().connect(SigC::slot(draw));
+	
+	pWin->show_all();
+
+	
+	kit.run();
+}



--__--__--

Message: 2
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed,  4 Sep 2002 16:23:41 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 92514] New - pangomm has some bugs and incomplete documentation

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

Changed by mhl schulze t-online de 

--- shadow/92514	Wed Sep  4 16:23:41 2002
+++ shadow/92514.tmp.17149	Wed Sep  4 16:23:41 2002
@@ -0,0 +1,83 @@
+Bug#: 92514
+Product: gtkmm
+Version: 2.0
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: general
+AssignedTo: gtkmm-forge lists sourceforge net                            
+ReportedBy: MHL Schulze t-online de               
+TargetMilestone: ---
+URL: 
+Summary: pangomm has some bugs and incomplete documentation
+
+Sorry, for the general summary. Straight forwardness from now on: here
+comes the ChangeLog :-)
+
+* api_status.txt: Reflect recent API additions to pangomm.
+* TODO: copy the TODO's from this ChangeLog.
+* tools/pm/DocParser.pm: Comment out conditional if-clause
+around conversion from C documentation to C++. It prevented
+conversion of the documentation in *_docs_override.xml which
+currently is in the same style as *_docs.xml and lead to
+mistakes in our overridden gtk documentation.
+* pangomm/src/attributes.hg: Make Attr* default constructors
+protected. They don't produce legal attribute objects.
+Attribute::Attribute() produces an object with gobject_==0.
+This is handled as if it were an attribute of type ATTR_INVALID
+and allows wrapping of NULL return values from pango c functions.
+* pangomm/src/attriter.ccg: Correct possible bug in
+AttrIter::get_font(). (Taken a hint in pagno c ref doc serious :)
+* pangomm/src/attrlist.hg: Add default argument for: explicit
+AttrList::AttrList(const Glib::ustring&, gunichar accel_marker=0).
+* pangomm/src/context.hg:
+ - Remove _WRAP_CREATE(). It can't
+  possibly initialize the Pango::Context object correctly because
+  some PangoFontMap is needed from a pango backend.
+- Add default argument Language() for the language parameter of
+  Context::get_metrics. TODO: Use a function overload instead.
+* pangomm/src/coverage.{hg,ccg}: - Change Coverage::to_bytes()
+to return a Glib::ArrayHandle<unsigned char> instead of an
+guchar* array that needs to be freed with g_free() by hand.
+- Remove Coverage::copy(). The pango docs state that is is
+  superfluous.
+* pangomm/src/font.hg:
+- Add default argument Language() for the
+  language parameter of Font::get_metrics().
+  TODO: Use a function overload instead.
+- TODO: Ask list whether we really need
+  Font::get_glyph_extents_{ink,logical}_rect_only().
+* pangomm/src/fontdescription.hg: TODO: Investigate the following:
+FontDescription::{set_family_static,merge_static} look as
+if they could lead to undefined results and corrupted data.
+* pangomm/src/glyph.{hg,ccg}:
+- Add Glib::wrap(PangoGlyphInfo*). I forget it last time.
+- Comment out set_* in GlyphInfo and GlyphGeometry. They don't make sense
+  as GlyphInfo and GlyphGeometry are merely output classes to the user.
+* pangomm/src/glyphstring.{hg,ccg}:
+- Add GlyphString::GlyphString(const Glib::ustring&, const Analysis&).
+  This wraps pango_shape which didn't do up to now.
+- Make GlyphString::get_logical_widths, GlyphString::index_to_x and
+  GlyphString::x_to_index calculate take the size of the passed text
+  parameter from the Glib::ustring itself rather than demanding an
+  extra argument. GlyphString::get_logical_width now allocaltes an
+  array to store the results rather than expecting the user to do this.
+* pangomm/src/item.{hg,ccg}: Add Item::get_segment() and Item::shape().
+  The former computes the text segment that is covered by the item
+  (convenience one-line-function not available in pango), the latter
+  wraps the new GlyphString constructor and thus pango_shape().
+* pangomm/src/language.{hg,ccg}:
+- Add Language::Language() that constructs an object with gobject_==0.
+- Adapt Language::get_string to allow for objects with gobjct_==0.
+- TODO: Change const char* into std::string.
+* pangomm/src/layout.ccg: Bug fix: use text.bytes() instead of ext.size().
+* pangomm/src/layout.hg: Bug fix: use refreturn parameter of _WRAP_METHOD
+for Layout::get_context() and Layout::get_line().
+* pangomm/src/layoutiter.hg: Bug fix: use refreturn parameter of
+_WRAP_METHOD for LayoutIter::get_line().
+* pangomm/src/{*.hg,*.ccg}: Add lots of documentation.
+I hope that some things I had to learn the hard way become clear
+in the class description of Pango::Context.



--__--__--

Message: 3
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed,  4 Sep 2002 16:25:32 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 92514] Changed - pangomm has some bugs and incomplete documentation

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

Changed by mhl schulze t-online de 

--- shadow/92514	Wed Sep  4 16:23:41 2002
+++ shadow/92514.tmp.17484	Wed Sep  4 16:25:31 2002
@@ -78,6 +78,11 @@
 for Layout::get_context() and Layout::get_line().
 * pangomm/src/layoutiter.hg: Bug fix: use refreturn parameter of
 _WRAP_METHOD for LayoutIter::get_line().
 * pangomm/src/{*.hg,*.ccg}: Add lots of documentation.
 I hope that some things I had to learn the hard way become clear
 in the class description of Pango::Context.
+
+------- Additional Comments From MHL Schulze t-online de  2002-09-04 16:25 -------
+Created an attachment (id=10903)
+pangomm-refdoc.diff.gz: (Almost) complete documentation for pangomm and bug and API fixes.
+



--__--__--

Message: 4
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed,  4 Sep 2002 16:28:10 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 92514] Changed - pangomm has some bugs and incomplete documentation

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

Changed by mhl schulze t-online de 

--- shadow/92514	Wed Sep  4 16:25:31 2002
+++ shadow/92514.tmp.17797	Wed Sep  4 16:28:10 2002
@@ -83,6 +83,11 @@
 in the class description of Pango::Context.
 
 ------- Additional Comments From MHL Schulze t-online de  2002-09-04 16:25 -------
 Created an attachment (id=10903)
 pangomm-refdoc.diff.gz: (Almost) complete documentation for pangomm and bug and API fixes.
 
+
+------- Additional Comments From MHL Schulze t-online de  2002-09-04 16:28 -------
+Created an attachment (id=10904)
+pango_docs_override.xml.gz: Some overrides for inappropriate pango docs. No diff because there is nothing to diff against :(
+



--__--__--

Message: 5
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed,  4 Sep 2002 16:39:01 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 92516] New - perl-5.8.0 break file generation

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

Changed by szombath bifab de 

--- shadow/92516	Wed Sep  4 16:39:01 2002
+++ shadow/92516.tmp.20572	Wed Sep  4 16:39:01 2002
@@ -0,0 +1,57 @@
+Bug#: 92516
+Product: gtkmm
+Version: 2.0
+OS: SunOS
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: build
+AssignedTo: gtkmm-forge lists sourceforge net                            
+ReportedBy: szombath bifab de               
+TargetMilestone: ---
+URL: 
+Summary: perl-5.8.0 break file generation
+
+Have unintentially perl-5.8.0 results in a desaster:
+
+/home/software/bin/perl -I../../tools/pm ../../tools/gtkmmproc -I
+../../tools/m4 --defs .  thread . ./../glibmm
+Illegal character in prototype for Enum::parse_values : $,$ at
+../../tools/pm/Enum.pm line 78.
+Illegal character in prototype for Enum::build_element_list : $,$,$,$ at
+../../tools/pm/Enum.pm line 151.
+Illegal character in prototype for GtkDefs::lookup_property : $,$ at
+../../tools/pm/GtkDefs.pm line 305.
+Illegal character in prototype for GtkDefs::Function::parse_param : $,$ at
+../../tools/pm/GtkDefs.pm line 436.
+Illegal character in prototype for Function::new : $,$ at
+../../tools/pm/Function.pm line 53.
+Illegal character in prototype for Function::new_ctor : $,$ at
+../../tools/pm/Function.pm line 106.
+Illegal character in prototype for Function::parse_param : $,$ at
+../../tools/pm/Function.pm line 156.
+Illegal character in prototype for Function::add_parameter_autoname : $,$
+at ../../tools/pm/Function.pm line 283.
+Illegal character in prototype for Function::add_parameter : $,$,$ at
+../../tools/pm/Function.pm line 292.
+Illegal character in prototype for WrapParser::error : $,$ at
+../../tools/pm/WrapParser.pm line 152.
+Illegal character in prototype for WrapParser::on_class : $,$class_command
+at ../../tools/pm/WrapParser.pm line 401.
+Illegal character in prototype for WrapParser::on_wrap_vfunc : $,$ at
+../../tools/pm/WrapParser.pm line 888.
+Illegal character in prototype for WrapParser::output_wrap_check :
+$,$,$,$,$,$ at ../../tools/pm/WrapParser.pm line 1003.
+Illegal character in prototype for WrapParser::output_wrap_signal : $,$,$,$,$,$
+at ../../tools/pm/WrapParser.pm line 1027.
+Illegal character in prototype for WrapParser::output_wrap_vfunc :
+$,$,$,$,$,$ at ../../tools/pm/WrapParser.pm line 1078.
+Use of uninitialized value in string eq at ../../tools/pm/WrapParser.pm
+line 175.
+
+The 'illegal character in prototype' message come from the prototype like
+for subs, eg:
+
+sub parse_values($, $)



--__--__--

Message: 6
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed,  4 Sep 2002 16:46:37 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 92516] Changed - perl-5.8.0 break file generation

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

Changed by szombath bifab de 

--- shadow/92516	Wed Sep  4 16:39:01 2002
+++ shadow/92516.tmp.21752	Wed Sep  4 16:46:37 2002
@@ -52,6 +52,21 @@
 line 175.
 
 The 'illegal character in prototype' message come from the prototype like
 for subs, eg:
 
 sub parse_values($, $)
+
+------- Additional Comments From szombath bifab de  2002-09-04 16:46 -------
+By changing
+
+  sub parse_values($, $)
+
+to
+
+  sub parse_values
+
+it works, The 'uninitialized value' error message seem to be more
+difficult to understand.
+
+
+  



--__--__--

Message: 7
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed,  4 Sep 2002 22:45:16 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 92208] Changed - Unable to inherit from items

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

Changed by indigo sempiternity org 

--- shadow/92208	Wed Sep  4 10:08:42 2002
+++ shadow/92208.tmp.17453	Wed Sep  4 22:45:16 2002
@@ -45,6 +45,22 @@
 Thanks for the report.
 
 This _might_ be related to this gcc 2.9* compiler bug:
 http://bugzilla.gnome.org/show_bug.cgi?id=78578
 
 Can you find a similar workaround for these classes?
+
+------- Additional Comments From indigo sempiternity org  2002-09-04 22:45 -------
+From what I've read about the possible compiler bug, it seems quite
+likely and matches up quite nicely to what I've observed in gdb. I
+have no way to verify, however. I've exchanged some emails with ERDI
+"cactus" Gergo about this bug, and he was unable to reproduce it. The
+other guy I'm working on the project with could reproduce the bug, and
+I've sent inqueries as to the compilers used to each. If anyone with
+gcc 3.2 or so could please test, we might get some idea of what's
+going on.
+
+As for a fix for the problem, I can't think of any workaround. Damn
+gcc sucks... Perhaps if someone could point me towards the specific
+dynamic_cast that's causing the problem I could rewrite it with static
+casts? I can't really require gcc 3.2, and I can't avoid inheriting
+without major troubles, so any ideas would be much apreciated :)




--__--__--

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