comparison console/libgnt/wms/s.c @ 15765:f1e4121dcb1e

Fix a crash when selecting text in an empty TV.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 05 Mar 2007 01:26:31 +0000
parents 0eb7846f9e7e
children 94867b2f38f5
comparison
equal deleted inserted replaced
15763:d318c6672011 15765:f1e4121dcb1e
180 } 180 }
181 getmaxyx(stdscr, maxy, maxx); 181 getmaxyx(stdscr, maxy, maxx);
182 text = gnt_get_clipboard_string(); 182 text = gnt_get_clipboard_string();
183 clip = gnt_hwindow_new(FALSE); 183 clip = gnt_hwindow_new(FALSE);
184 GNT_WIDGET_SET_FLAGS(clip, GNT_WIDGET_TRANSIENT); 184 GNT_WIDGET_SET_FLAGS(clip, GNT_WIDGET_TRANSIENT);
185 GNT_WIDGET_UNSET_FLAGS(clip, GNT_WIDGET_NO_BORDER); 185 GNT_WIDGET_SET_FLAGS(clip, GNT_WIDGET_NO_BORDER);
186 gnt_box_set_pad(GNT_BOX(clip), 0); 186 gnt_box_set_pad(GNT_BOX(clip), 0);
187 gnt_box_add_widget(GNT_BOX(clip), gnt_label_new(" ")); 187 gnt_box_add_widget(GNT_BOX(clip), gnt_label_new(" "));
188 gnt_box_add_widget(GNT_BOX(clip), gnt_label_new(text)); 188 gnt_box_add_widget(GNT_BOX(clip), gnt_label_new(text));
189 gnt_box_add_widget(GNT_BOX(clip), gnt_label_new(" ")); 189 gnt_box_add_widget(GNT_BOX(clip), gnt_label_new(" "));
190 gnt_widget_set_position(clip, 0, 0); 190 gnt_widget_set_position(clip, 0, 0);