Gtkmm-forge digest, Vol 1 #962 - 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 313309] New: Libpanelappletmm Applet::on_change_background has const pixmap parameter (bugzilla-daemon bugzilla gnome org)

--__--__--

Message: 1
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Date: Fri, 12 Aug 2005 05:09:57 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 313309] New: Libpanelappletmm Applet::on_change_background has const pixmap parameter

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

 http://bugzilla.gnome.org/show_bug.cgi?id=3D313309
 gnomemm | libgnomemm | Ver: unspecified

           Summary: Libpanelappletmm Applet::on_change_background has con=
st
                    pixmap parameter
           Product: gnomemm
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: libgnomemm
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: mh21 piware de
                CC: all-bugs bugzilla gnome org


If you want to handle the on_change_background signal, you get problems w=
ith
pixmap being const when you want to set the background pixmap for a style=
. A
workaround at the moment is

void ...::on_change_background (Gnome::Panel::AppletBackgroundType type,
  const Gdk::Color& color, const Glib::RefPtr<const Gdk::Pixmap>& pixmap)
{
    unset_style();
    switch (type) {
      case Gnome::Panel::NO_BACKGROUND:
        break;
      case Gnome::Panel::COLOR_BACKGROUND:
        modify_bg (Gtk::STATE_NORMAL, color);
        break;
      case Gnome::Panel::PIXMAP_BACKGROUND:
        Glib::RefPtr<Gtk::Style> style =3D get_style()->copy();
        // const problem
----->  style->set_bg_pixmap (Gtk::STATE_NORMAL,
          Glib::wrap ((GdkPixmapObject*)pixmap->gobj(), true));
        set_style (style);
        break;
    }
    SUPER::on_change_background (type, color, pixmap);
}

set_bg_pixmap is
void Gtk::Style::set_bg_pixmap (Gtk::StateType state_type,
  const Glib::RefPtr<Gdk::Pixmap>& pixmap)

I'm not sure whether this is a gtkmm or libpanelappletmm problem and whet=
her
this bug belongs here at all.

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