commit 319ed6e4e66b47b3334a9b12cbe5716f95f01f18
Author: phantomjinx <p.g.richard...@phantomjinx.co.uk>
Date:   Mon Feb 21 18:55:26 2011 +0000

    Small changes
    
    * file.c
     * Remove debug statement
    
    * plugin.c
    * rb_cell_renderer_rating.c
     * Remove unused variables
    
    * display_coverart.c
     * Remove commented code
    
    * prefs.c
     * HOWTO is redundant and no longer applicable

 libgtkpod/file.c                                |    2 -
 libgtkpod/prefs.c                               |   23 ---------
 plugins/core_preferences/plugin.c               |    1 -
 plugins/cover_display/display_coverart.c        |   55 -----------------------
 plugins/track_display/rb_cell_renderer_rating.c |    1 -
 5 files changed, 0 insertions(+), 82 deletions(-)
---
diff --git a/libgtkpod/file.c b/libgtkpod/file.c
index a6e82e3..d2b7c4c 100644
--- a/libgtkpod/file.c
+++ b/libgtkpod/file.c
@@ -103,8 +103,6 @@ void gp_save_if_needed(GTime *last_save_time, iTunesDB 
*itdb) {
     int threshold = prefs_get_int("file_saving_time_threshold");
     GTime next_save_time = *last_save_time + threshold;
     GTime now = (GTime) time(NULL);
-    printf("last_save: %u; next_save: %u; now: %u\n",
-          *last_save_time, next_save_time, now);
     if (now >= next_save_time) {
         gp_save_itdb(itdb);
         gtkpod_tracks_statusbar_update();
diff --git a/libgtkpod/prefs.c b/libgtkpod/prefs.c
index a68fcb0..fb95793 100644
--- a/libgtkpod/prefs.c
+++ b/libgtkpod/prefs.c
@@ -27,29 +27,6 @@
  |  $Id$
  */
 
-/* -------------------------------------------------------------------
- *
- * HOWTO add a new_option to the prefs dialog
- *
- * - add the desired option to the prefs window using glade-2
- *
- * - set the default value of new_option in set_default_preferences() in 
prefs.c
- *
- * - add a callback on_new_option_*() to prefs_windows.c to set the
- *   new value.
- *   The value is applied to the actual prefs when pressing the "OK"
- *   or "Apply" button in the prefs window.
- *
- * - add code to prefs_window_create() in prefs_window.c to set the
- *   correct state of the option in the prefs window.
- *
- * - if you want new_option to be a command line option as well, add
- *   code to usage() and read_commandline().
- *
- * - for environment variables, add code to read_environment().
- *
- * ---------------------------------------------------------------- */
-
 /* ----------------------------------------------------------------
  *
  * The prefs module should be thread safe. The hash table is locked
diff --git a/plugins/core_preferences/plugin.c 
b/plugins/core_preferences/plugin.c
index ea68aee..1805912 100644
--- a/plugins/core_preferences/plugin.c
+++ b/plugins/core_preferences/plugin.c
@@ -129,7 +129,6 @@ static void ipreferences_merge(IAnjutaPreferences* ipref, 
AnjutaPreferences* pre
 
 static void ipreferences_unmerge(IAnjutaPreferences* ipref, AnjutaPreferences* 
prefs, GError** e) {
     anjuta_preferences_remove_page(prefs, _("Settings"));
-    CorePrefsPlugin* prefs_plugin = GTKPOD_CORE_PREFS_PLUGIN(ipref);
     destroy_settings_preferences();
 }
 
diff --git a/plugins/cover_display/display_coverart.c 
b/plugins/cover_display/display_coverart.c
index e107ca9..fe9c14f 100644
--- a/plugins/cover_display/display_coverart.c
+++ b/plugins/cover_display/display_coverart.c
@@ -1024,61 +1024,6 @@ static gboolean on_drawing_area_exposed(GtkWidget 
*draw_area, GdkEventExpose *ev
     return FALSE;
 }
 
-///**
-// * gtkpod_window_configure_callback:
-// *
-// * Callback for the gtkpod app window. When the window
-// * is resized the background of the cdwidget is given a size
-// * of the same size. Ensure the background is always black
-// * and no overlapping internal components occur.
-// *
-// * @widget: gtkpod app window
-// * @event: gdk configure event
-// * @data: any user data passed to the function
-// *
-// * Returns:
-// * boolean indicating whether other handlers should be run.
-// */
-//static gboolean on_gtkpod_window_configure(GtkWidget *widget, 
GdkEventConfigure *event, gpointer data) {
-//    if (cdwidget == NULL)
-//        return FALSE;
-//
-//    redraw(FALSE);
-//
-//    return FALSE;
-//}
-
-///**
-// * on_paned0_button_release_event:
-// *
-// * Callback fired when a button release event occurs on
-// * paned0. Only worthwhile things are carried out when
-// * the position of paned0 has changed, ie. the bar was moved.
-// * Moving the bar will scale the cover images appropriately.
-// * Signal connected via the glade XML file.
-// *
-// * @widget: gtkpod app window
-// * @event: gdk event button
-// * @data: any user data passed to the function
-// *
-// * Returns:
-// * boolean indicating whether other handlers should be run.
-// */
-//G_MODULE_EXPORT gboolean on_paned0_button_release_event(GtkWidget *widget, 
GdkEventButton *event, gpointer data) {
-//    if (!prefs_get_int(KEY_DISPLAY_COVERART))
-//        return FALSE;
-//
-//    gint width;
-//
-//    width = gtk_paned_get_position(GTK_PANED(widget));
-//    if ((width >= DEFAULT_WIDTH) && (width != WIDTH)) {
-//        WIDTH = width;
-//        redraw(FALSE);
-//    }
-//
-//    return FALSE;
-//}
-
 /**
  * on_contentpanel_scroll_wheel_turned:
  *
diff --git a/plugins/track_display/rb_cell_renderer_rating.c 
b/plugins/track_display/rb_cell_renderer_rating.c
index 816cc5c..9853cb5 100644
--- a/plugins/track_display/rb_cell_renderer_rating.c
+++ b/plugins/track_display/rb_cell_renderer_rating.c
@@ -253,7 +253,6 @@ rb_cell_renderer_rating_get_size (GtkCellRenderer *cell,
                                  gint *height)
 {
        int icon_width;
-       RBCellRendererRating *cellrating = (RBCellRendererRating *) cell;
        int xpad;
        int ypad;
 

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to