Erro no gtk

1. Erro no gtk

NICHOLAS
p0w3llx

(usa Debian)

Enviado em 02/09/2015 - 20:04h

Boas pessoal , estou tentando fazer um projeto no gtk porem estou recebendo alguns erros oque devo fazer?

Erro:
(gtk3:11609): GLib-GObject-CRITICAL **: g_signal_connect_closure_by_id: assertion `signal_id > 0' failed
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 103: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 138: Having multiple values in <test> isn't supported and may not work as expected


Codigo do porgrama em C:
#include <stdio.h>
#include <stdlib.h>
//include do GTK
#include <gtk/gtk.h>

void clique_btn()
{
g_print("Clicou no Botao\n");
}

int main(int argc, char **argv)
{
GtkWidget *janela;
GtkWidget *botao;

gtk_init(&argc, &argv);
janela = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW (janela), "Ola Mundo");

botao = gtk_button_new_with_label("Clique");
gtk_container_add(GTK_CONTAINER(janela),botao);
gtk_signal_connect(GTK_OBJECT(botao),"clicked",GTK_SIGNAL_FUNC(clique_btn),NULL);

gtk_widget_show(janela);
gtk_widget_show(botao);

gtk_main();

return 0;
}





  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts