summaryrefslogtreecommitdiff
path: root/recipes/nonworking/greader
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/nonworking/greader
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/nonworking/greader')
-rw-r--r--recipes/nonworking/greader/greader/greader.patch96
-rw-r--r--recipes/nonworking/greader/greader_0.61.bb10
2 files changed, 106 insertions, 0 deletions
diff --git a/recipes/nonworking/greader/greader/greader.patch b/recipes/nonworking/greader/greader/greader.patch
new file mode 100644
index 0000000000..445515b1e0
--- /dev/null
+++ b/recipes/nonworking/greader/greader/greader.patch
@@ -0,0 +1,96 @@
+diff -Naur greader/src/Makefile.am greader_new/src/Makefile.am
+--- greader/src/Makefile.am 2003-05-03 21:34:43.000000000 +0200
++++ greader_new/src/Makefile.am 2004-09-12 15:21:35.000000000 +0200
+@@ -13,5 +13,5 @@
+ interface.c interface.h \
+ callbacks.c callbacks.h
+
+-greader_LDADD = @PACKAGE_LIBS@ $(INTLLIBS)
++greader_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) -lz
+
+diff -Naur greader/src/Makefile.in greader_new/src/Makefile.in
+--- greader/src/Makefile.in 2003-05-09 07:26:49.000000000 +0200
++++ greader_new/src/Makefile.in 2004-09-12 15:21:41.000000000 +0200
+@@ -88,7 +88,7 @@
+ greader_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h
+
+
+-greader_LDADD = @PACKAGE_LIBS@ $(INTLLIBS)
++greader_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) -lz
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = ../config.h
+ CONFIG_CLEAN_FILES =
+diff -Naur greader/src/callbacks.c greader_new/src/callbacks.c
+--- greader/src/callbacks.c 2003-06-01 21:19:38.000000000 +0200
++++ greader_new/src/callbacks.c 2004-09-12 15:43:25.000000000 +0200
+@@ -19,8 +19,33 @@
+
+ #define BUFFER_SIZE 8192
+
++void
++button_press ( GtkWidget *widget,
++ GdkEventButton *event,
++ gpointer d)
++{
++ GtkWidget *toolbar = lookup_widget(widget,"toolbar2");
++ GtkWidget *statusbar = lookup_widget(widget,"statusbar1");
++ GtkWidget *window = lookup_widget(widget,"main_window");
++
++ if(event->button == 1){
++ if(GTK_WIDGET_VISIBLE(toolbar) && GTK_WIDGET_VISIBLE(statusbar)){
++ gtk_widget_hide(toolbar);
++ gtk_widget_hide(statusbar);
++ gtk_window_set_decorated(window,0);
++ gtk_window_fullscreen(window);
++ }else{
++ gtk_widget_show(toolbar);
++ gtk_widget_show(statusbar);
++ gtk_window_set_decorated(window,1);
++ gtk_window_unfullscreen(window);
++ }
++ }
++ return TRUE;
++}
++
+ void main_keypress(GtkWidget *wid, GdkEventKey *kp) {
+- //printf("kp is %d\n",kp->keyval);
++// printf("kp is %d\n",kp->keyval);
+ switch (kp->keyval) {
+ case 65362: on_back_button_clicked(NULL,NULL);break; //up
+ case 65364: on_forward_button_clicked(NULL,NULL);break; // down
+diff -Naur greader/src/callbacks.h greader_new/src/callbacks.h
+--- greader/src/callbacks.h 2003-05-11 04:08:29.000000000 +0200
++++ greader_new/src/callbacks.h 2004-09-12 12:20:15.000000000 +0200
+@@ -133,3 +133,9 @@
+ void
+ on_apply_bm_button_clicked (GtkButton *button,
+ gpointer user_data);
++
++void
++button_press ( GtkWidget *widget,
++ GdkEventButton *event,
++ gpointer d);
++
+diff -Naur greader/src/interface.c greader_new/src/interface.c
+--- greader/src/interface.c 2003-05-19 03:24:30.000000000 +0200
++++ greader_new/src/interface.c 2004-09-12 12:50:33.000000000 +0200
+@@ -187,6 +187,8 @@
+ g_signal_connect ((gpointer) forward_button, "clicked",
+ G_CALLBACK (on_forward_button_clicked),
+ NULL);
++ g_signal_connect(G_OBJECT(textview), "button-press-event",
++ G_CALLBACK (button_press),NULL);
+
+ /* Store pointers to all widgets, for use by lookup_widget(). */
+ GLADE_HOOKUP_OBJECT_NO_REF (main_window, main_window, "main_window");
+diff -Naur greader/src/main.c greader_new/src/main.c
+--- greader/src/main.c 2003-05-11 04:08:29.000000000 +0200
++++ greader_new/src/main.c 2004-09-12 12:23:52.000000000 +0200
+@@ -37,6 +37,7 @@
+ pr.mainwin=main_window = create_main_window ();
+ gtk_signal_connect(GTK_OBJECT(main_window),"key_press_event",GTK_SIGNAL_FUNC(main_keypress),NULL);
+
++
+ prefload();
+ gtk_widget_show (main_window);
+
diff --git a/recipes/nonworking/greader/greader_0.61.bb b/recipes/nonworking/greader/greader_0.61.bb
new file mode 100644
index 0000000000..2df07f5361
--- /dev/null
+++ b/recipes/nonworking/greader/greader_0.61.bb
@@ -0,0 +1,10 @@
+inherit autotools gpe
+
+DESCRIPTION = "GReader"
+DEPENDS = "libgpewidget zlib"
+SECTION = "gpe/applications"
+#RDEPENDS = "gpe-icons"
+
+SRC_URI = "http://handhelds.org/~gberenfield/${PN}_${PV}_src.tgz \
+ file://greader.patch;patch=1;pnum=1"
+S = "${WORKDIR}/greader/"