[gtkmm] Gtkmm-forge digest, Vol 1 #366 - 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 106331] Changed - Building errors out no matter what happens (bugzilla-daemon widget gnome org)
   2. [Bug 108233] New - GdK::gc:get_screen() will return corrupt reference (bugzilla-daemon widget gnome org)
   3. [Bug 108240] New - Examples/book source files not installed by 'make install' (bugzilla-daemon widget gnome org)

--__--__--

Message: 1
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, mrproper ximian com
Cc: 
Date: Wed, 12 Mar 2003 03:12:16 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 106331] Changed - Building errors out no matter what happens

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

Changed by murrayc usa net 

--- shadow/106331	Mon Mar 10 07:34:17 2003
+++ shadow/106331.tmp.6960	Wed Mar 12 03:12:16 2003
@@ -1,13 +1,13 @@
 Bug#: 106331
 Product: gnomemm
 Version: unspecified
 OS: other
 OS Details: 
-Status: UNCONFIRMED   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: normal
 Priority: Normal
 Component: build
 AssignedTo: gtkmm-forge lists sourceforge net                            
 ReportedBy: mrproper ximian com               
 TargetMilestone: ---
@@ -62,6 +62,11 @@
 ------- Additional Comments From murrayc usa net  2003-03-06 11:05 -------
 Please try the latest version.
 
 ------- Additional Comments From murrayc usa net  2003-03-10 07:34 -------
 If you do not respond then I will assume that the problem was fixed by
 a more recent version.
+
+------- Additional Comments From murrayc usa net  2003-03-12 03:12 -------
+It looks like this was posted a while ago, but we didn't see it 
+because of some bugzilla problem. Out of date, probably fixed by a 
+later version.



--__--__--

Message: 2
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed, 12 Mar 2003 13:56:22 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 108233] New - GdK::gc:get_screen() will return corrupt reference

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

Changed by sfs cs tu-berlin de 

--- shadow/108233	Wed Mar 12 13:56:22 2003
+++ shadow/108233.tmp.30508	Wed Mar 12 13:56:22 2003
@@ -0,0 +1,76 @@
+Bug#: 108233
+Product: gtkmm
+Version: 2.2
+OS: Linux
+OS Details: SuSE8.0
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: general
+AssignedTo: gtkmm-forge lists sourceforge net                            
+ReportedBy: sfs cs tu-berlin de               
+TargetMilestone: ---
+URL: 
+Summary: GdK::gc:get_screen() will return corrupt reference
+
+The following program:
+
+------------------- snip ------------------------------
+
+#include <gtkmm/main.h>
+#include <gtkmm/window.h>
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+  Gtk::Main main_runner(argc, argv);
+  Gtk::Window foo;
+  foo.show_all();
+  
+  Glib::RefPtr<Gdk::GC> gc = Gdk::GC::create(foo.get_window());
+  Glib::RefPtr<const Gdk::Screen> pScreen = gc->get_screen();
+  //pScreen->reference();
+  
+  return(0);
+}
+
+------------------------- snip ----------------------
+
+produces the following output on my machine:
+
+(bug:26672): GLib-GObject-CRITICAL **: file gobject.c: line 1337
+(g_object_unref): assertion `G_IS_OBJECT (object)' failed
+Segmentation fault
+
+I haven't tested it on any other platform yet. I discovered this problem
+with gtkmm-2.2.0 (release date 01/07/2003), using gtk-2.2.1 (02/02/2003).
+The commented line (pScreen->reference()) fixes this problem. It seems to
+stem from the get_screen() methods in Gdk::GC. (source file:
+gdk/gdkmm/gc.cc in the gtkmm-2.2.0 source package). The following patch
+seems to fix this, but I haven't tested if it causes any trouble with other
+components:
+
+-------- snip -------
+
+Glib::RefPtr<Screen> GC::get_screen()
+{
+//  return Glib::wrap(gdk_gc_get_screen(gobj()));
+  return Glib::wrap(gdk_gc_get_screen(gobj()), true);
+}
+
+Glib::RefPtr<const Screen> GC::get_screen() const
+{
+  //return Glib::wrap(gdk_gc_get_screen(const_cast<GdkGC*>(gobj())));
+  return Glib::wrap(gdk_gc_get_screen(const_cast<GdkGC*>(gobj())), true);
+}
+
+-------- snip --------
+
+The old code is still here as comments. The true forces wrap to increase
+the reference counter. This prevents an attempted double-free on the
+Gdk::Screen object returned by these functions.
+
+Hope this makes any sense.
+
+Bye, Sven



--__--__--

Message: 3
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed, 12 Mar 2003 14:29:54 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 108240] New - Examples/book source files not installed by 'make install'

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

Changed by cgustin ibelgique com 

--- shadow/108240	Wed Mar 12 14:29:53 2003
+++ shadow/108240.tmp.13979	Wed Mar 12 14:29:54 2003
@@ -0,0 +1,29 @@
+Bug#: 108240
+Product: gtkmm
+Version: 2.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: reference documentation
+AssignedTo: gtkmm-forge lists sourceforge net                            
+ReportedBy: cgustin ibelgique com               
+QAContact: gtkmm-forge lists sourceforge net
+TargetMilestone: ---
+URL: 
+Summary: Examples/book source files not installed by 'make install'
+
+The examples source files (in examples/book) are referenced in many 
+different places in the gtkmm book (docs/tutorial). However, the 
+corresponding .cc and .h files are not installed when doing a 'make 
+install'. This means that in the installed documentation (usually located 
+in share/doc/gtkmm-2.0), a bunch of links are broken. Even worst than 
+that, the corresponding links in the tutorial would require the examples 
+directory to be installed to share/doc/examples, which is of course not 
+the best solution !
+
+My opinion is that the book/* subdirs belongs to the docs/tutorial 
+directory instead of examples. This would make it much easier to create 
+installation rules for the corresponding .cc and .h files.




--__--__--

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