* gmain.c (x_set_dialog_title): title constified.

(xtoolkit_create_dialog): Don't hardcode layout file location.
This commit is contained in:
Andrew V. Samoilov 2001-06-11 11:17:23 +00:00
parent d0ac0bff43
commit aa8b92b547
2 changed files with 9 additions and 2 deletions

View File

@ -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.

View File

@ -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);
}