Fw: How would I use casting ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,

Thanks Yeti  for your reply. Yes there was one API missing but after using that API also it shows normal window and doesnt maximize it (code is given below). And a very strange thing is that it works absolutely fine for gtk_window_iconify
Could you please tell me whats could be the reason ?

#include <gtk/gtk.h>

int main( int   argc,
          char *argv[] )
{
    /* GtkWidget is the storage type for widgets */
    GtkWidget *window;

    gtk_init(&argc, &argv);

    /* create a new window */
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   
   /******* This is what you suggested *******/
    //gtk_widget_realize(window);
    //gdk_window_maximize(window->window);

    /* Maximizes the window */
    gtk_window_maximize(GTK_WINDOW(window));
       
    /* Shows the window */        
    gtk_widget_show(window);

    /*All GTK applications must have a gtk_main(). Control ends here
     * and waits for an event to occur (like a key press or
     * mouse event). */
    gtk_main ();

    return(0);
}
/* example-end */

Thanks and regards,
Dipak G Patil.
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux