Gtkmm-forge Digest, Vol 13, Issue 7



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 447037] some signal names are duplicated with	different
      prototypes for the handlers (gtkmm (bugzilla.gnome.org))
   2. [Bug 350870] Extend gmmproc documentation
      (gtkmm (bugzilla.gnome.org))
   3. [Bug 450574] New: New tooltips API (gtkmm (bugzilla.gnome.org))
   4. [Bug 450574] New tooltips API (gtkmm (bugzilla.gnome.org))
   5. [Bug 450739] New: Chapter 15 makes reference to	Gdk::PixBuf,
      should be Pixbuf (gtkmm (bugzilla.gnome.org))
   6. [Bug 452130] New: Gdk::Rectangle::intersect()	modifies the
      calling object (gtkmm (bugzilla.gnome.org))
   7. [Bug 452135] New: Consider adding operator bool()	to
      Gdk::Rectangle (gtkmm (bugzilla.gnome.org))
   8. [Bug 452135] Consider adding operator bool() to
      Gdk::Rectangle (gtkmm (bugzilla.gnome.org))


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

Message: 1
Date: Fri, 22 Jun 2007 16:28:09 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 447037] some signal names are
	duplicated with	different prototypes for the handlers
To: gtkmm-forge lists sourceforge net
Message-ID: <20070622162809 0EC4B6C4271 box gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=447037

  gtkmm | general | Ver: 2.8.x

Murray Cumming changed:

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




------- Comment #1 from Murray Cumming  2007-06-22 16:28 UTC -------
> it's more of a problem for me at the moment as I'm trying to make a code
generator based on glade3 and using libglademm.
[snip]
> I'm also avoiding the class type that the signal is tied to if possible since
that makes the scanner more difficult.

I just don't think you should do that. You need to fix your code generator.
(Not that I think anyone should use a code generator).

This is like having different add() functions with different parameters. It's
OK, even if it's unnecessarily inconsistent. We can't change it now anyway
without breaking ABI.

You might file a bug about the inconsistency with GTK+, in case they ever do a
GTK+ 3.0 version.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=447037.



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

Message: 2
Date: Fri, 22 Jun 2007 16:44:21 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 350870] Extend gmmproc documentation
To: gtkmm-forge lists sourceforge net
Message-ID: <20070622164421 CCE486C4337 box gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=350870

  gtkmm | reference documentation | Ver: unspecified




------- Comment #3 from Murray Cumming  2007-06-22 16:44 UTC -------
> with functions that take a Callback as argument

If a) The callback would only be used for the lifetime of that function call,
just destroy it yourself afterwards. For instance *_foreach().
If b) The callback would be called only once, destroy it at the end of the
callback.
If c) the callback would be called several times after the function has
returned, destroy it in the destroy_func callback. If there is no destroy_func
parameter, file a bug. For instance *_cell_data_func().


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=350870.



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

Message: 3
Date: Sun, 24 Jun 2007 10:22:00 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 450574] New: New tooltips API
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-450574-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=450574

  gtkmm | general | Ver: 2.11.x
           Summary: New tooltips API
           Product: gtkmm
           Version: 2.11.x
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: marko marko anastasov name
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: 2.19/2.20
   GNOME milestone: Unspecified


Wrapped the Tooltip class and Widget's functions and signal.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=450574.



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

Message: 4
Date: Sun, 24 Jun 2007 10:22:53 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 450574] New tooltips API
To: gtkmm-forge lists sourceforge net
Message-ID: <20070624102253 40B456C41FF box gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=450574

  gtkmm | general | Ver: 2.11.x




------- Comment #1 from Marko Anastasov  2007-06-24 10:22 UTC -------
Created an attachment (id=90543)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=90543&action=view)
New files and patch


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=450574.



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

Message: 5
Date: Sun, 24 Jun 2007 20:47:12 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 450739] New: Chapter 15 makes reference
	to	Gdk::PixBuf, should be Pixbuf
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-450739-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=450739

  gtkmm | documentation | Ver: 2.10.x
           Summary: Chapter 15 makes reference to Gdk::PixBuf, should be
                    Pixbuf
           Product: gtkmm
           Version: 2.10.x
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: documentation
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: zoombat runbox com
     GNOME version: 2.17/2.18
   GNOME milestone: Unspecified


http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch15s06.html

the source snippet has a typo as in the subject


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=450739.



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

Message: 6
Date: Fri, 29 Jun 2007 03:24:37 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 452130] New:
	Gdk::Rectangle::intersect()	modifies the calling object
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-452130-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=452130

  gtkmm | general | Ver: unspecified
           Summary: Gdk::Rectangle::intersect() modifies the calling object
           Product: gtkmm
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: minor
          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


the behavior of Gdk::Rectangle::itersect is very surprising.  
if you have two rectangles A and B, and you do the following:
Gdk::Rectangle C = A.intersect (B);

Then C will be equal to the intersection of the two rectangles, but
surprisingly, A will also be changed so that it is equal to C.  The
implementation in rectangle.ccg is as follows:
Rectangle& Rectangle::intersect(const Rectangle& src2)
{
  gdk_rectangle_intersect(
      &gobject_, const_cast<GdkRectangle*>(&src2.gobject_), &gobject_);
  return *this;
}

So the underlying GTK+ API allows you to calculate an intersection without
modifying the original rectangle (A), but the gtkmm API does not -- it forces
you to modify A.  I would have rather expected the implementation to be
something like this:
Rectangle& Rectangle::intersect(const Rectangle& src2)
{
  Gdk::Rectangle intersection;
  gdk_rectangle_intersect(
      &gobject_, const_cast<GdkRectangle*>(&src2.gobject_),
intersection.gobj());
  return intersection;
}

I suppose this can't be changed now since there's probably an app somewhere
that depends on the current behavior, but it might be worth considering for
when we can break API.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=452130.



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

Message: 7
Date: Fri, 29 Jun 2007 03:44:59 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 452135] New: Consider adding operator
	bool()	to Gdk::Rectangle
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-452135-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=452135

  gtkmm | general | Ver: unspecified
           Summary: Consider adding operator bool() to Gdk::Rectangle
           Product: gtkmm
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          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


In C Gtk+, you can do the following:
if (gdk_rectangle_intersect (a, b, c))
{
  // the rectangles intersect
}

in gtkmm you can do this, but it is rather cumbersome:
bool rectangles_intersect;
c = a.intersect(b, rectangles_intersect);
if (rectangles_intersect)
{
  // the rectangles intersect
}

if Gdk::Rectangle had an operator bool() which returned true if the rectangle
was non-empty, it would make this less clumsy, e.g.:
if (c = a.intersect(b))
{
  // the rectangles intersect
}


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=452135.



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

Message: 8
Date: Fri, 29 Jun 2007 03:45:56 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 452135] Consider adding operator bool()
	to	Gdk::Rectangle
To: gtkmm-forge lists sourceforge net
Message-ID: <20070629034556 0C8FA6C4244 box gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=452135

  gtkmm | general | Ver: unspecified




------- Comment #1 from jonner  2007-06-29 03:45 UTC -------
Created an attachment (id=90845)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=90845&action=view)
patch to add Gdk::Rectangle::operator bool()

good idea or no?


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=452135.



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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

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


End of Gtkmm-forge Digest, Vol 13, Issue 7
******************************************



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