diff options
author | Bruno Coudoin <bcoudoin@src.gnome.org> | 2006-01-30 00:27:17 (GMT) |
---|---|---|
committer | Bruno Coudoin <bcoudoin@src.gnome.org> | 2006-01-30 00:27:17 (GMT) |
commit | 97bad56f58c515384048266e411fc9685482b615 (patch) | |
tree | 5da3119b1e1ec69ba73bcc5b955394addc84f035 | |
parent | d49c121227a2ea1469340b8fdbffdc4f5dc5f3fd (diff) |
- Cleanup in awele. Now uses translatable strings for NORTH and SOUTH.
- Changed to use GCompris reload button instead of 'in game' one
-rw-r--r-- | ChangeLog | 19 | ||||
-rw-r--r-- | boards/awele/awele_frame.jpg | bin | 33353 -> 0 bytes | |||
-rw-r--r-- | boards/awele/awele_frame.png | bin | 440146 -> 433301 bytes | |||
-rw-r--r-- | boards/awele/awele_frame_avec_messages.png | bin | 500899 -> 0 bytes | |||
-rw-r--r-- | boards/awele/nv_partie.png | bin | 6244 -> 0 bytes | |||
-rw-r--r-- | boards/awele/nv_partie_clic.png | bin | 5065 -> 0 bytes | |||
-rw-r--r-- | boards/awele/nv_partie_notify.png | bin | 6336 -> 0 bytes | |||
-rw-r--r-- | po/TRANSLATORS.README | 3 | ||||
-rw-r--r-- | src/boards/awele.c | 213 | ||||
-rw-r--r-- | src/boards/awele.h | 23 | ||||
-rw-r--r-- | src/boards/python/electric.py | 7 | ||||
-rw-r--r-- | src/gcompris/gcompris-edit.glade | 908 | ||||
-rw-r--r-- | src/gcompris/gcompris-edit.gladep | 12 |
13 files changed, 149 insertions, 1036 deletions
@@ -1,3 +1,22 @@ +2006-01-30 Bruno coudoin <bruno.coudoin@free.fr> + + - Cleanup in awele. Now uses translatable strings for NORTH and SOUTH. + - Changed to use GCompris reload button instead of 'in game' one + + * boards/awele/awele_frame.jpg: + * boards/awele/awele_frame.png: + * boards/awele/awele_frame_avec_messages.png: + * boards/awele/nv_partie.png: + * boards/awele/nv_partie_clic.png: + * boards/awele/nv_partie_notify.png: + * po/TRANSLATORS.README: + * src/boards/awele.c: (start_board), (repeat), (awele_create_item), + (buttonNewGameClick): + * src/boards/awele.h: + * src/boards/python/electric.py: + * src/gcompris/gcompris-edit.glade: removed, useless file + * src/gcompris/gcompris-edit.gladep: - + 2006-01-23 Bruno coudoin <bruno.coudoin@free.fr> Fixed po file list diff --git a/boards/awele/awele_frame.jpg b/boards/awele/awele_frame.jpg Binary files differdeleted file mode 100644 index 65f9798..0000000 --- a/boards/awele/awele_frame.jpg +++ /dev/null diff --git a/boards/awele/awele_frame.png b/boards/awele/awele_frame.png Binary files differindex b2196a9..e5efad9 100644 --- a/boards/awele/awele_frame.png +++ b/boards/awele/awele_frame.png diff --git a/boards/awele/awele_frame_avec_messages.png b/boards/awele/awele_frame_avec_messages.png Binary files differdeleted file mode 100644 index 0439d22..0000000 --- a/boards/awele/awele_frame_avec_messages.png +++ /dev/null diff --git a/boards/awele/nv_partie.png b/boards/awele/nv_partie.png Binary files differdeleted file mode 100644 index 5426862..0000000 --- a/boards/awele/nv_partie.png +++ /dev/null diff --git a/boards/awele/nv_partie_clic.png b/boards/awele/nv_partie_clic.png Binary files differdeleted file mode 100644 index 33e8476..0000000 --- a/boards/awele/nv_partie_clic.png +++ /dev/null diff --git a/boards/awele/nv_partie_notify.png b/boards/awele/nv_partie_notify.png Binary files differdeleted file mode 100644 index 4bccc70..0000000 --- a/boards/awele/nv_partie_notify.png +++ /dev/null diff --git a/po/TRANSLATORS.README b/po/TRANSLATORS.README index 69e6241..5176beb 100644 --- a/po/TRANSLATORS.README +++ b/po/TRANSLATORS.README @@ -1,6 +1,9 @@ NOTE TO TRANSLATORS ------------------- +WARNING: After a .po update and install, run GCompris with --reread-menu option + in order to see your changes. (GCompris caches strings in a database). + GCompris is a little bit special in terms of translation needs. The best is done to bring back everything to .po files but it is not exhaustive. diff --git a/src/boards/awele.c b/src/boards/awele.c index 27788a1..8daabde 100644 --- a/src/boards/awele.c +++ b/src/boards/awele.c @@ -34,6 +34,7 @@ static void pause_board (gboolean pause); static void end_board (void); static int gamewon; static void game_won (void); +static void repeat(void); static GnomeCanvasGroup *boardRootItem = NULL; @@ -66,7 +67,7 @@ static BoardPlugin menu_bp = { NULL, NULL, NULL, - NULL, + repeat, NULL, NULL }; @@ -103,14 +104,27 @@ start_board (GcomprisBoard * agcomprisBoard) if (agcomprisBoard != NULL) { + gchar *str; + GdkPixbuf *pixmap = NULL; + gcomprisBoard = agcomprisBoard; - gcomprisBoard->level = 9; - gcomprisBoard->maxlevel = 13; - gcomprisBoard->sublevel = 2; - gcomprisBoard->number_of_sublevel = 1; /* Go to next level after + gcomprisBoard->level = 1; + gcomprisBoard->maxlevel = 9; + gcomprisBoard->sublevel = 1; + gcomprisBoard->number_of_sublevel = 10; /* Go to next level after * this number of 'play' */ - gcompris_bar_set (GCOMPRIS_BAR_LEVEL); + str = gcompris_image_to_skin("button_reload.png"); + pixmap = gcompris_load_pixmap(str); + g_free(str); + if(pixmap) { + gcompris_bar_set_repeat_icon(pixmap); + gdk_pixbuf_unref(pixmap); + gcompris_bar_set(GCOMPRIS_BAR_REPEAT_ICON); + } else { + gcompris_bar_set(GCOMPRIS_BAR_REPEAT); + } + awele_next_level (); gamewon = FALSE; @@ -150,6 +164,15 @@ is_our_board (GcomprisBoard * gcomprisBoard) return FALSE; } +/* + * Repeat let the user restart the current level + * + */ +static void repeat (){ + + buttonNewGameClick(graphsElt); +} + /*-------------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------------*/ @@ -228,6 +251,58 @@ awele_create_item (GnomeCanvasGroup * parent) (double) gdk_pixbuf_get_height (pixmap), "width_set", TRUE, "height_set", TRUE, NULL); + /* + * Display text + */ + { + int x, y; + + x = 35; + y = 190; + gnome_canvas_item_new (boardRootItem, + gnome_canvas_text_get_type (), + "text", _("NORTH"), + "font", gcompris_skin_font_board_medium, + "x", (double) x + 1, + "y", (double) y + 1, + "anchor", GTK_ANCHOR_CENTER, + "fill_color_rgba", gcompris_skin_color_shadow, + NULL); + + gnome_canvas_item_new (boardRootItem, + gnome_canvas_text_get_type (), + "text", _("NORTH"), + "font", gcompris_skin_font_board_medium, + "x", (double) x, + "y", (double) y, + "anchor", GTK_ANCHOR_CENTER, + "fill_color_rgba", gcompris_skin_color_text_button, + NULL); + + x = 765; + y = 295; + gnome_canvas_item_new (boardRootItem, + gnome_canvas_text_get_type (), + "text", _("SOUTH"), + "font", gcompris_skin_font_board_medium, + "x", (double) x + 1, + "y", (double) y + 1, + "anchor", GTK_ANCHOR_CENTER, + "fill_color_rgba", gcompris_skin_color_shadow, + NULL); + + gnome_canvas_item_new (boardRootItem, + gnome_canvas_text_get_type (), + "text", _("SOUTH"), + "font", gcompris_skin_font_board_medium, + "x", (double) x, + "y", (double) y, + "anchor", GTK_ANCHOR_CENTER, + "fill_color_rgba", gcompris_skin_color_text_button, + NULL); + + } + staticAwale = (AWALE *) malloc (sizeof (AWALE)); if (!staticAwale) @@ -402,28 +477,6 @@ awele_create_item (GnomeCanvasGroup * parent) "anchor", GTK_ANCHOR_CENTER, NULL); - strcpy (xpmFile, NEWGAME); - graphsElt->pixbufButtonNewGame = gcompris_load_pixmap (xpmFile); - strcpy (xpmFile, NEWGAME_CLIC); - graphsElt->pixbufButtonNewGameClicked = - gcompris_load_pixmap (xpmFile); - strcpy (xpmFile, NEWGAME_NOTIFY); - graphsElt->pixbufButtonNewGameNotify = gcompris_load_pixmap (xpmFile); - - graphsElt->ButtonNewGame = gnome_canvas_item_new (boardRootItem, - gnome_canvas_pixbuf_get_type - (), "x", - (double) 700, "y", - (double) 60, - "pixbuf", - graphsElt-> - pixbufButtonNewGame, - NULL); - - gtk_signal_connect (GTK_OBJECT (graphsElt->ButtonNewGame), "event", - GTK_SIGNAL_FUNC (buttonNewGameClick), - (gpointer) buttonClickArgs[1]); - gcomprisBoard->level = 1; return NULL; @@ -468,7 +521,7 @@ game_won () * les elements graphiques a modifier. * @return void */ -void +static void initBoardGraphics (GRAPHICS_ELT * graphsElt) { @@ -520,7 +573,7 @@ initBoardGraphics (GRAPHICS_ELT * graphsElt) * les elements graphiques a modifier. * @return un entier */ -gint +static gint buttonClick (GtkWidget * item, GdkEvent * event, gpointer data) { @@ -629,7 +682,7 @@ buttonClick (GtkWidget * item, GdkEvent * event, gpointer data) * @param alpha entier pour differencier une mise a jour du plateau ou le lancement d'une nouvelle partie. * @return Renvoi du pointeur sur la zone memoire apres redimension (n'a probablement pas changé d'adresse). */ -BEANHOLE_LINK * +static BEANHOLE_LINK * updateNbBeans (GnomeCanvasItem * nbBeansHole[NBHOLE], GnomeCanvasGroup * rootGroup, BEANHOLE_LINK * ptLink, int alpha) @@ -724,7 +777,7 @@ updateNbBeans (GnomeCanvasItem * nbBeansHole[NBHOLE], * pour remettre a jour le score des joueurs * @param Captures[2] pointeur sur les gnomeCanvasItem d'affichage des scores */ -void +static void updateCapturedBeans (GnomeCanvasItem * Captures[2]) { @@ -750,76 +803,42 @@ updateCapturedBeans (GnomeCanvasItem * Captures[2]) * les elements graphiques a modifier. * @return un entier */ -gint -buttonNewGameClick (GtkWidget * item, GdkEvent * event, gpointer data) +static gint +buttonNewGameClick (GRAPHICS_ELT *graphsElt) { - - CALLBACK_ARGS *args; - short int i = 0, nbCapturedBean = 0; + short int nbCapturedBean = 0; BEANHOLE_LINK *ptLink; - args = (CALLBACK_ARGS *) data; + int i; - switch (event->type) - { - case GDK_ENTER_NOTIFY: - g_object_set (GTK_OBJECT (args->graphsElt->ButtonNewGame), - "pixbuf", - args->graphsElt->pixbufButtonNewGameNotify, - NULL); - break; - case GDK_LEAVE_NOTIFY: - g_object_set (GTK_OBJECT (args->graphsElt->ButtonNewGame), - "pixbuf", args->graphsElt->pixbufButtonNewGame, - NULL); - break; - case GDK_BUTTON_PRESS: - g_object_set (GTK_OBJECT (args->graphsElt->ButtonNewGame), - "pixbuf", - args->graphsElt->pixbufButtonNewGameClicked, - NULL); - g_object_set (args->graphsElt->msg, "text", "", NULL); - break; - case GDK_BUTTON_RELEASE: - g_object_set (GTK_OBJECT (args->graphsElt->ButtonNewGame), - "pixbuf", - args->graphsElt->pixbufButtonNewGameNotify, - NULL); - - nbCapturedBean = - staticAwale->CapturedBeans[HUMAN] + - staticAwale->CapturedBeans[COMPUTER]; + nbCapturedBean = + staticAwale->CapturedBeans[HUMAN] + + staticAwale->CapturedBeans[COMPUTER]; /** - * Destruction de toute les graines et remise a zero compteur de capture - * et indicateur nbre de graine par case + * Destruction de toute les graines et remise a zero compteur de capture + * et indicateur nbre de graine par case */ - for (ptLink = args->graphsElt->ptBeansHoleLink, i = 0; - i < NBTOTALBEAN - nbCapturedBean; i++, ptLink++) - { - gtk_object_destroy (GTK_OBJECT (ptLink->beanPixbuf)); - } - - for (i = 0; i < NBHOLE; i++) - { - staticAwale->board[i] = NBBEANSPERHOLE; - g_object_set (GTK_OBJECT - (args->graphsElt->nbBeansHole[i]), - "text", "4", NULL); - } - - staticAwale->player = HUMAN; - - for (i = 0; i < NBPLAYER; i++) - { - staticAwale->CapturedBeans[i] = 0; - } - - updateCapturedBeans (args->graphsElt->Captures); - initBoardGraphics (args->graphsElt); - break; - default: - break; - } + for (ptLink = graphsElt->ptBeansHoleLink, i = 0; + i < NBTOTALBEAN - nbCapturedBean; i++, ptLink++) + { + gtk_object_destroy (GTK_OBJECT (ptLink->beanPixbuf)); + } + + for (i = 0; i < NBHOLE; i++) + { + staticAwale->board[i] = NBBEANSPERHOLE; + g_object_set (GTK_OBJECT + (graphsElt->nbBeansHole[i]), + "text", "4", NULL); + } + + staticAwale->player = HUMAN; - return FALSE; + for (i = 0; i < NBPLAYER; i++) + { + staticAwale->CapturedBeans[i] = 0; + } + + updateCapturedBeans (graphsElt->Captures); + initBoardGraphics (graphsElt); } diff --git a/src/boards/awele.h b/src/boards/awele.h index cb40d21..2d883f4 100644 --- a/src/boards/awele.h +++ b/src/boards/awele.h @@ -16,9 +16,6 @@ #define BOUTON "awele/bouton1.png" //Chemin relatif vers fichiers boutons #define BOUTON_NOTIFY "awele/bouton1_notify.png" //Chemin relatif vers fichiers boutons cliqués #define BOUTON_CLIC "awele/bouton1_clic.png" //Chemin relatif vers fichiers boutons cliqués -#define NEWGAME "awele/nv_partie.png" -#define NEWGAME_NOTIFY "awele/nv_partie_notify.png" -#define NEWGAME_CLIC "awele/nv_partie_clic.png" #define BEAN "awele/graine1.png" //Chemin relatif vers fichiers graines #define Y_BOUTONS 412 //Abcisse des boutons @@ -44,10 +41,6 @@ typedef struct { GdkPixbuf *pixbufButtonClicked[6]; //pixbuf des boutons cliqués GnomeCanvasItem *Captures[2]; //Tableau d'item affichage nbre graine capturées. GdkPixbuf *pixbufBeans[4]; //pixbufs des graines - GdkPixbuf *pixbufButtonNewGame; - GdkPixbuf *pixbufButtonNewGameNotify; - GdkPixbuf *pixbufButtonNewGameClicked; - GnomeCanvasItem *ButtonNewGame; } GRAPHICS_ELT; typedef struct { @@ -56,16 +49,16 @@ typedef struct { } CALLBACK_ARGS; /* -* Fonctions de traitement des évènements, signaux et rappels +* Fonctions de traitement des events, signaux et rappels */ -gint eventDelete (GtkWidget * widget, GdkEvent *event, gpointer data); -gint eventDestroy (GtkWidget * widget, GdkEvent *event, gpointer data); -gint buttonClick (GtkWidget *item, GdkEvent *event, gpointer data); -gint buttonNewGameClick (GtkWidget *item, GdkEvent *event, gpointer data); +static gint eventDelete (GtkWidget * widget, GdkEvent *event, gpointer data); +static gint eventDestroy (GtkWidget * widget, GdkEvent *event, gpointer data); +static gint buttonClick (GtkWidget *item, GdkEvent *event, gpointer data); +static gint buttonNewGameClick (GRAPHICS_ELT *graphsElt); /** * Fonctions Mise a jour de l'affichage */ -BEANHOLE_LINK * updateNbBeans (GnomeCanvasItem *nbBeansHole[NBHOLE], GnomeCanvasGroup *rootGroup, BEANHOLE_LINK *ptLink, int alpha); -void updateCapturedBeans (GnomeCanvasItem *Captures[2]); -void initBoardGraphics (GRAPHICS_ELT *graphsElt); +static BEANHOLE_LINK * updateNbBeans (GnomeCanvasItem *nbBeansHole[NBHOLE], GnomeCanvasGroup *rootGroup, BEANHOLE_LINK *ptLink, int alpha); +static void updateCapturedBeans (GnomeCanvasItem *Captures[2]); +static void initBoardGraphics (GRAPHICS_ELT *graphsElt); diff --git a/src/boards/python/electric.py b/src/boards/python/electric.py index 4fe41d9..8247cf5 100644 --- a/src/boards/python/electric.py +++ b/src/boards/python/electric.py @@ -26,8 +26,6 @@ import gcompris.admin import gcompris.bonus import gtk import gtk.gdk -import random -import pango import os @@ -274,12 +272,13 @@ class Gcompris_electric: # A list of couple (component class, it's value) component_set = ((Battery, 10), - (Connection, None), (Bulb, 0.11), (Rheostat, 100), (Resistor, 1000), (Diode, None), - (Switch, None)) + (Switch, None), + (Connection, None) + ) Selector(self, component_set) diff --git a/src/gcompris/gcompris-edit.glade b/src/gcompris/gcompris-edit.glade deleted file mode 100644 index fe1e14d..0000000 --- a/src/gcompris/gcompris-edit.glade +++ /dev/null @@ -1,908 +0,0 @@ -<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> -<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> - -<glade-interface> -<requires lib="gnome"/> -<requires lib="bonobo"/> - -<widget class="GnomeApp" id="gcompris_edit"> - <property name="visible">True</property> - <property name="title" translatable="yes">Gcompris Editor</property> - <property name="type">GTK_WINDOW_TOPLEVEL</property> - <property name="window_position">GTK_WIN_POS_NONE</property> - <property name="modal">False</property> - <property name="default_width">640</property> - <property name="default_height">480</property> - <property name="resizable">True</property> - <property name="destroy_with_parent">False</property> - <property name="icon">gcompris-edit.png</property> - <property name="enable_layout_config">True</property> - - <child internal-child="dock"> - <widget class="BonoboDock" id="bonobodock1"> - <property name="visible">True</property> - <property name="allow_floating">True</property> - - <child> - <widget class="BonoboDockItem" id="bonobodockitem1"> - <property name="visible">True</property> - <property name="shadow_type">GTK_SHADOW_NONE</property> - - <child> - <widget class="GtkMenuBar" id="menubar1"> - <property name="visible">True</property> - - <child> - <widget class="GtkMenuItem" id="file1"> - <property name="visible">True</property> - <property name="stock_item">GNOMEUIINFO_MENU_FILE_TREE</property> - - <child> - <widget class="GtkMenu" id="file1_menu"> - - <child> - <widget class="GtkImageMenuItem" id="quit1"> - <property name="visible">True</property> - <property name="stock_item">GNOMEUIINFO_MENU_EXIT_ITEM</property> - <signal name="activate" handler="on_quit1_activate" last_modification_time="Fri, 13 Dec 2002 22:37:43 GMT"/> - </widget> - </child> - </widget> - </child> - </widget> - </child> - - <child> - <widget class="GtkMenuItem" id="edit1"> - <property name="visible">True</property> - <property name="stock_item">GNOMEUIINFO_MENU_EDIT_TREE</property> - - <child> - <widget class="GtkMenu" id="edit1_menu"> - - <child> - <widget class="GtkImageMenuItem" id="cut1"> - <property name="visible">True</property> - <property name="stock_item">GNOMEUIINFO_MENU_CUT_ITEM</property> - <signal name="activate" handler="on_cut1_activate" last_modification_time="Fri, 13 Dec 2002 22:37:43 GMT"/> - </widget> - </child> - - <child> - <widget class="GtkImageMenuItem" id="copy1"> - <property name="visible">True</property> - <property name="stock_item">GNOMEUIINFO_MENU_COPY_ITEM</property> - <signal name="activate" handler="on_copy1_activate" last_modification_time="Fri, 13 Dec 2002 22:37:43 GMT"/> - </widget> - </child> - - <child> - <widget class="GtkImageMenuItem" id="paste1"> - <property name="visible">True</property> - <property name="stock_item">GNOMEUIINFO_MENU_PASTE_ITEM</property> - <signal name="activate" handler="on_paste1_activate" last_modification_time="Fri, 13 Dec 2002 22:37:43 GMT"/> - </widget> - </child> - </widget> - </child> - </widget> - </child> - - <child> - <widget class="GtkMenuItem" id="help1"> - <property name="visible">True</property> - <property name="stock_item">GNOMEUIINFO_MENU_HELP_TREE</property> - - <child> - <widget class="GtkMenu" id="help1_menu"> - - <child> - <widget class="GtkImageMenuItem" id="about1"> - <property name="visible">True</property> - <property name="stock_item">GNOMEUIINFO_MENU_ABOUT_ITEM</property> - <signal name="activate" handler="on_about1_activate" last_modification_time="Fri, 13 Dec 2002 22:37:43 GMT"/> - </widget> - </child> - </widget> - </child> - </widget> - </child> - </widget> - </child> - </widget> - <packing> - <property name="placement">BONOBO_DOCK_TOP</property> - <property name="band">0</property> - <property name="position">0</property> - <property name="offset">0</property> - <property name="behavior">BONOBO_DOCK_ITEM_BEH_EXCLUSIVE|BONOBO_DOCK_ITEM_BEH_NEVER_VERTICAL|BONOBO_DOCK_ITEM_BEH_LOCKED</property> - </packing> - </child> - - <child> - <widget class="BonoboDockItem" id="bonobodockitem2"> - <property name="visible">True</property> - <property name="shadow_type">GTK_SHADOW_OUT</property> - - <child> - <widget class="GtkToolbar" id="toolbar1"> - <property name="visible">True</property> - <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property> - <property name="toolbar_style">GTK_TOOLBAR_BOTH</property> - <property name="tooltips">True</property> - </widget> - </child> - </widget> - <packing> - <property name="placement">BONOBO_DOCK_TOP</property> - <property name="band">1</property> - <property name="position">0</property> - <property name="offset">0</property> - <property name="behavior">BONOBO_DOCK_ITEM_BEH_EXCLUSIVE</property> - </packing> - </child> - - <child> - <widget class="GtkHPaned" id="hpaned1"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="position">150</property> - - <child> - <widget class="GtkScrolledWindow" id="scrolledwindow1"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="shadow_type">GTK_SHADOW_NONE</property> - <property name="window_placement">GTK_CORNER_TOP_LEFT</property> - - <child> - <widget class="GtkTreeView" id="treeview"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="headers_visible">True</property> - <property name="rules_hint">False</property> - <property name="reorderable">False</property> - <property name="enable_search">True</property> - </widget> - </child> - </widget> - <packing> - <property name="shrink">True</property> - <property name="resize">False</property> - </packing> - </child> - - <child> - <widget class="GtkNotebook" id="notebook4"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="show_tabs">True</property> - <property name="show_border">True</property> - <property name="tab_pos">GTK_POS_TOP</property> - <property name="scrollable">False</property> - <property name="tab_hborder">2</property> - <property name="tab_vborder">2</property> - <property name="enable_popup">False</property> - - <child> - <widget class="GtkScrolledWindow" id="scrolledwindow14"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="shadow_type">GTK_SHADOW_NONE</property> - <property name="window_placement">GTK_CORNER_TOP_LEFT</property> - - <child> - <widget class="GtkViewport" id="viewport1"> - <property name="visible">True</property> - <property name="shadow_type">GTK_SHADOW_IN</property> - - <child> - <widget class="GtkTable" id="table2"> - <property name="visible">True</property> - <property name="n_rows">12</property> - <property name="n_columns">2</property> - <property name="homogeneous">False</property> - <property name="row_spacing">0</property> - <property name="column_spacing">0</property> - - <child> - <widget class="GtkLabel" id="label16"> - <property name="visible">True</property> - <property name="label" translatable="yes">Icon</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">0</property> - <property name="bottom_attach">1</property> - <property name="x_options">fill</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label17"> - <property name="visible">True</property> - <property name="label" translatable="yes">Name</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">1</property> - <property name="bottom_attach">2</property> - <property name="x_options">fill</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label18"> - <property name="visible">True</property> - <property name="label" translatable="yes">Description</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">3</property> - <property name="bottom_attach">4</property> - <property name="x_options">fill</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label19"> - <property name="visible">True</property> - <property name="label" translatable="yes">Type</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">4</property> - <property name="bottom_attach">5</property> - <property name="x_options">fill</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label20"> - <property name="visible">True</property> - <property name="label" translatable="yes">Difficulty</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">5</property> - <property name="bottom_attach">6</property> - <property name="x_options">fill</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label21"> - <property name="visible">True</property> - <property name="label" translatable="yes">Author</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">6</property> - <property name="bottom_attach">7</property> - <property name="x_options">fill</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label22"> - <property name="visible">True</property> - <property name="label" translatable="yes">Directory</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">7</property> - <property name="bottom_attach">8</property> - <property name="x_options">fill</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label23"> - <property name="visible">True</property> - <property name="label" translatable="yes">Prerequisite</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">8</property> - <property name="bottom_attach">9</property> - <property name="x_options">fill</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label24"> - <property name="visible">True</property> - <property name="label" translatable="yes">Goal</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">9</property> - <property name="bottom_attach">10</property> - <property name="x_options">fill</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label25"> - <property name="visible">True</property> - <property name="label" translatable="yes">Manual</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">10</property> - <property name="bottom_attach">11</property> - <property name="x_options">fill</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label26"> - <property name="visible">True</property> - <property name="label" translatable="yes">Credit</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">11</property> - <property name="bottom_attach">12</property> - <property name="x_options">fill</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GnomeIconEntry" id="iconentry"> - <property name="visible">True</property> - <property name="browse_dialog_title" translatable="yes"></property> - <property name="max_saved">10</property> - </widget> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">0</property> - <property name="bottom_attach">1</property> - <property name="y_options">fill</property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label27"> - <property name="visible">True</property> - <property name="label" translatable="yes">Title</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">2</property> - <property name="bottom_attach">3</property> - <property name="x_options">fill</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkCombo" id="combo1"> - <property name="visible">True</property> - <property name="value_in_list">False</property> - <property name="allow_empty">True</property> - <property name="case_sensitive">False</property> - <property name="enable_arrow_keys">True</property> - <property name="enable_arrows_always">False</property> - - <child internal-child="entry"> - <widget class="GtkEntry" id="entry_type"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="editable">False</property> - <property name="visibility">True</property> - <property name="max_length">0</property> - <property name="text" translatable="yes"></property> - <property name="has_frame">True</property> - <property name="invisible_char" translatable="yes">*</property> - <property name="activates_default">False</property> - </widget> - </child> - - <child internal-child="list"> - <widget class="GtkList" id="list1"> - <property name="visible">True</property> - <property name="selection_mode">GTK_SELECTION_BROWSE</property> - </widget> - </child> - </widget> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">4</property> - <property name="bottom_attach">5</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkEntry" id="entry_name"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="editable">False</property> - <property name="visibility">True</property> - <property name="max_length">0</property> - <property name="text" translatable="yes"></property> - <property name="has_frame">True</property> - <property name="invisible_char" translatable="yes">*</property> - <property name="activates_default">False</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="y_padding">2</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkEntry" id="entry_title"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="editable">False</property> - <property name="visibility">True</property> - <property name="max_length">0</property> - <property name="text" translatable="yes"></property> - <property name="has_frame">True</property> - <property name="invisible_char" translatable="yes">*</property> - <property name="activates_default">False</property> - </widget> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">2</property> - <property name="bottom_attach">3</property> - <property name="y_padding">1</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkScrolledWindow" id="scrolledwindow15"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="shadow_type">GTK_SHADOW_NONE</property> - <property name="window_placement">GTK_CORNER_TOP_LEFT</property> - - <child> - <widget class="GtkTextView" id="textview_description"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="editable">False</property> - <property name="justification">GTK_JUSTIFY_LEFT</property> - <property name="wrap_mode">GTK_WRAP_NONE</property> - <property name="cursor_visible">True</property> - <property name="pixels_above_lines">0</property> - <property name="pixels_below_lines">0</property> - <property name="pixels_inside_wrap">0</property> - <property name="left_margin">0</property> - <property name="right_margin">0</property> - <property name="indent">0</property> - <property name="text" translatable="yes"></property> - </widget> - </child> - </widget> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">3</property> - <property name="bottom_attach">4</property> - <property name="y_padding">1</property> - <property name="x_options">fill</property> - <property name="y_options">fill</property> - </packing> - </child> - - <child> - <widget class="GtkSpinButton" id="spinbutton_difficulty"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="climb_rate">1</property> - <property name="digits">0</property> - <property name="numeric">True</property> - <property name="update_policy">GTK_UPDATE_ALWAYS</property> - <property name="snap_to_ticks">False</property> - <property name="wrap">False</property> - <property name="adjustment">1 1 3 1 1 1</property> - </widget> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">5</property> - <property name="bottom_attach">6</property> - <property name="y_padding">2</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkEntry" id="entry_author"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="editable">False</property> - <property name="visibility">True</property> - <property name="max_length">0</property> - <property name="text" translatable="yes"></property> - <property name="has_frame">True</property> - <property name="invisible_char" translatable="yes">*</property> - <property name="activates_default">False</property> - </widget> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">6</property> - <property name="bottom_attach">7</property> - <property name="y_padding">2</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkEntry" id="entry_directory"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="editable">False</property> - <property name="visibility">True</property> - <property name="max_length">0</property> - <property name="text" translatable="yes"></property> - <property name="has_frame">True</property> - <property name="invisible_char" translatable="yes">*</property> - <property name="activates_default">False</property> - </widget> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">7</property> - <property name="bottom_attach">8</property> - <property name="y_padding">2</property> - <property name="y_options"></property> - </packing> - </child> - - <child> - <widget class="GtkScrolledWindow" id="scrolledwindow16"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="shadow_type">GTK_SHADOW_NONE</property> - <property name="window_placement">GTK_CORNER_TOP_LEFT</property> - - <child> - <widget class="GtkTextView" id="textview_prerequisite"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="editable">False</property> - <property name="justification">GTK_JUSTIFY_LEFT</property> - <property name="wrap_mode">GTK_WRAP_NONE</property> - <property name="cursor_visible">True</property> - <property name="pixels_above_lines">0</property> - <property name="pixels_below_lines">0</property> - <property name="pixels_inside_wrap">0</property> - <property name="left_margin">0</property> - <property name="right_margin">0</property> - <property name="indent">0</property> - <property name="text" translatable="yes"></property> - </widget> - </child> - </widget> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">8</property> - <property name="bottom_attach">9</property> - <property name="y_padding">2</property> - <property name="x_options">fill</property> - <property name="y_options">fill</property> - </packing> - </child> - - <child> - <widget class="GtkScrolledWindow" id="scrolledwindow17"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="shadow_type">GTK_SHADOW_NONE</property> - <property name="window_placement">GTK_CORNER_TOP_LEFT</property> - - <child> - <widget class="GtkTextView" id="textview_goal"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="editable">False</property> - <property name="justification">GTK_JUSTIFY_LEFT</property> - <property name="wrap_mode">GTK_WRAP_NONE</property> - <property name="cursor_visible">True</property> - <property name="pixels_above_lines">0</property> - <property name="pixels_below_lines">0</property> - <property name="pixels_inside_wrap">0</property> - <property name="left_margin">0</property> - <property name="right_margin">0</property> - <property name="indent">0</property> - <property name="text" translatable="yes"></property> - </widget> - </child> - </widget> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">9</property> - <property name="bottom_attach">10</property> - <property name="y_padding">2</property> - <property name="x_options">fill</property> - <property name="y_options">fill</property> - </packing> - </child> - - <child> - <widget class="GtkScrolledWindow" id="scrolledwindow18"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="shadow_type">GTK_SHADOW_NONE</property> - <property name="window_placement">GTK_CORNER_TOP_LEFT</property> - - <child> - <widget class="GtkTextView" id="textview_manual"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="editable">False</property> - <property name="justification">GTK_JUSTIFY_LEFT</property> - <property name="wrap_mode">GTK_WRAP_NONE</property> - <property name="cursor_visible">True</property> - <property name="pixels_above_lines">0</property> - <property name="pixels_below_lines">0</property> - <property name="pixels_inside_wrap">0</property> - <property name="left_margin">0</property> - <property name="right_margin">0</property> - <property name="indent">0</property> - <property name="text" translatable="yes"></property> - </widget> - </child> - </widget> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">10</property> - <property name="bottom_attach">11</property> - <property name="y_padding">2</property> - <property name="x_options">fill</property> - <property name="y_options">fill</property> - </packing> - </child> - - <child> - <widget class="GtkScrolledWindow" id="scrolledwindow19"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property> - <property name="shadow_type">GTK_SHADOW_NONE</property> - <property name="window_placement">GTK_CORNER_TOP_LEFT</property> - - <child> - <widget class="GtkTextView" id="textview_credit"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="editable">False</property> - <property name="justification">GTK_JUSTIFY_LEFT</property> - <property name="wrap_mode">GTK_WRAP_NONE</property> - <property name="cursor_visible">True</property> - <property name="pixels_above_lines">0</property> - <property name="pixels_below_lines">0</property> - <property name="pixels_inside_wrap">0</property> - <property name="left_margin">0</property> - <property name="right_margin">0</property> - <property name="indent">0</property> - <property name="text" translatable="yes"></property> - </widget> - </child> - </widget> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">11</property> - <property name="bottom_attach">12</property> - <property name="y_padding">2</property> - <property name="x_options">fill</property> - <property name="y_options">fill</property> - </packing> - </child> - </widget> - </child> - </widget> - </child> - </widget> - <packing> - <property name="tab_expand">False</property> - <property name="tab_fill">True</property> - </packing> - </child> - - <child> - <widget class="GtkLabel" id="label15"> - <property name="visible">True</property> - <property name="label" translatable="yes">Description</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0.5</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - </widget> - <packing> - <property name="type">tab</property> - </packing> - </child> - </widget> - <packing> - <property name="shrink">True</property> - <property name="resize">True</property> - </packing> - </child> - </widget> - </child> - </widget> - <packing> - <property name="padding">0</property> - <property name="expand">True</property> - <property name="fill">True</property> - </packing> - </child> -</widget> - -<widget class="GnomeAbout" id="about1"> - <property name="visible">True</property> - <property name="destroy_with_parent">False</property> - <property name="copyright" translatable="yes">Released under GPL</property> - <property name="comments" translatable="yes"></property> - <property name="authors">Bruno Coudoin</property> - <property name="translator_credits" translatable="yes">translator_credits</property> -</widget> - -</glade-interface> diff --git a/src/gcompris/gcompris-edit.gladep b/src/gcompris/gcompris-edit.gladep deleted file mode 100644 index 274ca8b..0000000 --- a/src/gcompris/gcompris-edit.gladep +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> -<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd"> - -<glade-project> - <name>Gcompris Editor</name> - <program_name>gcompris-edit</program_name> - <source_directory>.</source_directory> - <pixmaps_directory>.</pixmaps_directory> - <use_widget_names>TRUE</use_widget_names> - <output_build_files>FALSE</output_build_files> - <gnome_help_support>TRUE</gnome_help_support> -</glade-project> |