Fix crash in gca_diagnostic_message_reposition

gtk_event_box_get_preferred_width expects to get a pointer to an int,
giving it null instead causes a segfault.

Also, rename variable name to match the way they are named in gtk.