mirror of https://github.com/MidnightCommander/mc
* gmain.c (x_set_dialog_title): title constified.
(xtoolkit_create_dialog): Don't hardcode layout file location.
This commit is contained in:
parent
d0ac0bff43
commit
aa8b92b547
|
@ -1,3 +1,8 @@
|
|||
2001-06-11 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* gmain.c (x_set_dialog_title): title constified.
|
||||
(xtoolkit_create_dialog): Don't hardcode layout file location.
|
||||
|
||||
2001-06-06 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* Makefile.in: Don't use terms.o.
|
||||
|
|
|
@ -238,8 +238,10 @@ xtoolkit_create_dialog (Dlg_head *h, int flags)
|
|||
h->grided = flags;
|
||||
h->idle_fn_tag = -1;
|
||||
if (!(flags & DLG_NO_TED)){
|
||||
char *layout = concat_dir_and_file (mc_home, "layout");
|
||||
g_warning ("Should never use GtkTed!!! Write a real dialog!!!");
|
||||
ted = gtk_ted_new_layout (h->name, LIBDIR "/layout");
|
||||
ted = gtk_ted_new_layout (h->name, layout);
|
||||
g_free (layout);
|
||||
gtk_container_add (GTK_CONTAINER (win), ted);
|
||||
gtk_widget_show (ted);
|
||||
|
||||
|
@ -264,7 +266,7 @@ x_dlg_set_window (Dlg_head *h, GtkWidget *win)
|
|||
}
|
||||
|
||||
void
|
||||
x_set_dialog_title (Dlg_head *h, char *title)
|
||||
x_set_dialog_title (Dlg_head *h, const char *title)
|
||||
{
|
||||
gtk_window_set_title (GTK_WINDOW (h->wdata), title);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue