Gtkmm-forge digest, Vol 1 #864 - 1 msg



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. Do not try to unsubscribe gtkmm-forge from gtkmm-list.


Today's Topics:

   1. [Bug 163382] Gtk-WARNING from running a Gtk::MessageDialog (bugzilla-daemon bugzilla gnome org)

--__--__--

Message: 1
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Sun, 30 Jan 2005 13:44:05 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 163382] Gtk-WARNING from running a Gtk::MessageDialog

Please DO NOT reply to this by email. All additional comments should be made in
the comments box of this bug report.

 http://bugzilla.gnome.org/show_bug.cgi?id=163382
 gtkmm | general | Ver: 2.2





------- Additional Comments From chris cvine freeserve co uk  2005-01-30 13:44 -------
This warning occurs with Gtk::MessageDialog in gtkmm-2.2 when it is used with
gtk+-2.4 or gtk+-2.6.  It does not occur with gtkmm-2.4/2.5, nor with gtkmm-2.2
if used with gtk+-2.2.

The warning is harmless, but there are people who use gtkmm-2.2 with later
versions of gtk+, say because they are still using gcc-2.95 (or because of old
code which has not been rewritten to deal with the API changes between gtkmm-2.2
and gtkmm-2.4, which is why gtkmm-2.2 is parallel installable with gtkmm-2.4 in
the first place), so it would be handy to deal with this if gtkmm-2.2 is still
being maintained.

I looked into this some time ago when I first noticed these warnings, and the
background to it is that a call to gtk_dialog_set_has_separator() does not now
do anything with a GtkMessageDialog object in gtk+-2.4 and 2.6.  It does do
something in gtk+-2.0 and 2.2 (it puts a line between the buttons in the message
box and the text above).  Someone seems to have taken the view that this was not
desirable behaviour for that kind of dialog and it was made a null-op in
gtk+2.4.  A warning about this was added to gtk+2.4 - it reports that the call
is ignored, as reported in the bug report.  The call to
Gtk::Dialog::set_has_separator() in the constructors of Gtk::MessageBox was
accordingly also removed in gtkmm-2.4, as was the use_separator argument of the
constructors.

The resolution would be to remove the call to it in the constructors of
Gtk::MessageBox in gtkmm-2.2 also (but keep the use_separator argument of the
constructors so as not to break any code) where both (a) gtkmm-2.2 is compiled
against gtk+-2.4 or above and (b) the use_separator argument is passed the
default value of false (where it is passed a value of true the warning emitted
by gtk+ that it is ignored would still be useful).  gtk/gtkversion.h has
defines/macros which enable this.  

If you are willing to make this change to an old version of gtkmm I can send you
a patch.

------- You are receiving this mail because: -------
You are the assignee for the bug.



--__--__--

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