Hola, ¿Ayudará en algo?

https://pastebin.com/0tELpRE4


#include <gtk/gtk.h>

int main(int argc, char *argv[]) {
    
  GtkWidget *window;
  GtkWidget *fixed;

  GtkWidget *btn;

  gtk_init(&argc, &argv);

  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title(GTK_WINDOW(window), "GtkFixed");
  gtk_window_set_default_size(GTK_WINDOW(window), 400, 300);
  gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);

  fixed = gtk_fixed_new();
  gtk_container_add(GTK_CONTAINER(window), fixed);

  btn = gtk_button_new_with_label("Button");
  gtk_fixed_put(GTK_FIXED(fixed), btn, 160, 130);
  gtk_widget_set_size_request(btn, 80, 30);

  g_signal_connect(G_OBJECT(window), "destroy", 
      G_CALLBACK(gtk_main_quit), NULL);

  gtk_widget_show_all(window);

  gtk_main();

  return 0;
}


Saludos

F

On Thu, 2017-05-11 at 17:05 +0000, Jorge Gayoso wrote:
> Señores, buen día. Tengo el siguiente código:
> 
> ventana=proc_ventana()
> 
> gtk_fixed_put (GTK_FIXED(ventana->fixed), label, iX, iY)     
>             DA ERROR
> 
> 
> proc_ventana {
>             GtkWidget *window;
>             GtkWidget *vbox;
>             GtkWidget *fixed; 
>             GtkWidget *statusbar;
> 
> retorna window
> }
> 
> ¿De que forma hago referencia a GtkWidget fixed, ya que ventana-
> >fixed da error en GCC?
>  
>        Jorge Gayoso
> Analísta Programador - Área de Desarrollo
> Farmacias Ahumada S.A
> Dirección: Av. Los Vientos #19867, Ruta 68, Santiago, Chile
> Fono: +562 2 631 3991 Correo: [email protected]
>     Member Of Walgreens Boots Alliance          
>  
>  
> CONFIDENCIALIDAD: Este mensaje y sus documentos adjuntos están
> dirigidos exclusivamente al destinatario especificado y pueden
> contener información confidencial o legalmente protegida. Si usted
> recibe este mensaje por error, le agradeceremos lo comunique
> inmediatamente al remitente por esta misma vía y tenga además la
> amabilidad de destruir sus copias y borrar de su sistema el mensaje
> recibido, ya que usted no está autorizado al uso, revelación,
> distribución, impresión o copia de toda o alguna parte de la
> información en él contenida. El contenido de este mensaje y sus
> documentos adjuntos no necesariamente representan la opinión de
> Farmacias Ahumada S.A. y/o de sus sociedades filiales o relacionadas.

Responder a