[gtkmm] Gtkmm-forge digest, Vol 1 #390 - 11 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 109826] Changed - new rpm spec file (bugzilla-daemon widget gnome org)
   2. [Bug 109826] Changed - new rpm spec file (bugzilla-daemon widget gnome org)
   3. [Bug 109828] Changed - rpm spec files (bugzilla-daemon widget gnome org)
   4. [Bug 109832] Changed - Lines' points change without warning (bugzilla-daemon widget gnome org)
   5. [Bug 109832] Changed - Lines' points change without warning (bugzilla-daemon widget gnome org)
   6. [Bug 109832] Changed - Lines' points change without warning (bugzilla-daemon widget gnome org)
   7. [Bug 103688] Changed - Updated timeout/io/idle chapter (bugzilla-daemon widget gnome org)
   8. [Bug 109882] New - CH2 of the Gtkmm book does not include Windows installation (bugzilla-daemon widget gnome org)
   9. [Bug 109826] Changed - new rpm spec file (bugzilla-daemon widget gnome org)
  10. [Bug 109826] Changed - new rpm spec file (bugzilla-daemon widget gnome org)
  11. [Bug 109828] Changed - rpm spec files (bugzilla-daemon widget gnome org)

--__--__--

Message: 1
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, gbpeck sbcglobal net
Cc: 
Date: Thu,  3 Apr 2003 01:15:26 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109826] Changed - new rpm spec file

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

Changed by murrayc usa net 

--- shadow/109826	Wed Apr  2 18:28:52 2003
+++ shadow/109826.tmp.18919	Thu Apr  3 01:15:26 2003
@@ -26,6 +26,12 @@
 
 
 ------- Additional Comments From gbpeck sbcglobal net  2003-04-02 18:28 -------
 Created an attachment (id=15413)
 Makefile patch to not build the examples directory
 
+
+------- Additional Comments From murrayc usa net  2003-04-03 01:15 -------
+re. gtkmm 2.2.spec file: Please provide a patch, not a whole file, 
+and not a file that is generated.
+re. Makefile patch: This file is also generated. Providing a cvs 
+patch will avoid this.



--__--__--

Message: 2
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, gbpeck sbcglobal net
Cc: 
Date: Thu,  3 Apr 2003 01:16:31 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109826] Changed - new rpm spec file

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

Changed by murrayc usa net 

--- shadow/109826	Thu Apr  3 01:15:26 2003
+++ shadow/109826.tmp.19369	Thu Apr  3 01:16:31 2003
@@ -32,6 +32,12 @@
 
 ------- Additional Comments From murrayc usa net  2003-04-03 01:15 -------
 re. gtkmm 2.2.spec file: Please provide a patch, not a whole file, 
 and not a file that is generated.
 re. Makefile patch: This file is also generated. Providing a cvs 
 patch will avoid this.
+
+------- Additional Comments From murrayc usa net  2003-04-03 01:16 -------
+re Makefile patch: Furthermore, what does this have to do with the 
+spec file and why would we want to do it?
+
+When you do provide a patch please patch the ChangeLog.



--__--__--

Message: 3
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, gbpeck sbcglobal net
Cc: 
Date: Thu,  3 Apr 2003 01:18:13 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109828] Changed - rpm spec files

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

Changed by murrayc usa net 

--- shadow/109828	Wed Apr  2 18:46:47 2003
+++ shadow/109828.tmp.19762	Thu Apr  3 01:18:12 2003
@@ -49,6 +49,10 @@
 
 
 ------- Additional Comments From gbpeck sbcglobal net  2003-04-02 18:46 -------
 Created an attachment (id=15421)
 libgnomeuimm spec file
 
+
+------- Additional Comments From murrayc usa net  2003-04-03 01:17 -------
+As I said in the gtkmm bug, these are all generated files, and you 
+should be providing patches instead of whole files.



--__--__--

Message: 4
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, glasse rpi edu
Cc: 
Date: Thu,  3 Apr 2003 01:18:27 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109832] Changed - Lines' points change without warning

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

Changed by murrayc usa net 

--- shadow/109832	Wed Apr  2 20:17:19 2003
+++ shadow/109832.tmp.20099	Thu Apr  3 01:18:27 2003
@@ -49,6 +49,9 @@
 move it, the endpoints have already changed -- specifically, the
 second endpoint changes to the second endpoint of the second line.
 
 Does anyone have any ideas? I can send you the source code of the
 entire project, if you like.
 
+
+------- Additional Comments From murrayc usa net  2003-04-03 01:18 -------
+A simple-as-possible test case might make this clearer.



--__--__--

Message: 5
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Thu,  3 Apr 2003 01:58:45 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109832] Changed - Lines' points change without warning

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

Changed by glasse rpi edu 

--- shadow/109832	Thu Apr  3 01:18:27 2003
+++ shadow/109832.tmp.4850	Thu Apr  3 01:58:45 2003
@@ -52,6 +52,144 @@
 Does anyone have any ideas? I can send you the source code of the
 entire project, if you like.
 
 
 ------- Additional Comments From murrayc usa net  2003-04-03 01:18 -------
 A simple-as-possible test case might make this clearer.
+
+------- Additional Comments From glasse rpi edu  2003-04-03 01:58 -------
+OK. Here's a simple program that tries to do the same thing. It's 113
+lines.
+
+#include <libgnomecanvasmm/canvas.h>
+#include <libgnomecanvasmm/init.h>
+#include <libgnomecanvasmm/line.h>
+#include <libgnomecanvasmm/rect.h>
+#include <gtkmm/window.h>
+#include <gtkmm/main.h>
+#include <iostream>
+#include <vector>
+using std::vector;
+using std::endl;
+using std::cout;
+
+class Simpletest: public Gtk::Window {
+public:
+  Simpletest();
+
+protected:
+  vector<Gnome::Canvas::Line*> lines;
+  Gnome::Canvas::Canvas * canvas;
+  bool on_item_event(GdkEvent* event);
+};
+
+
+Simpletest::Simpletest(){
+  canvas = manage(new Gnome::Canvas::Canvas());
+  add(*canvas);
+  canvas->set_flags(Gtk::CAN_FOCUS);
+  canvas->set_size_request(600, 400);
+  canvas->set_center_scroll_region(false);
+  Gnome::Canvas::Rect* rect = manage(new
+Gnome::Canvas::Rect(*canvas->root()));
+  rect->property_x1() = 0.0;
+  rect->property_y1() = 0.0;
+  rect->property_x2() = 600.0;
+  rect->property_y2() = 400.0;
+  rect->property_fill_color_rgba() = 0x10308000;
+  Gnome::Canvas::Points points;   
+  points.push_back(Gnome::Art::Point(100, 100));
+  points.push_back(Gnome::Art::Point(200, 200));
+  Gnome::Canvas::Line * line = 
+    manage(new Gnome::Canvas::Line(*canvas->root(), points));
+  lines.push_back(line);
+  points[0] = Gnome::Art::Point(100, 200);
+  points[1] = Gnome::Art::Point(200, 100);
+  line = manage(new Gnome::Canvas::Line(*canvas->root(), points));
+  lines.push_back(line);
+  rect->signal_event()
+    .connect(slot(*this, &Simpletest::on_item_event));
+  canvas->update_now();
+  show_all();
+  cout << lines[0]->property_points().get_value().size() << endl;
+  cout << lines[0]->property_points().get_value()[1].get_y() << endl;
+}
+
+
+bool Simpletest::on_item_event(GdkEvent * event){
+  static double startx, starty;
+  static double oldx, oldy;
+  static int button;
+  static bool dragging;
+  //  cout << p->labelstring << endl;
+  switch(event->type){
+  case GDK_BUTTON_PRESS:
+    startx = event->button.x;
+    starty = event->button.y;
+    oldx = startx;
+    oldy = starty;
+    button = event->button.button;
+    return true;
+    break;
+  case GDK_MOTION_NOTIFY:
+    if(button == 1){
+      dragging = true;
+      for(int i = 0; i < lines.size(); i++){
+	Gnome::Canvas::Points points;
+	points.push_back(lines[i]->property_points().get_value()[0]);
+	points.push_back(lines[i]->property_points().get_value()[1]);
+	//points.push_back(p->lines[i]->property_points().get_value()[2]);
+	cout << lines[i]->property_points().get_value().size() << endl;
+
+	cout << points[0].get_x() << ", " << points[0].get_y()
+	     << " -> " << points[1].get_x() << ", " << points[1].get_y()
+	     << " Delta: " << event->button.x - oldx << ", "
+	     << event->button.y - oldy << endl;
+	points[0] += 
+	  Gnome::Art::Point(event->button.x - oldx, event->button.y - oldy);
+	//	cout << points.size() << endl;
+	cout << points[0].get_x() << ", " << points[0].get_y()
+	     << " -> " << points[1].get_x() << ", " << points[1].get_y()
+	     << endl;
+	lines[i]->property_points().set_value(points);
+      }
+	canvas->update_now();
+	cout << endl;
+      oldx = event->button.x;
+      oldy = event->button.y;
+    }
+    return true;
+    break;
+  case GDK_BUTTON_RELEASE:
+    button = 0;
+    return true;
+    break;
+  }
+  return false;
+}
+int main(int argc, char * argv[]){
+  Gnome::Canvas::init();
+  Gtk::Main app(argc, argv);
+  Simpletest sbw;
+  app.run(sbw);
+  return 0;
+}
+
+
+What I think should happen:
+The first line should print out 2. That is the first cout -- it
+happens at the end of the Simpletest constructor. The
+line.property_points().get_value() should be a vector of two points,
+shouldn't it? Maybe I misinterpreted the function names.
+
+The second line should be 200. lines[0] is the first line pointer,
+constructed from (100, 100) to (200, 200).
+lines[0]->property_points.get_value()[1] should be the second
+Gnome::Art::Point, (200, 200). Thus, the y coord should be 200.
+
+Click the blue rectangle and move it around. The lines move -- but
+IMMEDIATELY the first line relocates its second point to be the same
+as the second line's second point. This is the phenomenon I'm getting.
+The output shows each line's endpoints before and after the move
+(delta is how much they should move by). It is entirely possible that
+I wrote bad code.
+



--__--__--

Message: 6
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Thu,  3 Apr 2003 02:28:29 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109832] Changed - Lines' points change without warning

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

Changed by glasse rpi edu 

--- shadow/109832	Thu Apr  3 01:58:45 2003
+++ shadow/109832.tmp.17032	Thu Apr  3 02:28:29 2003
@@ -190,6 +190,26 @@
 IMMEDIATELY the first line relocates its second point to be the same
 as the second line's second point. This is the phenomenon I'm getting.
 The output shows each line's endpoints before and after the move
 (delta is how much they should move by). It is entirely possible that
 I wrote bad code.
 
+
+------- Additional Comments From glasse rpi edu  2003-04-03 02:28 -------
+OK, I just cut and pasted the first cout statement to right after line
+is created, and right after it has been pushed back, and it stays the
+same (not 200). Neither is it 200 if I change it to get_x(). So I'm
+obviously missing the point.
+
+line->property_points() returns PropertyProxy<Gnome::Canvas::Points>.
+line->property_points().get_value() should return
+Gnome::Canvas::Points, which is essentially a std::vector. Thus, when
+I create a line with a Gnome::Canvas::Points with two points in it,
+that vector should be size two, with those two points at vector[0] and
+vector[1].
+line->property_points().get_value()[1] should be one of those points
+-- Gnome::Art::Point -- the second endpoint. 
+(line->property_points().get_value()[0] remains (100, 100))
+line->property_points().get_value()[1].get_y() should be the y-coord
+of the second endpoint of the line.
+
+Which parts of the above are wrong?



--__--__--

Message: 7
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, gtkmmbugs rdrtech com
Cc: 
Date: Thu,  3 Apr 2003 11:25:24 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 103688] Changed - Updated timeout/io/idle chapter

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

Changed by gene erachampion com 

--- shadow/103688	Tue Apr  1 01:41:00 2003
+++ shadow/103688.tmp.32339	Thu Apr  3 11:25:24 2003
@@ -134,6 +134,9 @@
 the &lt; and &gt symbols to < and > respectively.  Do you want me to 
 resubmit a patch or can you make the changes when you apply the above 
 patch? (about 3-4 places in that one file).
 
 ------- Additional Comments From murrayc usa net  2003-04-01 01:40 -------
 Please revise the patch. I might be able to apply this at the weekend.
+
+------- Additional Comments From gene erachampion com  2003-04-03 11:25 -------
+I'll have a revised patch for you this weekend! =)



--__--__--

Message: 8
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Thu,  3 Apr 2003 11:31:56 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109882] New - CH2 of the Gtkmm book does not include Windows installation

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

Changed by gene erachampion com 

--- shadow/109882	Thu Apr  3 11:31:56 2003
+++ shadow/109882.tmp.3913	Thu Apr  3 11:31:56 2003
@@ -0,0 +1,28 @@
+Bug#: 109882
+Product: gtkmm
+Version: 2.0
+OS: Windows
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: minor
+Priority: Normal
+Component: reference documentation
+AssignedTo: gtkmm-forge lists sourceforge net                            
+ReportedBy: gene erachampion com               
+QAContact: gtkmm-forge lists sourceforge net
+TargetMilestone: ---
+URL: 
+Summary: CH2 of the Gtkmm book does not include Windows installation
+
+Chapter 2 of the Gtkmm book does not include installation instructions for 
+the Windows platform.
+
+See:
+http://www.gtkmm.org/gtkmm2/docs/tutorial/html/ch02.html
+
+The windows installation instructions should probably describe how to 
+install Gtkmm 2.x from the various binaries provided, rather than going 
+into details of compiling sources.  
+
+I'll try and have an initial patch for this by this weekend.



--__--__--

Message: 9
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, gbpeck sbcglobal net
Cc: 
Date: Thu,  3 Apr 2003 17:55:20 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109826] Changed - new rpm spec file

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

Changed by gbpeck sbcglobal net 

--- shadow/109826	Thu Apr  3 01:16:31 2003
+++ shadow/109826.tmp.2436	Thu Apr  3 17:55:20 2003
@@ -38,6 +38,18 @@
 
 ------- Additional Comments From murrayc usa net  2003-04-03 01:16 -------
 re Makefile patch: Furthermore, what does this have to do with the 
 spec file and why would we want to do it?
 
 When you do provide a patch please patch the ChangeLog.
+
+------- Additional Comments From gbpeck sbcglobal net  2003-04-03 17:55 -------
+Sorry, I'm reattaching my changes as a patch. It's against version
+2.2.1 as I have no interest (or time at the moment) to track CVS gtkmm. 
+
+Regarding the Makefile patch: the examples directory is not included
+in SUBDIRS of any of the other gtkmm projects; it doesn't need to be
+compiled for binary packages; it adds significantly to the compile
+time; and, most importantly, it doesn't always compile (at least in
+2.2.1), which breaks rebuilds. I strongly suggest not shipping release
+versions of packages which won't build cleanly with a simple
+./configure; make; make install.



--__--__--

Message: 10
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, gbpeck sbcglobal net
Cc: 
Date: Thu,  3 Apr 2003 17:57:35 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109826] Changed - new rpm spec file

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

Changed by gbpeck sbcglobal net 

--- shadow/109826	Thu Apr  3 17:55:20 2003
+++ shadow/109826.tmp.3533	Thu Apr  3 17:57:35 2003
@@ -50,6 +50,11 @@
 in SUBDIRS of any of the other gtkmm projects; it doesn't need to be
 compiled for binary packages; it adds significantly to the compile
 time; and, most importantly, it doesn't always compile (at least in
 2.2.1), which breaks rebuilds. I strongly suggest not shipping release
 versions of packages which won't build cleanly with a simple
 ./configure; make; make install.
+
+------- Additional Comments From gbpeck sbcglobal net  2003-04-03 17:57 -------
+Created an attachment (id=15450)
+new spec file, Makefile fix, and ChangeLog additions in patch format
+



--__--__--

Message: 11
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, gbpeck sbcglobal net
Cc: 
Date: Thu,  3 Apr 2003 18:07:23 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 109828] Changed - rpm spec files

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

Changed by gbpeck sbcglobal net 

--- shadow/109828	Thu Apr  3 01:18:12 2003
+++ shadow/109828.tmp.8561	Thu Apr  3 18:07:23 2003
@@ -53,6 +53,22 @@
 libgnomeuimm spec file
 
 
 ------- Additional Comments From murrayc usa net  2003-04-03 01:17 -------
 As I said in the gtkmm bug, these are all generated files, and you 
 should be providing patches instead of whole files.
+
+------- Additional Comments From gbpeck sbcglobal net  2003-04-03 18:07 -------
+In the cases of gconfmm, libbonobomm, libbonobouimm, and
+libglademm, there are no spec files in the distribution. So the full
+file is equivalent to a patch.
+
+libgnomecanvasmm, libgnomemm, and libgnomeuimm include spec files
+which are completely broken and from gnomemm 1.x (circa 2001). The
+attached files should just replace what's currently there.
+
+As far as the files being generated, I'm sorry about that. I should
+have attached .in versions of the files. However, the only difference
+is that the first line of each file would be:
+%define version		@VERSION@
+instead of what's currently there. I'd rather save everyone some
+bandwidth and not repost such a minor change.




--__--__--

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