if (g_ascii_strcasecmp (gtk_window_get_title(GTK_WINDOW (window)),text2) == 0
g_ascii_strcasecmp returns 0 if the two arguments (each a char*) are the same. So in my function I'm asking "hey are you already text2? Oh g_ascii_strcasecmp returned 0 so you are text2? Ok then you're text1 now.
WHY it's not doing this consistently is screwing with my head. What I might do is be really assertive and do that condition on both the window and the label. It's redundant, but it might alter the behavior.
No comments:
Post a Comment