Created
August 24, 2010 22:28
-
-
Save samuellb/548457 to your computer and use it in GitHub Desktop.
FriBID: Remove files in the old Glade format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/client/Makefile b/client/Makefile | |
index 7cd931c..708ab8b 100644 | |
--- a/client/Makefile | |
+++ b/client/Makefile | |
@@ -63,11 +63,11 @@ sign: $(OBJECTS) | |
clean: | |
rm -f $(OBJECTS) sign | |
-install: sign gtk/sign.xml | |
+install: sign gtk/sign.ui | |
install -d $(DESTDIR)$(LIB_PATH) | |
install -d $(DESTDIR)$(UI_PATH) | |
install sign $(DESTDIR)$(LIB_PATH) | |
- install -m 644 gtk/sign.xml $(DESTDIR)$(UI_PATH) | |
+ install -m 644 gtk/sign.ui $(DESTDIR)$(UI_PATH) | |
uninstall: | |
rm -f $(DESTDIR)$(SIGNING_EXECUTABLE) $(DESTDIR)$(UI_GTK_XML) | |
diff --git a/client/gtk/sign.glade b/client/gtk/sign.glade | |
deleted file mode 100644 | |
index 954cb92..0000000 | |
--- a/client/gtk/sign.glade | |
+++ /dev/null | |
@@ -1,274 +0,0 @@ | |
-<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
-<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd"> | |
-<!--Generated with glade3 3.4.5 on Tue Jun 9 22:52:17 2009 --> | |
-<!-- | |
- | |
- Copyright (c) 2009 Samuel Lidén Borell <[email protected]> | |
- | |
- Permission is hereby granted, free of charge, to any person obtaining a copy | |
- of this software and associated documentation files (the "Software"), to deal | |
- in the Software without restriction, including without limitation the rights | |
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
- copies of the Software, and to permit persons to whom the Software is | |
- furnished to do so, subject to the following conditions: | |
- | |
- The above copyright notice and this permission notice shall be included in | |
- all copies or substantial portions of the Software. | |
- | |
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
- THE SOFTWARE. | |
- | |
---> | |
-<glade-interface> | |
- <widget class="GtkDialog" id="dialog_sign"> | |
- <property name="border_width">6</property> | |
- <property name="modal">True</property> | |
- <property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property> | |
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> | |
- <property name="has_separator">False</property> | |
- <child internal-child="vbox"> | |
- <widget class="GtkVBox" id="dialog-vbox1"> | |
- <property name="visible">True</property> | |
- <property name="spacing">2</property> | |
- <child> | |
- <widget class="GtkVBox" id="vbox1"> | |
- <property name="visible">True</property> | |
- <property name="border_width">6</property> | |
- <child> | |
- <widget class="GtkHBox" id="hbox1"> | |
- <property name="visible">True</property> | |
- <child> | |
- <widget class="GtkLabel" id="header_op"> | |
- <property name="visible">True</property> | |
- <property name="label"><big><b>Prove identity to: </b></big> | |
-<small> </small></property> | |
- <property name="use_markup">True</property> | |
- </widget> | |
- <packing> | |
- <property name="expand">False</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <widget class="GtkLabel" id="header_domain"> | |
- <property name="visible">True</property> | |
- <property name="label"><big>test.se</big></property> | |
- <property name="use_markup">True</property> | |
- </widget> | |
- <packing> | |
- <property name="expand">False</property> | |
- <property name="position">1</property> | |
- </packing> | |
- </child> | |
- </widget> | |
- <packing> | |
- <property name="expand">False</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <widget class="GtkLabel" id="spacer_label"> | |
- <property name="visible">True</property> | |
- <property name="label" translatable="no"><span size="4"> hej</span></property> | |
- <property name="use_markup">True</property> | |
- </widget> | |
- <packing> | |
- <property name="expand">False</property> | |
- <property name="padding">6</property> | |
- <property name="position">1</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <widget class="GtkLabel" id="sign_label"> | |
- <property name="visible">True</property> | |
- <property name="xalign">0</property> | |
- <property name="label" translatable="yes">Text to sign:</property> | |
- </widget> | |
- <packing> | |
- <property name="expand">False</property> | |
- <property name="padding">6</property> | |
- <property name="position">2</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <widget class="GtkScrolledWindow" id="sign_scroller"> | |
- <property name="visible">True</property> | |
- <property name="can_focus">True</property> | |
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> | |
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> | |
- <property name="shadow_type">GTK_SHADOW_IN</property> | |
- <child> | |
- <widget class="GtkTextView" id="sign_text"> | |
- <property name="visible">True</property> | |
- <property name="can_focus">True</property> | |
- <property name="editable">False</property> | |
- </widget> | |
- </child> | |
- </widget> | |
- <packing> | |
- <property name="padding">3</property> | |
- <property name="position">3</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <widget class="GtkTable" id="table1"> | |
- <property name="visible">True</property> | |
- <property name="n_rows">2</property> | |
- <property name="n_columns">2</property> | |
- <property name="column_spacing">6</property> | |
- <property name="row_spacing">6</property> | |
- <child> | |
- <widget class="GtkLabel" id="label_signature"> | |
- <property name="visible">True</property> | |
- <property name="xalign">0</property> | |
- <property name="label" translatable="yes">Identity:</property> | |
- <property name="use_underline">True</property> | |
- <property name="mnemonic_widget">signature_combo</property> | |
- </widget> | |
- <packing> | |
- <property name="x_options">GTK_FILL</property> | |
- <property name="y_options">GTK_FILL</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <widget class="GtkLabel" id="label_password"> | |
- <property name="visible">True</property> | |
- <property name="xalign">0</property> | |
- <property name="label" translatable="yes">Password:</property> | |
- <property name="mnemonic_widget">password_entry</property> | |
- </widget> | |
- <packing> | |
- <property name="top_attach">1</property> | |
- <property name="bottom_attach">2</property> | |
- <property name="x_options">GTK_FILL</property> | |
- <property name="y_options">GTK_FILL</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <widget class="GtkComboBox" id="signature_combo"> | |
- <property name="visible">True</property> | |
- </widget> | |
- <packing> | |
- <property name="left_attach">1</property> | |
- <property name="right_attach">2</property> | |
- <property name="y_options">GTK_FILL</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <widget class="GtkEntry" id="password_entry"> | |
- <property name="visible">True</property> | |
- <property name="can_focus">True</property> | |
- <property name="visibility">False</property> | |
- <property name="activates_default">True</property> | |
- </widget> | |
- <packing> | |
- <property name="left_attach">1</property> | |
- <property name="right_attach">2</property> | |
- <property name="top_attach">1</property> | |
- <property name="bottom_attach">2</property> | |
- <property name="x_options">GTK_FILL</property> | |
- <property name="y_options">GTK_FILL</property> | |
- </packing> | |
- </child> | |
- </widget> | |
- <packing> | |
- <property name="expand">False</property> | |
- <property name="padding">6</property> | |
- <property name="position">4</property> | |
- </packing> | |
- </child> | |
- </widget> | |
- <packing> | |
- <property name="position">1</property> | |
- </packing> | |
- </child> | |
- <child internal-child="action_area"> | |
- <widget class="GtkHButtonBox" id="dialog-action_area1"> | |
- <property name="visible">True</property> | |
- <property name="layout_style">GTK_BUTTONBOX_END</property> | |
- <child> | |
- <widget class="GtkButton" id="button_cancel"> | |
- <property name="visible">True</property> | |
- <property name="can_focus">True</property> | |
- <property name="receives_default">True</property> | |
- <property name="label">gtk-cancel</property> | |
- <property name="use_stock">True</property> | |
- <property name="response_id">11</property> | |
- </widget> | |
- <packing> | |
- <property name="expand">False</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <widget class="GtkButton" id="button_sign"> | |
- <property name="visible">True</property> | |
- <property name="can_focus">True</property> | |
- <property name="can_default">True</property> | |
- <property name="has_default">True</property> | |
- <property name="receives_default">True</property> | |
- <property name="response_id">10</property> | |
- <child> | |
- <widget class="GtkHBox" id="hbox2"> | |
- <property name="visible">True</property> | |
- <child> | |
- <widget class="GtkAlignment" id="alignment1"> | |
- <property name="visible">True</property> | |
- <child> | |
- <widget class="GtkImage" id="image1"> | |
- <property name="visible">True</property> | |
- <property name="xalign">1</property> | |
- <property name="stock">gtk-apply</property> | |
- </widget> | |
- </child> | |
- </widget> | |
- </child> | |
- <child> | |
- <widget class="GtkAlignment" id="alignment2"> | |
- <property name="visible">True</property> | |
- <child> | |
- <widget class="GtkLabel" id="buttonlabel_sign"> | |
- <property name="visible">True</property> | |
- <property name="xalign">0</property> | |
- <property name="label" translatable="yes">_Prove identity</property> | |
- <property name="use_underline">True</property> | |
- </widget> | |
- </child> | |
- </widget> | |
- <packing> | |
- <property name="position">1</property> | |
- </packing> | |
- </child> | |
- </widget> | |
- </child> | |
- </widget> | |
- <packing> | |
- <property name="expand">False</property> | |
- <property name="position">1</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <widget class="GtkButton" id="browse_button"> | |
- <property name="visible">True</property> | |
- <property name="can_focus">True</property> | |
- <property name="receives_default">True</property> | |
- <property name="label" translatable="yes">External file...</property> | |
- <property name="response_id">30</property> | |
- </widget> | |
- <packing> | |
- <property name="position">2</property> | |
- <property name="secondary">True</property> | |
- </packing> | |
- </child> | |
- </widget> | |
- <packing> | |
- <property name="expand">False</property> | |
- <property name="pack_type">GTK_PACK_END</property> | |
- </packing> | |
- </child> | |
- </widget> | |
- </child> | |
- </widget> | |
-</glade-interface> | |
diff --git a/client/gtk/sign.xml b/client/gtk/sign.xml | |
deleted file mode 100644 | |
index 93a738b..0000000 | |
--- a/client/gtk/sign.xml | |
+++ /dev/null | |
@@ -1,275 +0,0 @@ | |
-<?xml version="1.0"?> | |
-<!--Generated with glade3 3.4.5 on Tue Jun 9 22:52:17 2009 --> | |
-<!-- | |
- | |
- Copyright (c) 2009 Samuel Lidén Borell <[email protected]> | |
- | |
- Permission is hereby granted, free of charge, to any person obtaining a copy | |
- of this software and associated documentation files (the "Software"), to deal | |
- in the Software without restriction, including without limitation the rights | |
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
- copies of the Software, and to permit persons to whom the Software is | |
- furnished to do so, subject to the following conditions: | |
- | |
- The above copyright notice and this permission notice shall be included in | |
- all copies or substantial portions of the Software. | |
- | |
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
- THE SOFTWARE. | |
- | |
---> | |
-<interface> | |
- <object class="GtkDialog" id="dialog_sign"> | |
- <property name="border_width">6</property> | |
- <property name="modal">True</property> | |
- <property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property> | |
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> | |
- <property name="has_separator">False</property> | |
- <child internal-child="vbox"> | |
- <object class="GtkVBox" id="dialog-vbox1"> | |
- <property name="visible">True</property> | |
- <property name="spacing">2</property> | |
- <child> | |
- <object class="GtkVBox" id="vbox1"> | |
- <property name="visible">True</property> | |
- <property name="border_width">6</property> | |
- <child> | |
- <object class="GtkHBox" id="hbox1"> | |
- <property name="visible">True</property> | |
- <child> | |
- <object class="GtkLabel" id="header_op"> | |
- <property name="visible">True</property> | |
- <property name="label"><big><b>Prove identity to: </b></big> | |
-<small> </small></property> | |
- <property name="use_markup">True</property> | |
- </object> | |
- <packing> | |
- <property name="expand">False</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <object class="GtkLabel" id="header_domain"> | |
- <property name="visible">True</property> | |
- <property name="label"><big>test.se</big></property> | |
- <property name="use_markup">True</property> | |
- </object> | |
- <packing> | |
- <property name="expand">False</property> | |
- <property name="position">1</property> | |
- </packing> | |
- </child> | |
- </object> | |
- <packing> | |
- <property name="expand">False</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <object class="GtkLabel" id="spacer_label"> | |
- <property name="visible">True</property> | |
- <property name="label" translatable="no"><span size="4"> hej</span></property> | |
- <property name="use_markup">True</property> | |
- </object> | |
- <packing> | |
- <property name="expand">False</property> | |
- <property name="padding">6</property> | |
- <property name="position">1</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <object class="GtkLabel" id="sign_label"> | |
- <property name="visible">True</property> | |
- <property name="xalign">0</property> | |
- <property name="label" translatable="yes">Text to sign:</property> | |
- </object> | |
- <packing> | |
- <property name="expand">False</property> | |
- <property name="padding">6</property> | |
- <property name="position">2</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <object class="GtkScrolledWindow" id="sign_scroller"> | |
- <property name="visible">True</property> | |
- <property name="can_focus">True</property> | |
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> | |
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> | |
- <property name="shadow_type">GTK_SHADOW_IN</property> | |
- <child> | |
- <object class="GtkTextView" id="sign_text"> | |
- <property name="visible">True</property> | |
- <property name="can_focus">True</property> | |
- <property name="editable">False</property> | |
- </object> | |
- </child> | |
- </object> | |
- <packing> | |
- <property name="padding">3</property> | |
- <property name="position">3</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <object class="GtkTable" id="table1"> | |
- <property name="visible">True</property> | |
- <property name="n_rows">2</property> | |
- <property name="n_columns">2</property> | |
- <property name="column_spacing">6</property> | |
- <property name="row_spacing">6</property> | |
- <child> | |
- <object class="GtkLabel" id="label_signature"> | |
- <property name="visible">True</property> | |
- <property name="xalign">0</property> | |
- <property name="label" translatable="yes">Identity:</property> | |
- <property name="use_underline">True</property> | |
- <property name="mnemonic_widget">signature_combo</property> | |
- </object> | |
- <packing> | |
- <property name="x_options">GTK_FILL</property> | |
- <property name="y_options">GTK_FILL</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <object class="GtkLabel" id="label_password"> | |
- <property name="visible">True</property> | |
- <property name="xalign">0</property> | |
- <property name="label" translatable="yes">Password:</property> | |
- <property name="mnemonic_widget">password_entry</property> | |
- </object> | |
- <packing> | |
- <property name="top_attach">1</property> | |
- <property name="bottom_attach">2</property> | |
- <property name="x_options">GTK_FILL</property> | |
- <property name="y_options">GTK_FILL</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <object class="GtkComboBox" id="signature_combo"> | |
- <property name="visible">True</property> | |
- </object> | |
- <packing> | |
- <property name="left_attach">1</property> | |
- <property name="right_attach">2</property> | |
- <property name="y_options">GTK_FILL</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <object class="GtkEntry" id="password_entry"> | |
- <property name="visible">True</property> | |
- <property name="can_focus">True</property> | |
- <property name="visibility">False</property> | |
- <property name="activates_default">True</property> | |
- </object> | |
- <packing> | |
- <property name="left_attach">1</property> | |
- <property name="right_attach">2</property> | |
- <property name="top_attach">1</property> | |
- <property name="bottom_attach">2</property> | |
- <property name="x_options">GTK_FILL</property> | |
- <property name="y_options">GTK_FILL</property> | |
- </packing> | |
- </child> | |
- </object> | |
- <packing> | |
- <property name="expand">False</property> | |
- <property name="padding">6</property> | |
- <property name="position">4</property> | |
- </packing> | |
- </child> | |
- </object> | |
- <packing> | |
- <property name="position">1</property> | |
- </packing> | |
- </child> | |
- <child internal-child="action_area"> | |
- <object class="GtkHButtonBox" id="dialog-action_area1"> | |
- <property name="visible">True</property> | |
- <property name="layout_style">GTK_BUTTONBOX_END</property> | |
- <child> | |
- <object class="GtkButton" id="button_cancel"> | |
- <property name="visible">True</property> | |
- <property name="can_focus">True</property> | |
- <property name="receives_default">True</property> | |
- <property name="label">gtk-cancel</property> | |
- <property name="use_stock">True</property> | |
- </object> | |
- <packing> | |
- <property name="expand">False</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <object class="GtkButton" id="button_sign"> | |
- <property name="visible">True</property> | |
- <property name="can_focus">True</property> | |
- <property name="can_default">True</property> | |
- <property name="has_default">True</property> | |
- <property name="receives_default">True</property> | |
- <child> | |
- <object class="GtkHBox" id="hbox2"> | |
- <property name="visible">True</property> | |
- <child> | |
- <object class="GtkAlignment" id="alignment1"> | |
- <property name="visible">True</property> | |
- <child> | |
- <object class="GtkImage" id="image1"> | |
- <property name="visible">True</property> | |
- <property name="xalign">1</property> | |
- <property name="stock">gtk-apply</property> | |
- </object> | |
- </child> | |
- </object> | |
- </child> | |
- <child> | |
- <object class="GtkAlignment" id="alignment2"> | |
- <property name="visible">True</property> | |
- <child> | |
- <object class="GtkLabel" id="buttonlabel_sign"> | |
- <property name="visible">True</property> | |
- <property name="xalign">0</property> | |
- <property name="label" translatable="yes">_Prove identity</property> | |
- <property name="use_underline">True</property> | |
- </object> | |
- </child> | |
- </object> | |
- <packing> | |
- <property name="position">1</property> | |
- </packing> | |
- </child> | |
- </object> | |
- </child> | |
- </object> | |
- <packing> | |
- <property name="expand">False</property> | |
- <property name="position">1</property> | |
- </packing> | |
- </child> | |
- <child> | |
- <object class="GtkButton" id="browse_button"> | |
- <property name="visible">True</property> | |
- <property name="can_focus">True</property> | |
- <property name="receives_default">True</property> | |
- <property name="label" translatable="yes">External file...</property> | |
- </object> | |
- <packing> | |
- <property name="position">2</property> | |
- <property name="secondary">True</property> | |
- </packing> | |
- </child> | |
- </object> | |
- <packing> | |
- <property name="expand">False</property> | |
- <property name="pack_type">GTK_PACK_END</property> | |
- </packing> | |
- </child> | |
- </object> | |
- </child> | |
- <action-widgets> | |
- <action-widget response="11">button_cancel</action-widget> | |
- <action-widget response="10">button_sign</action-widget> | |
- <action-widget response="30">browse_button</action-widget> | |
- </action-widgets> | |
- </object> | |
-</interface> | |
diff --git a/common/defines.h b/common/defines.h | |
index 33118aa..415355d 100644 | |
--- a/common/defines.h | |
+++ b/common/defines.h | |
@@ -45,7 +45,7 @@ | |
#define SIGNING_EXECUTABLE LIB_PATH "/sign" | |
#define UI_PATH SHARE_PATH "/ui" | |
-#define UI_GTK_XML UI_PATH "/sign.xml" | |
+#define UI_GTK_XML UI_PATH "/sign.ui" | |
#define NPAPI_PLUGIN_LIB LIB_PATH "/libfribidplugin.so" | |
#endif | |
diff --git a/translations/Makefile b/translations/Makefile | |
index 1558118..55ee291 100644 | |
--- a/translations/Makefile | |
+++ b/translations/Makefile | |
@@ -23,7 +23,12 @@ | |
.SUFFIXES: | |
.SUFFIXES: .po .mo | |
-POTFILES=../client/gtk.c ../client/gtk/sign.glade | |
+POTFILES=../client/gtk.c ../client/gtk/sign.ui | |
+# Workaround until xgettext gets support for autodetecting .ui files | |
+# | |
+# This does still not work on most recent distros because they use | |
+# too old versions of intltool. | |
+POTFILES_TYPED=../client/gtk.c -L Glade ../client/gtk/sign.ui | |
DOMAIN=`../configure --internal--get-define=BINNAME` | |
PACKAGENAME=`../configure --internal--get-define=PACKAGENAME` | |
@@ -38,7 +43,7 @@ DEFINES=../common/config.h ../common/defines.h | |
all: template.pot $(MOFILES) | |
template.pot: $(POTFILES) $(DEFINES) | |
- xgettext -k_ -ktranslatable -d $(DOMAIN) --package-name=$(PACKAGENAME) --package-version=$(PACKAGEVERSION) --copyright-holder='YOUR NAME' -o $@ $(POTFILES) | |
+ xgettext -k_ -ktranslatable -d $(DOMAIN) --package-name=$(PACKAGENAME) --package-version=$(PACKAGEVERSION) --copyright-holder='YOUR NAME' -o $@ $(POTFILES_TYPED) | |
.po.mo: | |
msgfmt $< -o $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment