Skip to content

Commit

Permalink
remove gmc-cover-flow-layout and mx dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Corvalan committed Feb 7, 2010
1 parent 04359a8 commit d3c3716
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
2 changes: 0 additions & 2 deletions configure.ac
Expand Up @@ -11,7 +11,6 @@ AC_SUBST(GMC_REVISION)

GLIB_REQUIRED=2.22.0
CLUTTER_REQUIRED=1.1.0
MX_REQUIRED=0.5.3

AC_CONFIG_MACRO_DIR(m4)
AC_CONFIG_HEADERS([config.h])
Expand All @@ -24,7 +23,6 @@ PKG_CHECK_MODULES(GMC,
[
clutter-1.0 >= $CLUTTER_REQUIRED
glib-2.0 >= $GLIB_REQUIRED
mx-1.0 >= $MX_REQUIRED
sqlite3
])

Expand Down
1 change: 0 additions & 1 deletion src/Makefile.am
Expand Up @@ -10,5 +10,4 @@ LDADD = \
main_SOURCES = \
main.c \
gmc-button.c \
gmc-cover-flow-layout.c \
gmc-video-model.c
26 changes: 1 addition & 25 deletions src/main.c
@@ -1,6 +1,5 @@
#include <clutter/clutter.h>
#include "gmc-button.h"
#include "gmc-cover-flow-layout.h"
#include "gmc-video-model.h"

void
Expand All @@ -23,7 +22,7 @@ main (int argc, char **argv)

script = clutter_script_new ();
// id = clutter_script_load_from_file (script, PACKAGE_DATADIR "/main.ui", &error);
id = clutter_script_load_from_file (script, "data/main.ui", &error);
id = clutter_script_load_from_file (script, "src/main.ui", &error);
if (!id) {
g_critical ("clutter_script_load_from_file : %d - %s", error->code, error->message);
g_object_unref (script);
Expand All @@ -38,29 +37,6 @@ main (int argc, char **argv)
background = CLUTTER_ACTOR (clutter_script_get_object (script, "background"));
clutter_actor_set_size (background, CLUTTER_STAGE_WIDTH (), CLUTTER_STAGE_HEIGHT ());

cover_flow = gmc_cover_flow_layout_new ();
//cover_flow = clutter_flow_layout_new (CLUTTER_FLOW_HORIZONTAL);

color = clutter_color_new (0x00, 0x00, 0x00, 0xff);
box = clutter_box_new (cover_flow);
clutter_box_set_color (CLUTTER_BOX (box), color);

color = clutter_color_new (0xff, 0x00, 0x00, 0xff);

rectangle = clutter_rectangle_new_with_color (color);
//clutter_actor_set_rotation (rectangle, CLUTTER_Y_AXIS, 30, 0, 0, 0);

clutter_container_add_actor (CLUTTER_CONTAINER (box), rectangle);

color = clutter_color_new (0x00, 0xff, 0x00, 0xff);

rectangle = clutter_rectangle_new_with_color (color);
//clutter_actor_set_rotation (rectangle, CLUTTER_Y_AXIS, 30, 0, 0, 0);

clutter_container_add_actor (CLUTTER_CONTAINER (box), rectangle);

clutter_container_add_actor (CLUTTER_CONTAINER (stage), box);

clutter_actor_show_all (stage);

clutter_main ();
Expand Down

0 comments on commit d3c3716

Please sign in to comment.