problem about gtkmm-Collection of common programming errors
Oswald
c++ gtk gtkmm cairo gdk
I have written the following code to set the cursor of a Gtk::Window from a Cairo::Context. When I run the program and move the cursor into the window, the cursor changes to a horizontal black line at the top, followed by some undefinable white shape at the bottom. I was expecting the cursor to change into a black 16×16 square. Why doesn’t the cursor assume the shape I intended?#include <gtkmm.h>const int size = 16, hotspot = 0;class Window : public Gtk::Window {public:void change_cursor()
X.Strange
c++ ubuntu compiler-errors gtkmm
i install libgtkmm-3.0-dev in ubuntu 12.04 and i try to learn and write program with c++ and gtkmm 3 i go to this link “http://developer.gnome.org/gtkmm-tutorial/unstable/sec-basics-simple-example.html.en” and try to compile simple example program :#include <gtkmm.h>int main(int argc, char *argv[]) {Glib::RefPtr<Gtk::Application> app =Gtk::Application::create(argc, argv,”org.gtkmm.examples.base”);Gtk::ApplicationWindow window;return app->run(window); }my file name is “basic.cc” a
ptomato
ubuntu gtkmm
So I just installed Oneiric and decided to try out gtkmm for a project (it has classes/objects and I wanted to use a c library without bindings), installed the appropriate gtkmm*-dev, gtkmm*-doc using Synaptic followed the instructions shown here: http://developer.gnome.org/gtkmm-tutorial/3.0/sec-basics-simple-example.html.ento get something basic working, and my terminal output comes out looking like this:g++ main.cc -o app `pkg-config –libs –cflags gtkmm-3.0` /usr/lib/gcc/x86_64-linux-gnu/4.
Mahmoud Hossam
linux eclipse gtkmm
I’m trying to compile the gtkmm Simple Example using Eclipse CDT, but it’s not working for some reasonI’m compiling this on Mandriva Linux and GCC 4.4.3I get this error, which I think is a linking error :Building target: Test Invoking: GCC C++ Linker g++ -L/usr/include/gtkmm-2.4 -o”Test” ./test.o ./test.o: In function `main’: test.cpp:(.text+0x39): undefined reference to `Gtk::Main::Main(int&, char**&, bool)’ test.cpp:(.text+0x43): undefined reference to `Gtk::Window::Window(Gtk::Wi
taocp
c++ compiler-errors gtkmm allocator
I am writing a snakes and ladders game and I defined a function called draw_snake as follows:void draw_snake(const Cairo::RefPtr<Cairo::Context>& cr, std::pair<int,int> snake, std::vector< std::pair<int,int> > boardcoords);When I make the call to this function I do it as follows:pair<int, int> snake = make_pair(100,1); draw_snake(cr, snake, boardcoords);boardcoords is a vector of pair<int,int>. The error message is saying that I have a fourth parameter whe
Ken Bloom
c++ gcc gtk g++ gtkmm
I am writing a GTKmm window program; the main window creates two buttons, one for English and one for Chinese. The user can click on the button to bring up a different window in the appropriate language. Currently I am having trouble initializing the multiple-item container inside the main window. It is an object of type MainWindowPane, which inherits Gtk::HBox.When I try to make, the compiler issues the following error: $ make g++ -g `pkg-config gtkmm-2.4 –cflags` -c MainWindow.cpp g++ -g
m4tx
c++ eclipse-cdt gtkmm
I use Eclipse and I wanted to use gtkmm in it. I have following code:#include <gtkmm.h> #include <iostream>int main(int argc, char *argv[]) {Gtk::Main kit(argc, argv);Gtk::Window mainWindow;Gtk::Button button(“Click here”);mainWindow.set_title(“Eclipse/GTKmm Demo”);mainWindow.set_border_width(4);mainWindow.set_default_size(200, 50);mainWindow.add(button);button.show();Gtk::Main::run(mainWindow);return 0; }I added pkg-config –cflags –libs gtkmm-3.0 (with grave accents, of course) to
paullj1
c++ gtk gtk+ gtkmm gtk3
I need to embed a very simple browser ( can parse HTML, and JS Ext ) in a Gtk Widget hopefully in gtkmm. I looked into gtkmozembed, but the c++ wrapper is very out dated, so I tried to just write it in C, but I’m already committed to Gtk+ 3.0, and gtkmozembed doesn’t work with Gtk+ 3.0. Is there a way to just extend Gtk::Widget and put a gecko parser in it? Can’t really find any gecko documentation, I keep getting redirected to gtkmozembed.Any ideas/suggestions would be greatly appreciated.Edit:
paullj1
c++ c webkit gtk gtkmm
I’m trying to embed a web browser into a gtk project. I’m trying to use WebKitGTK (but I’m not committed to it), every time I try and use it to parse an Ext JS page, it crashes the entire application. Here’s the output, and how I’m including the .js files…** (ttocui_gtk:16360): DEBUG: NP_Initialize ** (ttocui_gtk:16360): DEBUG: NP_Initialize succeeded ** (ttocui_gtk:16360): DEBUG: NP_Initialize ** (ttocui_gtk:16360): DEBUG: NP_Initialize succeeded ** (ttocui_gtk:16360): DEBUG: NP_Initialize **
Subhamoy Sengupta
c++ linux gtkmm
I have a small application, where I want to create some buttons, toolbars, etc. but I do not want to use a pre-existing GTK icon theme, I want to create my own. So I looked for tutorials and whatnot, but as it turned out, it was not very well discussed online. So I tried to do something on my own:Header File:#include <gtkmm.h> #include <string> #include <iostream> #include <errno.h>class IconFactoryBuilder { public:IconFactoryBuilder();~IconFactoryBuilder();void RegisterN
Misel Ademi
c++ codeblocks gtkmm
I try to use gtkmm with code blocks. I installed everything but it shows me error in list.h Error is in linenamespace Gdk {Error message is C:\gtkmm\include\gdkmm-2.4\gdkmm\list.h|4|error: unknown type name ‘namespace’| C:\gtkmm\include\gdkmm-2.4\gdkmm\list.h|4|error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token| C:\gtkmm\include\sigc++-2.0\sigc++\signal.h|8|fatal error: list: No such file or directory| ||=== Build finished: 3 errors, 0 warnings (0 minutes, 1 seconds) ===|C
nKandel
c++ gui codeblocks gtkmm
I try to use gtkmm with code blocks. I installed everything but it shows me error in libsigc++ header signal.h fatal error: list: No such file or directoryI couldn’t find what is wrong…The error is in this line.#include <list>I added #include <list.h> and now it shows me error in list.h file in line namespace Gdk and error message is_C:\gtkmm\include\gdkmm-2.4\gdkmm\list.h|4|error: unknown type name ‘namespace’| C:\gtkmm\include\gdkmm-2.4\gdkmm\list.h|4|error: expected ‘=’, ‘,’,
Originally posted 2013-11-27 11:57:29.