Hi! I'm trying to make a simple gtkmm application in my FC3 box. Here's the code:
Code:
#include <gtkmm/main.h>
#include <gtkmm/window.h>
#include <gtkmm/box.h>
#include <gdkmm.h>
using namespace Gtk;
int main( int argc, char** argv )
{
Main kit( argc, argv );
Window window;
HBox box;
window.add( box );
GdkWindow* win; // I think these lines
win = window.get_window()->gobj(); // cause the runtime error
Main::run( window );
return 0;
}
Everytime I run the application I get a segmentation fault. I did an strace and found that it was looking for gtkrc.en and gtkrc.en_us. Here's the exact output:
access("/usr/share/themes/Default/gtk-2.0-key/gtkrc.en_US", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/themes/Default/gtk-2.0-key/gtkrc.en", F_OK) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Why is it that I don't have these files? Also, if I uncomment the lines indicated above, I don't get the segmentation fault anymore.