X-Git-Url: https://git.stderr.nl/gitweb?p=rodin%2Fchimara.git;a=blobdiff_plain;f=libchimara%2Finput.c;h=8b6d4c27662d5296e4b7df1a0ec0caedf40c6b7e;hp=ddc41d8b216fe7ba14ccdc8359f1f41b2616fe66;hb=37e3cee8525bb02d3c12d75a55dd6f9c0f576861;hpb=02dacdfeec2bb204aff8dae862ece880c58f5e0c diff --git a/libchimara/input.c b/libchimara/input.c index ddc41d8..8b6d4c2 100644 --- a/libchimara/input.c +++ b/libchimara/input.c @@ -127,7 +127,11 @@ text_grid_request_line_event_common(winid_t win, glui32 maxlen, gboolean insert, /* Make the entry as small as possible to fit with the text */ gtk_entry_set_has_frame(GTK_ENTRY(win->input_entry), FALSE); GtkBorder border = { 0, 0, 0, 0 }; + + /* COMPAT: */ +#if GTK_CHECK_VERSION(2,10,0) gtk_entry_set_inner_border(GTK_ENTRY(win->input_entry), &border); +#endif gtk_entry_set_max_length(GTK_ENTRY(win->input_entry), win->input_length); gtk_entry_set_width_chars(GTK_ENTRY(win->input_entry), win->input_length);