Hello. I want to begin quick programming gtk ui with libglade. But I can't. I'd found a variant with programming by GtkBuilder - the problem is the same.
The problem is: I make a minimal application (even copypast from resources), run in console (KDE's konsole, for example) $ ./a.out - it works, runs showing drawn by me window. I run it from KDE - window doesn't show. But there is a process in RAM.
I compile $ gcc glade.c `pkg-config --cflags --libs libglade-2.0`
Code:
#include <stdlib.h>
#include <stdio.h>
#include <gtk/gtk.h>
#include <glade/glade.h>

static gboolean delete_event(GtkWidget * widget, GdkEvent * event, gpointer data)
{
  return FALSE;
}
static void destroy(GtkWidget * widget, gpointer data)
{
  gtk_main_quit();
}

int main (int argc, char **argv)
{
   GladeXML * xml;
   GtkWidget * app_window;
    gtk_init(&argc, &argv);
    glade_init();
    xml = glade_xml_new("app.glade", "window", NULL);
   glade_xml_signal_autoconnect (xml);
   app_window = glade_xml_get_widget (xml, "window");
   g_signal_connect(G_OBJECT(app_window), "delete_event", G_CALLBACK(delete_event), NULL);
   g_signal_connect(G_OBJECT(app_window), "destroy", G_CALLBACK(destroy), NULL);
   gtk_widget_show_all(app_window);
    gtk_main();
    return 0;
}
I'd rebooted into Gnome, just this binary works fine from Gnome DE. I may be to accuse of KDE, but I'd tried to run from KDE LinuxDC++(gtkmm/glade) - it's working fine even from KDE. I'm not able to understand from sources what I did wrong, and linuxdcpp do right.
My GTK apps work OK from KDE.
System Debian Lenny + KDE 3.5
I need that binary can run from KDE with showing user interface
(that is window).

Beforehand thanks.