]> git.pld-linux.org Git - packages/eog.git/commitdiff
- disable debug messages in stable release, based on patch from MichaƂ
authorfreetz <freetz@pld-linux.org>
Thu, 13 Oct 2005 12:57:04 +0000 (12:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  Abramowicz

Changed files:
    eog-debug.patch -> 1.1

eog-debug.patch [new file with mode: 0644]

diff --git a/eog-debug.patch b/eog-debug.patch
new file mode 100644 (file)
index 0000000..85d144b
--- /dev/null
@@ -0,0 +1,139 @@
+diff -aurN 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 14:30:56.000000000 +0200
+@@ -906,8 +906,10 @@
+       g_return_val_if_fail (EOG_IS_IMAGE (img), FALSE);
+       priv = EOG_IMAGE (img)->priv;
+-
++      
++#ifdef DEBUG
+       g_print ("eog-image_load.c\n");
++#endif
+       if (data2read == 0) {
+               /* nothing to read */
+@@ -942,8 +944,9 @@
+               success = eog_image_real_load (img, data2read, job, error);
+       }
++#ifdef DEBUG
+       g_print ("load success: %i\n", success);
+-
++#endif
+       /* perform required transformation */
+       if (eog_image_needs_transformation (img)) {
+               if (job != NULL) {
+diff -aurN 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 14:32:20.000000000 +0200
+@@ -701,15 +701,19 @@
+       
+       priv = list->priv;
+       
++#ifdef DEBUG  
+       g_print ("n_images: %i/%i\n", priv->n_images, g_list_length (priv->store));
++#endif
++
+       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);
+-              
++
++#ifdef DEBUG                  
+               g_print ("%3i %s (%i/%i)\n", i++, uri_str, width, height);
+-              
++#endif                
+               g_free (uri_str);
+       }
+ }
+diff -aurN 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 14:33:37.000000000 +0200
+@@ -111,7 +111,9 @@
+               ExifData *ed;
+               ed = eog_image_get_exif_information (image);
++#ifdef DEBUG
+               g_print ("Show exif data\n");
++#endif
+               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 -aurN 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 14:49:43.000000000 +0200
+@@ -7,8 +7,9 @@
+ #include "eog-job.h"
+ static guint last_job_id = 0;
++#ifdef DEBUG
+ #define DEBUG_EOG_JOB 1
+-
++#endif
+ enum {
+       PROP_0,
+       PROP_PROGRESS_THRESHOLD,
+@@ -113,7 +114,9 @@
+       priv = EOG_JOB (object)->priv;
++#ifdef DEBUG
+       g_print ("Job %.3i: disposing ...\n", priv->id);
++#endif
+       if (priv->mutex != NULL) {
+               g_mutex_lock (priv->mutex);
+@@ -132,8 +135,11 @@
+               g_mutex_free (priv->mutex);
+               priv->mutex = NULL;
+       }
+-
++      
++#ifdef DEBUG
+       g_print ("Job %.3i: disposing end\n", priv->id);
++#endif
++
+ }
+ static void
+diff -aurN 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 14:50:12.000000000 +0200
+@@ -10,7 +10,9 @@
+ } ThreadData;
+ #define MAX_THREADS  2
++#ifdef DEBUG
+ #define DEBUG_JOB_MANAGER 1
++#endif
+ GMutex       *mutex       = NULL;
+ GCond        *cond        = NULL;
+ GQueue       *job_list    = NULL;
+diff -aurN 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 14:36:11.000000000 +0200
+@@ -2727,9 +2727,9 @@
+               /* make sure window is usable */
+               width  = CLAMP (width, 100, screen_width);
+               height = CLAMP (height, 100, screen_height);
+-      
++#ifdef DEBUG  
+               g_print ("setting window size: %i/%i\n", width, height);
+-              
++#endif                
+               gtk_window_set_default_size (GTK_WINDOW (window), width, height);
+       }
+ #endif
+@@ -2864,7 +2864,9 @@
+               XFree (str);
+               return profile;
+       } else {
++#ifdef DEBUG
+               g_printerr("No profile, not correcting\n");
++#endif
+               return NULL;
+       }
+ }
This page took 0.037319 seconds and 4 git commands to generate.