[gtkmm] Gtkmm-forge digest, Vol 1 #506 - 4 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 121615] New - Problems with Gdk::Pixbuf columns in Gtk::TreeView (bugzilla-daemon widget gnome org)
   2. [Bug 121615] Changed - Problems with Gdk::Pixbuf columns in Gtk::TreeView (bugzilla-daemon widget gnome org)
   3. [Bug 121615] Changed - Problems with Gdk::Pixbuf columns in Gtk::TreeView (bugzilla-daemon widget gnome org)
   4. [Bug 121646] New - won't build with older gcc (bugzilla-daemon widget gnome org)

--__--__--

Message: 1
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Sat,  6 Sep 2003 10:42:20 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 121615] New - Problems with Gdk::Pixbuf columns in Gtk::TreeView

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

Changed by nightslayer gmx de 

--- shadow/121615	Sat Sep  6 10:42:20 2003
+++ shadow/121615.tmp.29593	Sat Sep  6 10:42:20 2003
@@ -0,0 +1,120 @@
+Bug#: 121615
+Product: gtkmm
+Version: 2.2
+OS: Linux
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: TreeView
+AssignedTo: gtkmm-forge lists sourceforge net                            
+ReportedBy: nightslayer gmx de               
+TargetMilestone: ---
+URL: 
+Summary: Problems with Gdk::Pixbuf columns in Gtk::TreeView
+
+Hello!
+
+This bug was discussed in the gtkmm-mailing-list. A bugzilla post was
+requested.
+
+The Gtk::TreeView does not generate the correct default renderer for a
+Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> >. The default renderer
+causes errors on execution:
+
+(treev_test:568): GLib-GObject-WARNING **: unable to set property `text' of
+type `gchararray' from value of type `GdkPixbuf'
+
+I have prepared code, that should work but causes errors:
+
+--------8<--------
+
+#include <gtkmm/liststore.h>
+#include <gtkmm/treeview.h>
+#include <gtkmm/window.h>
+#include <gtkmm/main.h>
+
+static char* simple_icon_xpm[] =
+{
+  "10 10 2 1",
+  "     c None",
+  ".    c #000000",
+  "..........",
+  ".        .",
+  ". ...... .",
+  ". .    . .",
+  ". . .. . .",
+  ". . .. . .",
+  ". .    . .",
+  ". ...... .",
+  ".        .",
+  ".........."
+};
+
+static Glib::RefPtr<Gdk::Pixbuf> pixbuf_icon;
+
+class cListColumns : public Gtk::TreeModel::ColumnRecord
+{
+  public:
+    Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> > icon;
+    Gtk::TreeModelColumn<Glib::ustring> name;
+    cListColumns (void)
+      {
+        this->add(this->icon);
+        this->add(this->name);
+      }
+};
+
+class cListWindow : public Gtk::Window
+{
+  public:
+    cListColumns column_set;
+    Glib::RefPtr<Gtk::ListStore> store;
+    Gtk::TreeView tree_view;
+    cListWindow (void)
+      {
+        /* Fill store */
+        this->store = Gtk::ListStore::create (this->column_set);
+
+        Gtk::TreeModel::Row row = *(this->store->append());
+        row[this->column_set.icon] = pixbuf_icon;
+        row[this->column_set.name] = "Something";
+
+        row = *(this->store->append());
+        row[this->column_set.icon] = pixbuf_icon;
+        row[this->column_set.name] = "Another row";
+
+        /* Create cols */
+        this->tree_view.set_model (this->store);
+        /* This column causes errors. If I create the column
+         * manually with 
+         * iconcolumn->set_renderer(*imagerenderer, this->column_set.icon);
+         * the code works.
+         */
+        this->tree_view.append_column("Icon", this->column_set.icon);
+        /* This one works well. */
+        this->tree_view.append_column("Name", this->column_set.name);
+
+        this->add(this->tree_view);
+        this->show_all();
+      }
+};
+
+int
+main (int argc, char* argv[])
+{
+  Gtk::Main gtk_kit(&argc, &argv);
+  pixbuf_icon = Gdk::Pixbuf::create_from_xpm_data (simple_icon_xpm);
+  cListWindow listwin;
+  Gtk::Main::run();
+
+  return 0;
+}
+
+--------8<--------
+
+Regards.
+
+--
+Simon Fuhrmann | Nightslayer at gmx.de | http://www.dismember.de


--__--__--

Message: 2
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Sat,  6 Sep 2003 10:51:59 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 121615] Changed - Problems with Gdk::Pixbuf columns in Gtk::TreeView

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

Changed by nightslayer gmx de 

--- shadow/121615	Sat Sep  6 10:42:20 2003
+++ shadow/121615.tmp.3162	Sat Sep  6 10:51:59 2003
@@ -115,6 +115,18 @@
 --------8<--------
 
 Regards.
 
 --
 Simon Fuhrmann | Nightslayer at gmx.de | http://www.dismember.de
+
+------- Additional Comments From nightslayer gmx de  2003-09-06 10:51 -------
+Includes corrected:
+
+#include <gdkmm/pixbuf.h>
+#include <gtkmm/treemodel.h>
+#include <gtkmm/treemodelcolumn.h>
+#include <gtkmm/liststore.h>
+#include <gtkmm/treeview.h>
+#include <gtkmm/window.h>
+#include <gtkmm/main.h>
+


--__--__--

Message: 3
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Sat,  6 Sep 2003 10:58:26 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 121615] Changed - Problems with Gdk::Pixbuf columns in Gtk::TreeView

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

Changed by nightslayer gmx de 

--- shadow/121615	Sat Sep  6 10:51:59 2003
+++ shadow/121615.tmp.8095	Sat Sep  6 10:58:26 2003
@@ -127,6 +127,29 @@
 #include <gtkmm/treemodelcolumn.h>
 #include <gtkmm/liststore.h>
 #include <gtkmm/treeview.h>
 #include <gtkmm/window.h>
 #include <gtkmm/main.h>
 
+
+------- Additional Comments From nightslayer gmx de  2003-09-06 10:58 -------
+I use g++-3.2 (GCC) 3.2.3 20030415 (Debian prerelease)
+
+g++ (GCC) 3.3.1 20030626 (Debian prerelease) does not work with gtkmm-2.2.
+
+Information about my Debian gtkmm:
+
+Package: libgtkmm2.0-dev
+Priority: optional
+Section: libdevel
+Installed-Size: 8260
+Maintainer: Bradley Bell <btb debian org>
+Architecture: i386
+Source: gtkmm2.0
+Version: 2.2.2-1
+Replaces: libgtkmm1.3-dev
+Depends: libgtkmm2.0-1c102 (= 2.2.2-1), libgtk2.0-dev (>= 2.2.0),
+libsigc++-1.2-dev (>= 1.2.3-1)
+Suggests: libgtkmm2.0-doc
+Conflicts: libgtkmm1.3-dev
+Filename: pool/main/g/gtkmm2.0/libgtkmm2.0-dev_2.2.2-1_i386.deb
+Size: 1547086


--__--__--

Message: 4
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, dalgoda ix netcom com
Cc: 
Date: Sat,  6 Sep 2003 20:55:08 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 121646] New - won't build with older gcc

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

Changed by dalgoda ix netcom com 

--- shadow/121646	Sat Sep  6 20:55:08 2003
+++ shadow/121646.tmp.2424	Sat Sep  6 20:55:08 2003
@@ -0,0 +1,68 @@
+Bug#: 121646
+Product: gnomemm
+Version: 2.0
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: libgnomeuimm
+AssignedTo: gtkmm-forge lists sourceforge net                            
+ReportedBy: dalgoda ix netcom com               
+TargetMilestone: ---
+URL: 
+Summary: won't build with older gcc
+
+Maybe similar to http://bugzilla.gnome.org/show_bug.cgi?id=120619
+
+
+nexus thune[5:45pm]/usr/src/libgnomeuimm(527) gcc -v
+Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
+gcc version 2.95.4 20020723 (prerelease)
+
+ g++ -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"libgnomeuimm\" -I../../libgnomeui -
+I../../../libgnomeuimm-2.0.0/libgnomeui -DORBIT2=1 -pthread -
+I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -
+I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -
+I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-
+2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -
+I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-
+vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-
+2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-
+2.0/include -I/usr/include/atk-1.0 -I/usr/X11R6/include -
+I/usr/include/libxml2 -I/usr/include/libgnomemm-2.0 -I/usr/lib/libgnomemm-
+2.0/include -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -
+I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -
+I/usr/include/libgnomecanvasmm-2.0 -I/usr/lib/libgnomecanvasmm-
+2.0/include -I/usr/include/gconfmm-2.0 -I/usr/lib/gconfmm-2.0/include -
+I/usr/include/libglademm-2.0 -I/usr/lib/libglademm-2.0/include -
+I/usr/include/libglade-2.0 -g -O2 -c ../../../libgnomeuimm-
+2.0.0/libgnomeui/libgnomeuimm/dateedit.cc -Wp,-MD,.deps/dateedit.TPlo  -
+fPIC -DPIC -o .libs/dateedit.o
+../../../libgnomeuimm-2.0.0/libgnomeui/libgnomeuimm/dateedit.cc: In method 
+`Gnome::UI::DateEdit::DateEdit(long int, bool = true, bool = true)':
+../../../libgnomeuimm-2.0.0/libgnomeui/libgnomeuimm/dateedit.cc:40: 
+static_cast from `Gnome::UI::DateEditFlags' to `GnomeDateEditFlags'
+../../../libgnomeuimm-2.0.0/libgnomeui/libgnomeuimm/dateedit.cc: In method 
+`Gnome::UI::DateEdit::DateEdit(long int = 0, Gnome::UI::DateEditFlags = 
+DATE_EDIT_SHOW_TIME)':
+../../../libgnomeuimm-2.0.0/libgnomeui/libgnomeuimm/dateedit.cc:47: 
+static_cast from `Gnome::UI::DateEditFlags' to `GnomeDateEditFlags'
+../../../libgnomeuimm-2.0.0/libgnomeui/libgnomeuimm/dateedit.cc: In method 
+`void Gnome::UI::DateEdit::set_flags(Gnome::UI::DateEditFlags)':
+../../../libgnomeuimm-2.0.0/libgnomeui/libgnomeuimm/dateedit.cc:257: 
+static_cast from `Gnome::UI::DateEditFlags' to `GnomeDateEditFlags'
+make[4]: *** [dateedit.lo] Error 1
+make[4]: Leaving directory `/usr/src/libgnomeuimm/libgnomeuimm-2.0.0-
+build/libgnomeui/libgnomeuimm'
+make[3]: *** [all-recursive] Error 1
+make[3]: Leaving directory `/usr/src/libgnomeuimm/libgnomeuimm-2.0.0-
+build/libgnomeui/libgnomeuimm'
+make[2]: *** [all-recursive] Error 1
+make[2]: Leaving directory `/usr/src/libgnomeuimm/libgnomeuimm-2.0.0-
+build/libgnomeui'
+make[1]: *** [all] Error 2
+make[1]: Leaving directory `/usr/src/libgnomeuimm/libgnomeuimm-2.0.0-
+build/libgnomeui'
+make: *** [all-recursive] Error 1



--__--__--

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