제가 아래와 같은 함수를 만들었는데요. 리스트에 있는 라벨이 실행될때 연결할려고 하는데 어떻게 해야되죠.
아니면 버튼을 클릭할때 연결하는 방법이라도.
void m_ImgHisto(int height, int width) { }
g_signal_connect라는 함수로 사용자 콜백함수를 연결합니다.
리스트뷰는 조금 복잡하니 간단한 버튼을 예를 들면:
GtkButton* button; struct { int x, y; } point_t; struct point_t pt; ... list = gtk_button_new("my button"); g_signal_connect(button, "activate", button_activate, &pt); ... void button_activate(GtkButton* button, void * data) { struct point_t* pt = (struct point_t*)data; ... pt->x, pt->y }
더 자세한 내용은 해당함수의 레퍼런스 매뉴얼을 참조하시길...
---- the smile has left your eyes...
g_signal_connect라는 함수로 사용자 콜백함수를 연결합니다.
g_signal_connect라는 함수로 사용자 콜백함수를 연결합니다.
리스트뷰는 조금 복잡하니 간단한 버튼을 예를 들면:
GtkButton* button; struct { int x, y; } point_t; struct point_t pt; ... list = gtk_button_new("my button"); g_signal_connect(button, "activate", button_activate, &pt); ... void button_activate(GtkButton* button, void * data) { struct point_t* pt = (struct point_t*)data; ... pt->x, pt->y }뭐 대충 이런식이겠지만, 반드시 이런 것은 아닙니다.
더 자세한 내용은 해당함수의 레퍼런스 매뉴얼을 참조하시길...
----
the smile has left your eyes...