eog-2.12.1-1
Michal Abramowicz
ab_1 w abram.eu.org
Czw, 13 Paź 2005, 10:38:36 CEST
On Wed, Oct 12, 2005 at 09:00:50PM +0200, Fryderyk Dziarmagowski wrote:
przed:
[abram w laptop ~]$ eog ch-53e_20050502-m-7846v-007.jpg
Instantiate job with id 1.
Starting thread with id 0.
eog-image_load.c
load success: 1
n_images: 1/1
1 /home/users/abram/ch-53e_20050502-m-7846v-007.jpg (800/533)
No profile, not correcting
setting window size: 873/631
Instantiate job with id 2.
Starting thread with id 1.
Show exif data
Job 001: disposing ...
Job 001: disposing end
Job 002: disposing ...
Job 002: disposing end
[abram w laptop ~]$
Po:
[abram w laptop ~]$ eog ch-53e_20050502-m-7846v-007.jpg
[abram w laptop ~]$
w załączniku diff do speca + patch.
patchem wyłączyułem _zbędne_ wyświetlanie wiadomości co mnie
satysfakcjonuje.
pozdrawiam.
abram.
--
Z punktu widzenia Rewolucji Światowej ludzie zasadniczo
dzielą się na dwie kategorie: na tych, którym trzeba
natychmiast poderżnąć gardło i na tych, którym narazie nie trzeba.
-------------- następna część ---------
diff -urN eog-2.12.1.orig/libeog/eog-image.c eog-2.12.1/libeog/eog-image.c
--- eog-2.12.1.orig/libeog/eog-image.c 2005-10-03 23:04:28.000000000 +0200
+++ eog-2.12.1/libeog/eog-image.c 2005-10-13 10:16:40.277365776 +0200
@@ -907,8 +907,9 @@
priv = EOG_IMAGE (img)->priv;
+ /* disable debug message
g_print ("eog-image_load.c\n");
-
+ */
if (data2read == 0) {
/* nothing to read */
return TRUE;
@@ -941,9 +942,9 @@
else {
success = eog_image_real_load (img, data2read, job, error);
}
-
+ /* disable debug message
g_print ("load success: %i\n", success);
-
+ */
/* perform required transformation */
if (eog_image_needs_transformation (img)) {
if (job != NULL) {
diff -urN eog-2.12.1.orig/libeog/eog-image-list.c eog-2.12.1/libeog/eog-image-list.c
--- eog-2.12.1.orig/libeog/eog-image-list.c 2005-07-10 21:48:35.000000000 +0200
+++ eog-2.12.1/libeog/eog-image-list.c 2005-10-13 10:17:54.268117472 +0200
@@ -700,16 +700,17 @@
g_return_if_fail (EOG_IS_IMAGE_LIST (list));
priv = list->priv;
-
+ /* disable debug message
g_print ("n_images: %i/%i\n", priv->n_images, g_list_length (priv->store));
+ */
for (it = priv->store; it != NULL; it = it->next) {
gint width, height;
EogImage *img = EOG_IMAGE (it->data);
char *uri_str = eog_image_get_uri_for_display (img);
eog_image_get_size (img, &width, &height);
-
+ /* disable debug message
g_print ("%3i %s (%i/%i)\n", i++, uri_str, width, height);
-
+ */
g_free (uri_str);
}
}
diff -urN eog-2.12.1.orig/libeog/eog-info-view.c eog-2.12.1/libeog/eog-info-view.c
--- eog-2.12.1.orig/libeog/eog-info-view.c 2005-07-15 13:34:07.000000000 +0200
+++ eog-2.12.1/libeog/eog-info-view.c 2005-10-13 10:18:51.881358928 +0200
@@ -111,7 +111,9 @@
ExifData *ed;
ed = eog_image_get_exif_information (image);
+ /* disable debug message
g_print ("Show exif data\n");
+ */
eog_info_view_exif_show_data (EOG_INFO_VIEW_EXIF (view->priv->exif_view), ed);
if (ed != NULL) {
gtk_widget_show_all (gtk_widget_get_parent (GTK_WIDGET (view->priv->exif_view)));
diff -urN eog-2.12.1.orig/libeog/eog-job.c eog-2.12.1/libeog/eog-job.c
--- eog-2.12.1.orig/libeog/eog-job.c 2005-06-24 01:15:16.000000000 +0200
+++ eog-2.12.1/libeog/eog-job.c 2005-10-13 10:20:09.970487576 +0200
@@ -7,7 +7,7 @@
#include "eog-job.h"
static guint last_job_id = 0;
-#define DEBUG_EOG_JOB 1
+#define DEBUG_EOG_JOB 0 // 1 on, 0 off debug messages
enum {
PROP_0,
@@ -113,8 +113,10 @@
priv = EOG_JOB (object)->priv;
+ /* disable debug messages
g_print ("Job %.3i: disposing ...\n", priv->id);
-
+ */
+
if (priv->mutex != NULL) {
g_mutex_lock (priv->mutex);
if (priv->data != NULL)
@@ -132,8 +134,10 @@
g_mutex_free (priv->mutex);
priv->mutex = NULL;
}
-
+
+ /* disable debug messages
g_print ("Job %.3i: disposing end\n", priv->id);
+ */
}
static void
diff -urN eog-2.12.1.orig/libeog/eog-job-manager.c eog-2.12.1/libeog/eog-job-manager.c
--- eog-2.12.1.orig/libeog/eog-job-manager.c 2005-08-09 17:20:26.000000000 +0200
+++ eog-2.12.1/libeog/eog-job-manager.c 2005-10-13 10:20:46.060001136 +0200
@@ -10,7 +10,7 @@
} ThreadData;
#define MAX_THREADS 2
-#define DEBUG_JOB_MANAGER 1
+#define DEBUG_JOB_MANAGER 0 // 1 on, 0 off debig messages
GMutex *mutex = NULL;
GCond *cond = NULL;
GQueue *job_list = NULL;
diff -urN eog-2.12.1.orig/shell/eog-window.c eog-2.12.1/shell/eog-window.c
--- eog-2.12.1.orig/shell/eog-window.c 2005-10-03 23:04:33.000000000 +0200
+++ eog-2.12.1/shell/eog-window.c 2005-10-13 10:22:13.402723024 +0200
@@ -2728,7 +2728,9 @@
width = CLAMP (width, 100, screen_width);
height = CLAMP (height, 100, screen_height);
+ /* disable debug messages
g_print ("setting window size: %i/%i\n", width, height);
+ */
gtk_window_set_default_size (GTK_WINDOW (window), width, height);
}
@@ -2864,7 +2866,9 @@
XFree (str);
return profile;
} else {
+ /* aghr !, disable debug message, i do not need this !
g_printerr("No profile, not correcting\n");
+ */
return NULL;
}
}
-------------- następna część ---------
--- eog.spec.orig 2005-10-13 10:37:11.246230064 +0200
+++ eog.spec 2005-10-13 10:28:47.935744888 +0200
@@ -4,13 +4,14 @@
Summary(pt_BR): Visualizador de imagem Eye of GNOME
Name: eog
Version: 2.12.1
-Release: 1
+Release: 2
License: GPL v2
Group: X11/Applications
Source0: http://ftp.gnome.org/pub/gnome/sources/eog/2.12/%{name}-%{version}.tar.bz2
# Source0-md5: d5dc20850777bb85ec90ff92817106dd
Patch0: %{name}-libtool.patch
Patch1: %{name}-desktop.patch
+Patch2: %{name}-nodebug.patch
URL: http://www.gnome.org/
BuildRequires: GConf2-devel >= 2.10.0
BuildRequires: autoconf
@@ -51,6 +52,7 @@
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
Więcej informacji o liście dyskusyjnej pld-devel-pl