[gtkmm] Gtkmm-forge digest, Vol 1 #240 - 3 msgs
- From: gtkmm-forge-request lists sourceforge net
- To: gtkmm-forge lists sourceforge net
- Subject: [gtkmm] Gtkmm-forge digest, Vol 1 #240 - 3 msgs
- Date: Mon, 30 Sep 2002 12:01:24 -0700
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 94170] Changed - TreeModelColumns cannot be of type "UNSIGNED SHORT" (bugzilla-daemon widget gnome org)
2. [Bug 94170] Changed - TreeModelColumns cannot be of type "UNSIGNED SHORT" (bugzilla-daemon widget gnome org)
3. [Bug 94170] Changed - TreeModelColumns cannot be of type "UNSIGNED SHORT" (bugzilla-daemon widget gnome org)
--__--__--
Message: 1
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, webmaster nachtwind net
Cc:
Date: Sun, 29 Sep 2002 15:39:27 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 94170] Changed - TreeModelColumns cannot be of type "UNSIGNED SHORT"
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=94170
Changed by murrayc usa net
--- shadow/94170 Wed Sep 25 08:40:37 2002
+++ shadow/94170.tmp.18214 Sun Sep 29 15:39:27 2002
@@ -28,6 +28,10 @@
now.
Thank you for your time,
Leslie
+
+------- Additional Comments From murrayc usa net 2002-09-29 15:39 -------
+I think we need to see some simple-as-possible compilable test code to
+show this.
--__--__--
Message: 2
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, webmaster nachtwind net
Cc:
Date: Mon, 30 Sep 2002 08:05:45 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 94170] Changed - TreeModelColumns cannot be of type "UNSIGNED SHORT"
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=94170
Changed by webmaster nachtwind net
--- shadow/94170 Sun Sep 29 15:39:27 2002
+++ shadow/94170.tmp.1363 Mon Sep 30 08:05:45 2002
@@ -32,6 +32,106 @@
Leslie
------- Additional Comments From murrayc usa net 2002-09-29 15:39 -------
I think we need to see some simple-as-possible compilable test code to
show this.
+
+------- Additional Comments From webmaster nachtwind net 2002-09-30 08:05 -------
+There you go.. The example clearly shows that both unsigned and
+signed int work, but none of the short types.
+
+
+#include <gtkmm/box.h>
+#include <gtkmm/window.h>
+#include <gtkmm/main.h>
+#include <gtkmm/liststore.h>
+#include <gtkmm/treeview.h>
+
+/* column definition */
+class MyColumns : public Gtk::TreeModel::ColumnRecord
+{
+ public:
+ inline MyColumns()
+ {
+ add(s_sh_test);
+ add(us_sh_test);
+ add(s_int_test);
+ add(us_int_test);
+ }
+
+ Gtk::TreeModelColumn<signed short> s_sh_test;
+ Gtk::TreeModelColumn<unsigned short> us_sh_test;
+ Gtk::TreeModelColumn<signed int> s_int_test;
+ Gtk::TreeModelColumn<unsigned int> us_int_test;
+};
+
+
+/* main window */
+class MainWindow : public Gtk::Window
+{
+ public:
+ MainWindow();
+ inline ~MainWindow() {}
+
+ protected:
+ Gtk::VBox box1;
+ Gtk::TreeView myview;
+ MyColumns mycolumns;
+};
+
+
+MainWindow::MainWindow()
+{
+
+ Glib::RefPtr<Gtk::ListStore> mylist_ListStore =
+Gtk::ListStore::create(mycolumns);
+ Gtk::TreeModel::iterator mylistRowPtr;
+ Gtk::TreeModel::Row mylistRow;
+
+ myview.set_model(mylist_ListStore);
+
+ myview.append_column("Signed Short",
+mycolumns.s_sh_test);
+ myview.append_column("Unsigned Short",
+mycolumns.us_sh_test);
+ myview.append_column("Signed Int", mycolumns.s_int_test);
+ myview.append_column("Unsigned Int",
+mycolumns.us_int_test);
+
+ for (int i = 0; i <= 3; i++)
+ {
+ (myview.get_column(i))->set_clickable(TRUE);
+ (myview.get_column(i))->set_resizable(TRUE);
+ (myview.get_column(i))->set_sort_indicator(TRUE);
+ }
+
+ this->add(box1);
+
+
+ mylistRowPtr = mylist_ListStore->append();
+ mylistRow = *mylistRowPtr;
+
+ mylistRow[mycolumns.s_sh_test] = 1;
+ mylistRow[mycolumns.us_sh_test] = 1;
+ mylistRow[mycolumns.s_int_test] = 1;
+ mylistRow[mycolumns.us_int_test] = 1;
+
+
+ box1.pack_start(myview);
+
+ myview.show();
+ box1.show();
+
+}
+
+/* entry point */
+int main(int argc, char **argv)
+{
+
+ Gtk::Main *test = new Gtk::Main(argc, argv);
+
+ MainWindow mw;
+ test->run(mw);
+
+ return(0);
+}
--__--__--
Message: 3
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, webmaster nachtwind net
Cc:
Date: Mon, 30 Sep 2002 08:12:56 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 94170] Changed - TreeModelColumns cannot be of type "UNSIGNED SHORT"
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=94170
Changed by webmaster nachtwind net
--- shadow/94170 Mon Sep 30 08:05:45 2002
+++ shadow/94170.tmp.2269 Mon Sep 30 08:12:56 2002
@@ -132,6 +132,20 @@
MainWindow mw;
test->run(mw);
return(0);
}
+
+------- Additional Comments From webmaster nachtwind net 2002-09-30 08:12 -------
+Note:
+
+If you change the
+
+myview.append_column("Signed Short", mycolumns.s_sh_test);
+myview.append_column("Unsigned Short", mycolumns.us_sh_test);
+
+to
+
+myview.append_column_editable(...);
+
+the code won't even compile.
--__--__--
_______________________________________________
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]