Fw: How would I use casting ?
- From: Dipak G Patil <dippatil in ibm com>
- To: yeti physics muni cz
- Cc: gtk-list gnome org
- Subject: Fw: How would I use casting ?
- Date: Tue, 13 Jul 2004 15:07:25 +0530
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]