$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
checking for GTHREAD... yes
checking for GCONF... yes
checking for GNOME_VFS... yes
checking for GTKIMAGEVIEW... yes
checking for IMAGEWAND... yes
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for floor... yes
checking for memset... yes
checking for modf... yes
checking for pow... yes
checking for sqrt... yes
checking for strchr... yes
checking for strtol... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking for libintl.h... (cached) yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed... nb_NO
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
$ make
Making all in src
make[1]: Entering directory `/home/TO/src/gscreendump-read-only/src'
make all-am
make[2]: Entering directory `/home/TO/src/gscreendump-read-only/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/include/gnome-vfs-module-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -Wall -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
In file included from main.c:44:
sd_canvas.h:170: error: expected ‘)’ before ‘*’ token
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/TO/src/gscreendump-read-only/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/TO/src/gscreendump-read-only/src'
make: *** [all-recursive] Error 1
$ nl -ba ./src/sd_canvas.h |grep -C3 170
167
168 void canvas_rotate_image(gchar *filename, double angle);
169 void canvas_flip_image(gchar *filename, gchar direction/*'h' or 'v'*/);
170 void canvas_run_image_application(GAppInfo *app, gchar *filename);
171
172 GString *canvas_get_selection_as_text(gchar delim_ch, gchar quote_ch, gboolean convert_to_uri);
173 gchar **canvas_get_selection_as_uri_list();
Index: src/sd_canvas.c
===================================================================
--- src/sd_canvas.c (revision 98)
+++ src/sd_canvas.c (working copy)
@@ -2195,8 +2195,15 @@
gchar *tip = g_strdup_printf (_("Use \"%s\" to open the selected image"), g_app_info_get_name(app));
/* Application icon */
+ /*
GIcon *icon = g_app_info_get_icon(app);
GtkWidget *icon_widget = gtk_image_new_from_gicon(icon, GTK_ICON_SIZE_MENU);
+ */
+ /*start, by TO*/
+ GIcon *icon = g_app_info_get_icon(app);
+ const char * byTO_icon_name =g_app_info_get_name(app);
+ GtkWidget *icon_widget = gtk_image_new_from_icon_name(byTO_icon_name, GTK_ICON_SIZE_MENU);
+ /*end, by TO*/
menu_item = gtk_image_menu_item_new_with_label(label);
gtk_widget_show(menu_item);
Index: src/sd_interface.c
===================================================================
--- src/sd_interface.c (revision 98)
+++ src/sd_interface.c (working copy)
@@ -467,9 +467,17 @@
gchar *tip = g_strdup_printf (_("Use \"%s\" to open the selected image"), g_app_info_get_name(app));
/* Application icon */
+ /*
GIcon *icon = g_app_info_get_icon(app);
GtkWidget *icon_widget = gtk_image_new_from_gicon(icon, GTK_ICON_SIZE_MENU);
+ */
+ /*start, by TO*/
+ GIcon *icon = g_app_info_get_icon(app);
+ const char * byTO_icon_name =g_app_info_get_name(app);
+ GtkWidget *icon_widget = gtk_image_new_from_icon_name(byTO_icon_name, GTK_ICON_SIZE_MENU);
+ /*end, by TO*/
+
menu_item = gtk_image_menu_item_new_with_label(label);
gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menu_item), icon_widget);
Index: src/sd_capture.h
===================================================================
--- src/sd_capture.h (revision 98)
+++ src/sd_capture.h (working copy)
@@ -20,7 +20,7 @@
#ifndef SD_CAPTURE_H
#define SD_CAPTURE_H
-
+#include <gio/gio.h>
#include <stdio.h>
#include <stdlib.h>
Index: src/sd_file.c
===================================================================
--- src/sd_file.c (revision 98)
+++ src/sd_file.c (working copy)
@@ -21,6 +21,7 @@
#include <gio/gio.h>
+#include <signal.h>
#include "sd_support.h"
#include "sd_interface.h"
#include "sd_thumb_view.h"
Index: src/sd_drag_drop.c
===================================================================
--- src/sd_drag_drop.c (revision 98)
+++ src/sd_drag_drop.c (working copy)
@@ -264,6 +264,10 @@
GdkAtom atom_text_html = gdk_atom_intern("text/html", FALSE);
GdkAtom atom_text_http = gdk_atom_intern("text/http", FALSE);
+ /* by TO */
+ GdkAtom atom_uri_list = gdk_atom_intern ("text/uri-list", FALSE);
+
+
#if 0
/* Debug formats */
gtk_clipboard_request_targets(cb, clipboard_target_func, NULL);
@@ -273,10 +277,19 @@
{
gtk_clipboard_request_image(cb, clipboard_paste_image_callback, NULL);
}
+ /*
else if (gtk_clipboard_wait_is_uris_available(cb))
{
gtk_clipboard_request_uris(cb, clipboard_paste_uris_callback, NULL);
}
+ */
+ /*start, by TO*/
+ else if (gtk_clipboard_wait_is_target_available(cb, atom_uri_list) )
+ {
+ gtk_clipboard_wait_for_contents(cb, clipboard_paste_uris_callback);
+ }
+ /*end, by TO*/
+
else if (gtk_clipboard_wait_is_target_available(cb, atom_text_html) ||
gtk_clipboard_wait_is_target_available(cb, atom_text_http))
{
@@ -534,9 +547,18 @@
{
GtkClipboard *cb = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD/*GDK_SELECTION_PRIMARY*/);
+ /* by TO */
+ GdkAtom atom_uri_list = gdk_atom_intern ("text/uri-list", FALSE);
+ /*
return (gtk_clipboard_wait_is_text_available(cb) ||
gtk_clipboard_wait_is_image_available(cb) ||
gtk_clipboard_wait_is_uris_available(cb));
+ */
+ /*start, by TO*/
+ return (gtk_clipboard_wait_is_text_available(cb) ||
+ gtk_clipboard_wait_is_image_available(cb) ||
+ gtk_clipboard_wait_is_target_available(cb, atom_uri_list) );
+ /*end, by TO*/
}
Index: src/sd_progress_dialog.c
===================================================================
--- src/sd_progress_dialog.c (revision 98)
+++ src/sd_progress_dialog.c (working copy)
@@ -847,8 +847,17 @@
g_object_set_data(G_OBJECT(g_progress.dialog), "message-area", (gpointer)textview1);
+ /*by TO*/
+ /*
GtkWidget *action_area = gtk_dialog_get_action_area(GTK_DIALOG(g_progress.dialog));
gtk_widget_hide(action_area);
+ */
+ /*start, by TO*/
+ /*
+ GtkWidget *action_area = gtk_dialog_get_action_area(GTK_DIALOG(g_progress.dialog));
+ gtk_widget_hide(action_area);
+ */
+ /*end, by TO*/
/* Add an idle function */
g_progress.idle_func = g_idle_add(progress_dialog_idle_function, NULL);
@@ -882,7 +891,11 @@
{
gtk_widget_set_sensitive(button, FALSE);
gtk_window_resize(GTK_WINDOW(g_progress.dialog), PROGRESS_DIALOG_WIDTH*1.3, PROGRESS_DIALOG_HEIGHT*2);
+ /*by TO*/
+ /*
gtk_widget_show(action_area);
+ */
+
gdk_flush();
gtk_dialog_run(GTK_DIALOG(g_progress.dialog));
}
Index: src/sd_progress_dialog.c
===================================================================
--- src/sd_progress_dialog.c (revision 98)
+++ src/sd_progress_dialog.c (working copy)
@@ -847,8 +847,17 @@
g_object_set_data(G_OBJECT(g_progress.dialog), "message-area", (gpointer)textview1);
+ /*by TO*/
+ /*
GtkWidget *action_area = gtk_dialog_get_action_area(GTK_DIALOG(g_progress.dialog));
gtk_widget_hide(action_area);
+ */
+ /*start, by TO*/
+
+ GtkWidget *action_area = GTK_DIALOG(g_progress.dialog)->action_area;
+ gtk_widget_hide(action_area);
+
+ /*end, by TO*/
/* Add an idle function */
g_progress.idle_func = g_idle_add(progress_dialog_idle_function, NULL);
@@ -882,7 +891,11 @@
{
gtk_widget_set_sensitive(button, FALSE);
gtk_window_resize(GTK_WINDOW(g_progress.dialog), PROGRESS_DIALOG_WIDTH*1.3, PROGRESS_DIALOG_HEIGHT*2);
+ /*by TO*/
+
gtk_widget_show(action_area);
+
+
gdk_flush();
gtk_dialog_run(GTK_DIALOG(g_progress.dialog));
}
1.1 $ cd ./src
1.2 $ svn checkout http://gscreendump.googlecode.com/svn/trunk/ gscreendump-read-only
1.3 $ cd ./src/gscreendump-read-only
2.1 $ ./configure
2.2 $ make
3.1 $ sed -i.bak -e 's%7%6%' ./debian/compat
3.2 $ debuild -d -us -uc
$ ls -1 ../gscreendump_*
../gscreendump_0.2.dsc
../gscreendump_0.2_i386.build
../gscreendump_0.2_i386.changes
../gscreendump_0.2_i386.deb
../gscreendump_0.2.tar.gz
Returner til Utvikling i Linux
Registrerte brukere: Google [Bot]