Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~775 People Reached
Favorite Forums
Favorite Tags
Member Avatar for the_kitoper

When I move my gtk window it freezes, it runs a timeout and I believe this may be the problem. May anyone provide further explanation on this subject?

0
107
Member Avatar for the_kitoper

Why is this? [CODE] int kitty(GtkWidget* widget, float* foo) { if(*foo != .5f) std::cout << "this usually occurs" << std::endl; } int otherFunc(void) { float foo = .5f; //assume widget has been created g_signal_connect(G_OBJECT(widget), "clicked", G_CALLBACK(kitty), (gpointer)&foo); }[/CODE]

Member Avatar for vijayan121
0
196
Member Avatar for the_kitoper

I have a problem, whenever I attempt to use the following expression it returns -3. Can you please explain why this is? [CODE] int level = ((RoD * 10) - 50) / 15; std::cout << "Level = " << level << std::endl; [/CODE]

Member Avatar for LRRR
0
169
Member Avatar for the_kitoper

[CODE] int foo(gpointer kitty) { g_print(kitty); } int main(int argc, char* argv[]) { gtk_init(&argc, &argv); gtk_timeout_add(1000, foo, (gpointer)"1"); gtk_main(); }[/CODE] How would I go about stopping the timeout?

Member Avatar for pseudorandom21
0
68
Member Avatar for the_kitoper

[CODE] #include <time.h> time_t whatTime(const char* month, const char* day, const char* year) { time_t rawTime; time(&rawTime); struct tm* convTime = localtime(&rawTime); std::cout << "Today is: " << ((convTime->tm_mon)+1) << "/" << convTime->tm_mday << "/" << convTime->tm_year << std::endl; } [/CODE] When using this code I get the output '7/27/111' …

Member Avatar for pseudorandom21
0
175
Member Avatar for the_kitoper

I am developing a program's GUI and have been using GTK heavily. However, I have run into some trouble... I need to use gtk_signal_disconnect yet I have been having trouble finding a webpage that describes handler_id. Please help.

Member Avatar for nezachem
0
60