~ubuntu-branches/ubuntu/oneiric/gnome-games/oneiric

« back to all changes in this revision

Viewing changes to .pc/01_lpi.patch/gnect/src/main.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2011-07-21 04:22:50 UTC
  • mfrom: (1.1.93)
  • Revision ID: package-import@ubuntu.com-20110721042250-far722bxogjk1rhi
Tags: 1:3.1.3-0ubuntu1
* New upstream release
  - Aisleriot was split out of gnome-games into its own module.
  - Gnotravex was ported to GSettings.
  - Sudoku was ported to PyGObject/GTK3 by John Stowers.
* debian/aisleriot*: Dropped
* debian/control
  - Drop aisleriot package
  - Recommend aisleriot
  - Disable lightsoff & swell-foop as they're not ready yet
  - Re-enable gnome-sudoku
  - Use python-gobject instead of python-gtk2
  - Don't use python-launchpad-integration as it doesn't work with pygi yet
  - Switch to dh_python2 (LP: #788514)
  - Drop old pre-Lucid conflicts with gnome-cards-data & gnome-games-data
  - Drop obsolete build-depends: check, dpkg-dev, guile-1.8, lsb-release,
    rarian-compat, & scrollkeeper
  - Use ${gir:Depends}
* debian/copyright: Drop aisleriot & blackjack entries
* debian/glchess.install: Drop gnome-gnuchess
* debian/gnome-games-common.install: Drop aisleriot entries
* debian/gnome-sudoku.install: Install gconf schema
* debian/gnotravex.install: Install GSettings schema
* debian/rules
  - Clean up configure flags
  - Switch to dh_python2
* debian/watch: Watch for .bz2
* debian/patches/01_lpi.patch: Refreshed
* debian/patches/02_desktop-path.patch: Removed aisleriot references
* debian/patches/03_add-appinstall-keywords.patch
  - Add keywords to make searching for the games easier in Software Center

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#include <libgames-support/games-conf.h>
32
32
#include <libgames-support/games-gridframe.h>
33
 
#include <libgames-support/games-gtk-compat.h>
34
33
#include <libgames-support/games-help.h>
35
34
#include <libgames-support/games-runtime.h>
36
35
#include <libgames-support/games-sound.h>
761
760
static void
762
761
on_game_scores (GtkMenuItem * m, gpointer data)
763
762
{
764
 
  GtkWidget *table, *vbox, *icon;
 
763
  GtkWidget *table, *grid, *icon;
765
764
 
766
765
  if (scorebox != NULL) {
767
766
    gtk_window_present (GTK_WINDOW (scorebox));
781
780
  g_signal_connect (scorebox, "destroy",
782
781
                    G_CALLBACK (gtk_widget_destroyed), &scorebox);
783
782
 
784
 
  vbox = gtk_vbox_new (FALSE, 6);
785
 
  gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
 
783
  grid = gtk_grid_new ();
 
784
  gtk_grid_set_row_spacing (GTK_GRID (grid), 6);
 
785
  gtk_orientable_set_orientation (GTK_ORIENTABLE (grid), GTK_ORIENTATION_VERTICAL);
 
786
  gtk_container_set_border_width (GTK_CONTAINER (grid), 5);
 
787
 
786
788
  gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (scorebox))),
787
 
                      vbox, TRUE, TRUE, 0);
 
789
                      grid, TRUE, TRUE, 0);
788
790
 
789
791
  icon = gtk_image_new_from_icon_name ("gnome-gnect", 48);
790
 
  gtk_box_pack_start (GTK_BOX (vbox), icon, FALSE, FALSE, 0);
 
792
  gtk_container_add (GTK_CONTAINER (grid), icon);
791
793
 
792
794
  table = gtk_table_new (3, 2, FALSE);
793
 
  gtk_box_pack_start (GTK_BOX (vbox), table, TRUE, TRUE, 0);
 
795
  gtk_container_add (GTK_CONTAINER (grid), table);
794
796
  gtk_table_set_col_spacings (GTK_TABLE (table), 12);
795
797
  gtk_table_set_col_spacings (GTK_TABLE (table), 6);
796
798
 
1337
1339
{
1338
1340
  GtkWidget *menubar;
1339
1341
  GtkWidget *gridframe;
1340
 
  GtkWidget *vbox;
 
1342
  GtkWidget *grid;
1341
1343
  GtkWidget *vpaned;
1342
1344
  GtkUIManager *ui_manager;
1343
1345
 
1364
1366
  menubar = gtk_ui_manager_get_widget (ui_manager, "/MainMenu");
1365
1367
 
1366
1368
  vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
1367
 
 
1368
 
  vbox = gtk_vbox_new (FALSE, 0);
 
1369
  gtk_widget_set_hexpand (vpaned, TRUE);
 
1370
  gtk_widget_set_vexpand (vpaned, TRUE);
 
1371
 
 
1372
  grid = gtk_grid_new ();
 
1373
  gtk_orientable_set_orientation (GTK_ORIENTABLE (grid), GTK_ORIENTATION_VERTICAL);
 
1374
 
1369
1375
  gridframe = games_grid_frame_new (7, 7);
1370
1376
 
1371
 
 
1372
1377
  gtk_paned_pack1 (GTK_PANED (vpaned), gridframe, TRUE, FALSE);
1373
 
  gtk_box_pack_start (GTK_BOX (vbox), menubar, FALSE, FALSE, 0);
1374
1378
#ifdef GGZ_CLIENT
1375
1379
  chat = create_chat_widget ();
1376
1380
  gtk_paned_pack2 (GTK_PANED (vpaned), chat, FALSE, TRUE);
1377
1381
#endif
1378
 
  gtk_box_pack_start (GTK_BOX (vbox), vpaned, TRUE, TRUE, 0);
1379
 
  gtk_box_pack_start (GTK_BOX (vbox), statusbar, FALSE, FALSE, 0);
 
1382
  gtk_container_add (GTK_CONTAINER (grid), menubar);
 
1383
  gtk_container_add (GTK_CONTAINER (grid), vpaned);
 
1384
  gtk_container_add (GTK_CONTAINER (grid), statusbar);
1380
1385
 
1381
1386
  gtk_container_add (GTK_CONTAINER (app), notebook);
1382
 
  gtk_notebook_append_page (GTK_NOTEBOOK (notebook), vbox, NULL);
 
1387
  gtk_notebook_append_page (GTK_NOTEBOOK (notebook), grid, NULL);
1383
1388
  gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook), MAIN_PAGE);
1384
1389
 
1385
1390
  drawarea = gtk_drawing_area_new ();