[easytag] Do not save the write playlist window dimensions



commit 76cd35ded040d2f7430ac4bd0ddc8e67f88f2ba2
Author: David King <amigadave amigadave com>
Date:   Tue Apr 30 21:58:44 2013 +0100

    Do not save the write playlist window dimensions
    
    The window size is determined by the contained widgets, so there is
    little point in resizing it and storing the new size.

 src/misc.c    |    8 ++------
 src/setting.c |    4 ----
 2 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index 52bcc3e..8ff2bcc 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -1433,21 +1433,17 @@ void Write_Playlist_Window_Apply_Changes (void)
 {
     if (WritePlaylistWindow)
     {
-        gint x, y, width, height;
+        gint x, y;
         GdkWindow *window;
 
         window = gtk_widget_get_window (WritePlaylistWindow);
 
         if ( window && gdk_window_is_visible(window) && 
gdk_window_get_state(window)!=GDK_WINDOW_STATE_MAXIMIZED )
         {
-            // Position and Origin of the window
+            /* Origin of the window. */
             gdk_window_get_root_origin(window,&x,&y);
             PLAYLIST_WINDOW_X = x;
             PLAYLIST_WINDOW_Y = y;
-            width = gdk_window_get_width(window);
-            height = gdk_window_get_height(window);
-            PLAYLIST_WINDOW_WIDTH  = width;
-            PLAYLIST_WINDOW_HEIGHT = height;
         }
 
         /* List of variables also set in the function 'Playlist_Write_Button_Pressed' */
diff --git a/src/setting.c b/src/setting.c
index 412a2a8..70c4719 100644
--- a/src/setting.c
+++ b/src/setting.c
@@ -245,8 +245,6 @@ tConfigVariable Config_Variables[] =
     {"playlist_content_mask_value",             CV_TYPE_STRING,  &PLAYLIST_CONTENT_MASK_VALUE            },
     {"playlist_window_x",                       CV_TYPE_INT,     &PLAYLIST_WINDOW_X                      },
     {"playlist_window_y",                       CV_TYPE_INT,     &PLAYLIST_WINDOW_Y                      },
-    {"playlist_window_width",                   CV_TYPE_INT,     &PLAYLIST_WINDOW_WIDTH                  },
-    {"playlist_window_height",                  CV_TYPE_INT,     &PLAYLIST_WINDOW_HEIGHT                 },
 
     {"load_file_run_scanner",                   CV_TYPE_BOOL,    &LOAD_FILE_RUN_SCANNER                  },
     {"load_file_window_x",                      CV_TYPE_INT,     &LOAD_FILE_WINDOW_X                     },
@@ -528,8 +526,6 @@ void Init_Config_Variables (void)
 
     PLAYLIST_WINDOW_X               = -1;
     PLAYLIST_WINDOW_Y               = -1;
-    PLAYLIST_WINDOW_WIDTH           = -1;
-    PLAYLIST_WINDOW_HEIGHT          = -1;
 
     /*
      * Load File window


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]