From c10ba7df23dda9fbd96bc8c94d3e2a088bcf81a3 Mon Sep 17 00:00:00 2001 From: xSmurf Date: Fri, 25 Nov 2016 01:54:32 +0000 Subject: [PATCH] Moved glade ui files to .ui file extensions --- fw-settings/definitions/{Dialog.xml => Dialog.ui} | 0 fw-settings/definitions/Makefile | 4 ++-- fw-settings/definitions/{RuleEdit.xml => RuleEdit.ui} | 0 fw-settings/definitions/{RuleItem.xml => RuleItem.ui} | 0 fw-settings/definitions/generate.rb | 6 +++--- 5 files changed, 5 insertions(+), 5 deletions(-) rename fw-settings/definitions/{Dialog.xml => Dialog.ui} (100%) rename fw-settings/definitions/{RuleEdit.xml => RuleEdit.ui} (100%) rename fw-settings/definitions/{RuleItem.xml => RuleItem.ui} (100%) diff --git a/fw-settings/definitions/Dialog.xml b/fw-settings/definitions/Dialog.ui similarity index 100% rename from fw-settings/definitions/Dialog.xml rename to fw-settings/definitions/Dialog.ui diff --git a/fw-settings/definitions/Makefile b/fw-settings/definitions/Makefile index ae97f5d..087b3e4 100644 --- a/fw-settings/definitions/Makefile +++ b/fw-settings/definitions/Makefile @@ -2,7 +2,7 @@ generate: ruby ./generate.rb touch: - ls *.xml | xargs -n1 touch + ls *.ui | xargs -n1 touch doctor: touch generate - git diff --exit-code . \ No newline at end of file + git diff --exit-code . diff --git a/fw-settings/definitions/RuleEdit.xml b/fw-settings/definitions/RuleEdit.ui similarity index 100% rename from fw-settings/definitions/RuleEdit.xml rename to fw-settings/definitions/RuleEdit.ui diff --git a/fw-settings/definitions/RuleItem.xml b/fw-settings/definitions/RuleItem.ui similarity index 100% rename from fw-settings/definitions/RuleItem.xml rename to fw-settings/definitions/RuleItem.ui diff --git a/fw-settings/definitions/generate.rb b/fw-settings/definitions/generate.rb index 12857fe..5296b6d 100644 --- a/fw-settings/definitions/generate.rb +++ b/fw-settings/definitions/generate.rb @@ -3,7 +3,7 @@ require 'fileutils' def parse_go_name(file_name) - File.basename(file_name, ".xml"). + File.basename(file_name, ".ui"). gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2'). gsub(/([a-z\d])([A-Z])/,'\1_\2'). tr("-", "_"). @@ -13,7 +13,7 @@ end def gen_go_file(xml_file, go_file) xml_definition = File.read(xml_file) - ui_name = File.basename(xml_file, '.xml') + ui_name = File.basename(xml_file, '.ui') File.open(go_file, 'w+') do |target| target.puts <