* widget.c (label_new): Set initial width of the widget based on
the initial text.
Этот коммит содержится в:
родитель
2ee372d4a8
Коммит
fc6efa62f9
@ -1,5 +1,8 @@
|
|||||||
2001-09-02 Pavel Roskin <proski@gnu.org>
|
2001-09-02 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* widget.c (label_new): Set initial width of the widget based on
|
||||||
|
the initial text.
|
||||||
|
|
||||||
* view.c (hex_search): Don't use sscanf() to search for quoted
|
* view.c (hex_search): Don't use sscanf() to search for quoted
|
||||||
strings - use strchr instead.
|
strings - use strchr instead.
|
||||||
|
|
||||||
|
@ -631,7 +631,7 @@ label_new (int y, int x, const char *text, char *tkname)
|
|||||||
{
|
{
|
||||||
WLabel *l = g_new (WLabel, 1);
|
WLabel *l = g_new (WLabel, 1);
|
||||||
|
|
||||||
init_widget (&l->widget, y, x, 1, 1,
|
init_widget (&l->widget, y, x, 1, text ? strlen (text) : 0,
|
||||||
(callback_fn) label_callback,
|
(callback_fn) label_callback,
|
||||||
(destroy_fn) label_destroy, NULL, tkname);
|
(destroy_fn) label_destroy, NULL, tkname);
|
||||||
l->text = text ? g_strdup (text) : 0;
|
l->text = text ? g_strdup (text) : 0;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user