#!/bin/sh # Test of Glade support. tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="$tmpfiles empty.glade" cat < empty.glade EOF tmpfiles="$tmpfiles xg-test19.pot" : ${XGETTEXT=xgettext} ${XGETTEXT} -o xg-test19.pot empty.glade 2>/dev/null test $? = 0 || { echo "SKIP: xgettext-19"; rm -fr $tmpfiles; exit 77; } tmpfiles="$tmpfiles widgets.glade" cat < widgets.glade project1 src C True True False True True True True interface.c interface.h callbacks.c callbacks.h support.c support.h GnomeApp appwin destroy gtk_main_quit Thu, 17 Jun 1999 15:06:07 GMT Libglade-GNOME Test GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False False True False True GnomeDock GnomeApp:dock dock1 True 0 True True GnomeDockItem dockitem1 2 GNOME_DOCK_TOP 0 0 0 False False False True False GTK_SHADOW_OUT GtkMenuBar menubar1 GTK_SHADOW_NONE GtkMenuItem file1 GNOMEUIINFO_MENU_FILE_TREE GtkMenu file1_menu GtkPixmapMenuItem open2 activate gtk_widget_show filesel Thu, 17 Jun 1999 15:03:18 GMT GNOMEUIINFO_MENU_OPEN_ITEM GtkMenuItem show_tests1 activate gtk_widget_show testwin Thu, 17 Jun 1999 14:52:01 GMT False GtkMenuItem druid_test1 activate gtk_widget_show druidwin Thu, 28 Oct 1999 15:53:37 GMT False GtkMenuItem separator2 False GtkPixmapMenuItem exit1 activate gtk_widget_show closebox Thu, 17 Jun 1999 07:44:23 GMT GNOMEUIINFO_MENU_EXIT_ITEM GtkMenuItem edit1 GNOMEUIINFO_MENU_EDIT_TREE GtkMenu edit1_menu GtkPixmapMenuItem undo1 GNOMEUIINFO_MENU_UNDO_ITEM GtkPixmapMenuItem redo1 GNOMEUIINFO_MENU_REDO_ITEM GtkMenuItem separator3 False GtkPixmapMenuItem cut1 activate gtk_editable_cut_clipboard textbox Thu, 17 Jun 1999 07:34:00 GMT GNOMEUIINFO_MENU_CUT_ITEM GtkPixmapMenuItem copy1 activate gtk_editable_copy_clipboard textbox Thu, 17 Jun 1999 07:34:21 GMT GNOMEUIINFO_MENU_COPY_ITEM GtkPixmapMenuItem paste1 activate gtk_editable_paste_clipboard textbox Thu, 17 Jun 1999 07:34:47 GMT GNOMEUIINFO_MENU_PASTE_ITEM GtkPixmapMenuItem clear1 activate gtk_editable_delete_selection textbox Thu, 17 Jun 1999 07:35:04 GMT GNOMEUIINFO_MENU_CLEAR_ITEM GtkMenuItem settings1 GNOMEUIINFO_MENU_SETTINGS_TREE GtkMenu settings1_menu GtkPixmapMenuItem preferences1 activate gtk_widget_show propbox Tue, 28 Sep 1999 04:29:36 GMT GNOMEUIINFO_MENU_PREFERENCES_ITEM GtkMenuItem help1 GNOMEUIINFO_MENU_HELP_TREE GtkMenu help1_menu GtkPixmapMenuItem about1 activate gtk_widget_show aboutwin Thu, 17 Jun 1999 07:38:13 GMT GNOMEUIINFO_MENU_ABOUT_ITEM GnomeDockItem dockitem2 1 GNOME_DOCK_TOP 1 0 0 False False False False False GTK_SHADOW_OUT GtkToolbar toolbar1 1 GTK_ORIENTATION_HORIZONTAL GTK_TOOLBAR_BOTH 16 GTK_TOOLBAR_SPACE_LINE GTK_RELIEF_NONE True GtkButton Toolbar:button button1 GNOME_STOCK_PIXMAP_NEW GtkButton Toolbar:button button2 GNOME_STOCK_PIXMAP_OPEN GtkButton Toolbar:button button3 GNOME_STOCK_PIXMAP_SAVE GtkButton Toolbar:button button4 clicked gtk_editable_cut_clipboard textbox Thu, 17 Jun 1999 07:31:19 GMT GNOME_STOCK_PIXMAP_CUT True GtkButton Toolbar:button button5 clicked gtk_editable_copy_clipboard textbox Thu, 17 Jun 1999 07:32:16 GMT GNOME_STOCK_PIXMAP_COPY GtkButton Toolbar:button button6 clicked gtk_editable_paste_clipboard textbox Thu, 17 Jun 1999 07:33:13 GMT GNOME_STOCK_PIXMAP_PASTE GtkButton Toolbar:button button7 clicked gtk_editable_delete_selection textbox Thu, 17 Jun 1999 07:33:30 GMT GNOME_STOCK_PIXMAP_CLEAR GtkToggleButton Toolbar:button togglebutton1 GNOME_STOCK_PIXMAP_ATTACH False True GtkText GnomeDock:contents textbox True True True The cut copy paste and clear buttons should work correctly. GnomeAppBar GnomeApp:appbar appbar1 False True 0 True True GnomeAbout aboutwin False clicked gtk_widget_hide Thu, 17 Jun 1999 07:37:41 GMT True Copyright (C) 1999 James Henstridge <james@daa.com.au> A simple program demonstrating what is possible with GNOME and libglade. This interface has been coded entirely with GLADE, and no C code specific to this interface has been written. GnomeMessageBox closebox False GNOME_MESSAGE_BOX_QUESTION Are you sure you want to quit the application? GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False False False False True False GtkVBox GnomeDialog:vbox dialog-vbox1 False 8 4 True True GtkHButtonBox GnomeDialog:action_area dialog-action_area1 GTK_BUTTONBOX_END 8 85 27 7 0 0 False True GTK_PACK_END GtkButton button8 True True clicked gtk_main_quit Sat, 19 Jun 1999 13:56:42 GMT GNOME_STOCK_BUTTON_YES GtkButton button9 True True clicked gtk_widget_hide closebox Sat, 19 Jun 1999 13:56:56 GMT GNOME_STOCK_BUTTON_NO GtkButton button11 True True GNOME_STOCK_PIXMAP_OPEN GtkWindow testwin False delete_event gtk_widget_hide Thu, 17 Jun 1999 14:53:15 GMT delete_event gtk_true Thu, 17 Jun 1999 14:53:29 GMT Widget Tests GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False False True False GtkNotebook notebook1 True True True GTK_POS_TOP True 2 2 False GnomeColorPicker colorpicker1 100 True True False Pick a colour Pick a colour GtkLabel Notebook:tab label1 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GnomeFontPicker fontpicker1 75 True Pick a Font AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz GNOME_FONT_PICKER_MODE_FONT_INFO True True 14 GtkLabel Notebook:tab label2 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GnomeIconEntry iconentry1 Hello iconent_hist 10 GtkLabel Notebook:tab label3 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GnomeHRef href1 150 True http://www.daa.com.au/~james/gnome/ GtkLabel Notebook:tab label4 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GnomeEntry entry1 EntTest 10 GtkEntry GnomeEntry:entry entry2 True True True 0 GtkLabel Notebook:tab label5 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GnomeFileEntry fileentry1 50 FileEntTest 10 False False GtkEntry GnomeEntry:entry entry3 True True True 0 GtkLabel Notebook:tab label6 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GtkDial dial1 False GTK_UPDATE_CONTINUOUS 0 0 100 0 0 0 GtkLabel Notebook:tab label7 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GtkClock clock1 GTK_CLOCK_REALTIME %H:%M 0 60 GtkLabel Notebook:tab label8 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GnomeAnimator animator1 0 0 GNOME_ANIMATOR_LOOP_NONE False 1 GtkLabel Notebook:tab label9 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GnomeCalculator calculator1 GtkLabel Notebook:tab label10 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GnomeLess less1 -b&h-lucidatypewriter-bold-r-normal-*-*-140-*-*-m-*-iso8859-1 GtkLabel Notebook:tab label11 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GnomePaperSelector paperselector1 50 GtkLabel Notebook:tab label12 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GnomeSpell spell1 GtkLabel Notebook:tab label13 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GtkFileSelection filesel 10 False delete_event gtk_widget_hide Thu, 17 Jun 1999 14:58:58 GMT delete_event gtk_true Thu, 17 Jun 1999 14:59:07 GMT Select File GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False False True False True GtkButton FileSel:ok_button ok_button1 True True clicked gtk_widget_hide filesel Thu, 17 Jun 1999 15:02:33 GMT clicked gtk_widget_show msgdialog Thu, 17 Jun 1999 15:02:51 GMT GtkButton FileSel:cancel_button cancel_button1 True True True clicked gtk_widget_hide filesel Thu, 17 Jun 1999 14:59:25 GMT GnomeDialog msgdialog False GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False False False False True True GtkVBox GnomeDialog:vbox dialog-vbox2 False 8 4 True True GtkLabel label14 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 0 False False GtkHButtonBox GnomeDialog:action_area dialog-action_area2 GTK_BUTTONBOX_END 8 85 27 7 0 0 False True GTK_PACK_END GtkButton button10 True True GNOME_STOCK_BUTTON_OK GtkButton button10 True True GnomePropertyBox propbox False delete_event gtk_widget_hide Tue, 28 Sep 1999 04:29:52 GMT delete_event gtk_true Tue, 28 Sep 1999 04:30:00 GMT clicked gtk_widget_hide Tue, 28 Sep 1999 04:30:37 GMT GtkNotebook GnomePropertyBox:notebook notebook2 True True True GTK_POS_TOP False 2 2 False 0 True True GtkFrame frame1 5 0 GTK_SHADOW_ETCHED_IN GtkVBox vbox1 5 False 3 GtkCombo combo1 False True False True False 0 False False GtkEntry GtkCombo:entry combo-entry1 True changed gnome_property_box_changed propbox Tue, 28 Sep 1999 04:25:07 GMT True True 0 GnomeFileEntry fileentry2 10 False False 0 False False GtkEntry GnomeEntry:entry combo-entry3 True changed gnome_property_box_changed propbox Tue, 28 Sep 1999 04:25:19 GMT True True 0 GnomePixmapEntry pixmapentry1 True 0 False False GnomeFileEntry GnomePixmapEntry:file-entry entry4 10 False False GtkEntry GnomeEntry:entry combo-entry2 True changed gnome_property_box_changed propbox Tue, 28 Sep 1999 04:25:38 GMT True True 0 GtkLabel Notebook:tab label15 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GtkFrame frame2 5 0 GTK_SHADOW_OUT GtkDial dial2 False GTK_UPDATE_CONTINUOUS 0 0 100 0 0 0 GtkLabel Notebook:tab label16 GTK_JUSTIFY_CENTER False 0.5 0.5 0 0 GtkWindow druidwin False delete_event gtk_widget_hide Thu, 28 Oct 1999 15:52:59 GMT delete_event gtk_true Thu, 28 Oct 1999 15:53:09 GMT GnomeDruid GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False False True False GnomeDruid druid1 cancel gtk_widget_hide druidwin Thu, 28 Oct 1999 15:55:01 GMT GnomeDruidPageStart druidpagestart1 Test GnomeDruid This is a simple test of the GnomeDruid code in gnome-libs and the wrapper for said code in libglade. 255,255,255 0,0,0 254,226,40 255,0,20 95,254,235 GnomeDruidPageStandard druidpagestandard1 A dial in a druid 255,255,255 55,190,93 255,5,234 GtkVBox GnomeDruidPageStandard:vbox druid-vbox1 50 False 0 0 True True GtkDial dial3 False GTK_UPDATE_CONTINUOUS 0 0 100 0 0 0 0 True True GnomeDruidPageFinish druidpagefinish1 finish gtk_widget_hide druidwin Thu, 28 Oct 1999 15:55:24 GMT Last Page This is the end of the druid example 25,25,112 255,147,6 190,190,190 0,0,0 255,255,255 EOF tmpfiles="$tmpfiles xg-test19.pot" : ${XGETTEXT=xgettext} ${XGETTEXT} --add-comments -o - widgets.glade | grep -v 'POT-Creation-Date' > xg-test19.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-test19.ok" cat < xg-test19.ok # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: widgets.glade:33 msgid "Libglade-GNOME Test" msgstr "" #: widgets.glade:103 msgid "Show _Tests" msgstr "" #: widgets.glade:116 msgid "Druid Test" msgstr "" #: widgets.glade:295 msgid "New" msgstr "" #: widgets.glade:303 msgid "Open" msgstr "" #: widgets.glade:311 msgid "Save" msgstr "" #: widgets.glade:325 msgid "Cut" msgstr "" #: widgets.glade:342 msgid "Copy" msgstr "" #: widgets.glade:356 msgid "Paste" msgstr "" #: widgets.glade:370 msgid "Clear" msgstr "" #: widgets.glade:378 msgid "Tog" msgstr "" #: widgets.glade:395 msgid "The cut copy paste and clear buttons should work correctly." msgstr "" #: widgets.glade:423 msgid "Copyright (C) 1999" msgstr "" #: widgets.glade:426 msgid "" "A simple program demonstrating what is possible with GNOME and\n" "libglade. This interface has been coded entirely with GLADE, and\n" "no C code specific to this interface has been written." msgstr "" #: widgets.glade:508 msgid "X" msgstr "" #: widgets.glade:529 msgid "Widget Tests" msgstr "" #: widgets.glade:556 widgets.glade:557 msgid "Pick a colour" msgstr "" #: widgets.glade:564 msgid "Colour Picker" msgstr "" #: widgets.glade:578 msgid "Pick a Font" msgstr "" #: widgets.glade:579 msgid "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" msgstr "" #: widgets.glade:590 msgid "Font Picker" msgstr "" #. The welcome greeting #: widgets.glade:603 msgid "Hello" msgstr "" #: widgets.glade:612 msgid "Icon Sel" msgstr "" #: widgets.glade:627 msgid "My Gnome Site" msgstr "" #: widgets.glade:634 msgid "HRef" msgstr "" #: widgets.glade:665 msgid "Entry" msgstr "" #: widgets.glade:699 msgid "File Entry" msgstr "" #: widgets.glade:725 msgid "Dial" msgstr "" #. This is a comment for the translators. #. This should be an strftime format, #. as described in the strftime(3) manual page. #: widgets.glade:742 msgid "%H:%M" msgstr "" #: widgets.glade:751 msgid "Clock" msgstr "" #: widgets.glade:774 msgid "Animator" msgstr "" #: widgets.glade:792 msgid "Calculator" msgstr "" #: widgets.glade:811 msgid "Less" msgstr "" #: widgets.glade:830 msgid "PaperSel" msgstr "" #: widgets.glade:848 msgid "GnomeSpell" msgstr "" #: widgets.glade:874 msgid "Select File" msgstr "" #: widgets.glade:901 msgid "OK" msgstr "" #: widgets.glade:917 msgid "Cancel" msgstr "" #: widgets.glade:949 msgid "" "If this was a real application, clicking on the\n" "OK button would probably have done something\n" "useful, rather than just displaying this dialog." msgstr "" #: widgets.glade:995 msgid "Nothing" msgstr "" #: widgets.glade:1159 msgid "_Entry" msgstr "" #: widgets.glade:1193 msgid "_Dial" msgstr "" #: widgets.glade:1218 msgid "GnomeDruid" msgstr "" #: widgets.glade:1239 msgid "Test GnomeDruid" msgstr "" #: widgets.glade:1240 msgid "" "This is a simple test of the GnomeDruid\n" "code in gnome-libs and the wrapper\n" "for said code in libglade." msgstr "" #: widgets.glade:1253 msgid "A dial in a druid" msgstr "" #: widgets.glade:1300 msgid "Last Page" msgstr "" #: widgets.glade:1301 msgid "This is the end of the druid example" msgstr "" EOF : ${DIFF=diff} ${DIFF} xg-test19.ok xg-test19.pot result=$? rm -fr $tmpfiles exit $result