[Glade-users] [Fwd: Re: FullScreen]



And if you use Glade, must call gtk_window_fullscreen after get object
from interface:

/* gcc window.c -o window `pkg-config --cflags --libs gtk+-2.0` */

#include <gtk/gtk.h>

const gchar *interface = "<interface><object class=\"GtkWindow\" id=
\"window\"></object></interface>";

int main(int argc, char *argv[]) {
  gtk_init(&argc, &argv);
  GtkBuilder *builder = gtk_builder_new();
  gtk_builder_add_from_string(builder, interface, -1, NULL);
  GtkWidget *window = GTK_WIDGET(gtk_builder_get_object(builder,
"window"));
  gtk_window_fullscreen(GTK_WINDOW(window));
  g_signal_connect(G_OBJECT(window), "delete-event",
G_CALLBACK(gtk_main_quit), NULL);
  gtk_widget_show(window);
  gtk_main();
}


--------- Mensaje reenviado --------

De: Juan Manuel Mouriz <jmouriz at gmail.com>
Responder a: jmouriz at slowsoft.com.ar
Para: Carachi83 <carachi83 at gmail.com>
Asunto: Re: [Glade-users] FullScreen
Fecha: Fri, 20 Mar 2009 17:41:48 -0300

After create your window:

/* gcc window.c -o window `pkg-config --cflags --libs gtk+-2.0` */

#include <gtk/gtk.h>

int main(int argc, char *argv[]) {
  gtk_init(&argc, &argv);
  GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  g_signal_connect(G_OBJECT(window), "delete-event",
G_CALLBACK(gtk_main_quit), NULL);
  gtk_window_fullscreen(GTK_WINDOW(window));
  gtk_widget_show(window);
  gtk_main();
}

-----Mensaje original-----
De: Carachi83 <carachi83 at gmail.com>
Para: glade-users at lists.ximian.com
Asunto: Re: [Glade-users] FullScreen
Fecha: Fri, 20 Mar 2009 17:23:53 +0100


yes but where can i write it ( gtk_window_fullscreen () ) ????

thank you


Alexey Kurochkin ha scritto:
On Fri, 2009-03-20 at 15:12 +0100, Carachi83 wrote:
  
Hi,
I have a problem:
I want create e fullscreen window but I don't know how i do this!!

    

gtk_window_fullscreen ()

_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users
  

_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20090320/792eb2cf/attachment.html 




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