void archive_create(const gchar *path) { gchar *name; gchar *dest; if (!(name = name_from_dir(path))) return; { gchar *file; file = g_strdup_printf("%s.obt", name); dest = g_build_path(G_DIR_SEPARATOR_S, g_get_current_dir(), file, NULL); g_free(file); } if (create_theme_archive(path, name, dest)) gtk_msg(GTK_MESSAGE_INFO, _("\"%s\" was successfully created"), dest); g_free(dest); g_free(name); }
void archive_create(const gchar *path) { gchar *name; gchar *dest; if (!(name = name_from_dir(path))) return; { gchar *file; file = g_strdup_printf("%s.obt", name); dest = g_build_path(G_DIR_SEPARATOR_S, g_get_current_dir(), file, NULL); g_free(file); } if (create_theme_archive(path, name, dest)) QMessageBox::information(NULL, QString(), QObject::tr("\"%1\" was successfully created") .arg(QString::fromUtf8(dest))); g_free(dest); g_free(name); }