| 14493:c47f415b7e56 | 14494:3575eac3a518 |
|---|---|
| 127 | 127 |
| 128 if (focus) | 128 if (focus) |
| 129 mvwchgat(widget->window, 0, gnt_util_onscreen_width(entry->scroll, entry->cursor), | 129 mvwchgat(widget->window, 0, gnt_util_onscreen_width(entry->scroll, entry->cursor), |
| 130 1, A_REVERSE, COLOR_PAIR(GNT_COLOR_TEXT_NORMAL), NULL); | 130 1, A_REVERSE, COLOR_PAIR(GNT_COLOR_TEXT_NORMAL), NULL); |
| 131 | 131 |
| 132 DEBUG; | 132 GNTDEBUG; |
| 133 } | 133 } |
| 134 | 134 |
| 135 static void | 135 static void |
| 136 gnt_entry_size_request(GntWidget *widget) | 136 gnt_entry_size_request(GntWidget *widget) |
| 137 { | 137 { |
| 145 static void | 145 static void |
| 146 gnt_entry_map(GntWidget *widget) | 146 gnt_entry_map(GntWidget *widget) |
| 147 { | 147 { |
| 148 if (widget->priv.width == 0 || widget->priv.height == 0) | 148 if (widget->priv.width == 0 || widget->priv.height == 0) |
| 149 gnt_widget_size_request(widget); | 149 gnt_widget_size_request(widget); |
| 150 DEBUG; | 150 GNTDEBUG; |
| 151 } | 151 } |
| 152 | 152 |
| 153 static void | 153 static void |
| 154 entry_redraw(GntWidget *widget) | 154 entry_redraw(GntWidget *widget) |
| 155 { | 155 { |
| 500 parent_class->map = gnt_entry_map; | 500 parent_class->map = gnt_entry_map; |
| 501 parent_class->size_request = gnt_entry_size_request; | 501 parent_class->size_request = gnt_entry_size_request; |
| 502 parent_class->key_pressed = gnt_entry_key_pressed; | 502 parent_class->key_pressed = gnt_entry_key_pressed; |
| 503 parent_class->lost_focus = gnt_entry_lost_focus; | 503 parent_class->lost_focus = gnt_entry_lost_focus; |
| 504 | 504 |
| 505 DEBUG; | 505 GNTDEBUG; |
| 506 } | 506 } |
| 507 | 507 |
| 508 static void | 508 static void |
| 509 gnt_entry_init(GTypeInstance *instance, gpointer class) | 509 gnt_entry_init(GTypeInstance *instance, gpointer class) |
| 510 { | 510 { |
| 526 GNT_WIDGET_SET_FLAGS(GNT_WIDGET(entry), GNT_WIDGET_GROW_X); | 526 GNT_WIDGET_SET_FLAGS(GNT_WIDGET(entry), GNT_WIDGET_GROW_X); |
| 527 | 527 |
| 528 widget->priv.minw = 3; | 528 widget->priv.minw = 3; |
| 529 widget->priv.minh = 1; | 529 widget->priv.minh = 1; |
| 530 | 530 |
| 531 DEBUG; | 531 GNTDEBUG; |
| 532 } | 532 } |
| 533 | 533 |
| 534 /****************************************************************************** | 534 /****************************************************************************** |
| 535 * GntEntry API | 535 * GntEntry API |
| 536 *****************************************************************************/ | 536 *****************************************************************************/ |