* Fixed pointer cast warning
authorrodin <rodin@ddfedd41-794f-dd11-ae45-00112f111e67>
Fri, 22 May 2009 10:05:46 +0000 (10:05 +0000)
committerrodin <rodin@ddfedd41-794f-dd11-ae45-00112f111e67>
Fri, 22 May 2009 10:05:46 +0000 (10:05 +0000)
src/input.c

index bacb55571a523be0e3aa55cddd1a73bedfecd2a3..418e5ea1f6b2e82b6a662e40887054c146a3d345 100644 (file)
@@ -475,7 +475,7 @@ flush_text_grid(winid_t win)
 
        GtkTextBuffer *buffer = gtk_text_view_get_buffer( GTK_TEXT_VIEW(win->widget) );
        
-       gchar *text = g_strdup(gtk_entry_get_text(win->input_entry));
+       gchar *text = g_strdup( gtk_entry_get_text(GTK_ENTRY(win->input_entry)) );
        /* Move the focus back into the text view */
        gtk_widget_grab_focus(win->widget);
        /* Remove entry widget from text view */