[easytag] Remove settings for preferences window dimensions



commit a362a5dd5d2b6c6a439076f4f9881afbe1157f32
Author: David King <amigadave amigadave com>
Date:   Wed May 1 20:16:43 2013 +0100

    Remove settings for preferences window dimensions
    
    The defaults for these were useless, as the preferences window was much
    larger than the defaults.

 src/prefs.c   |   18 ------------------
 src/setting.c |    8 +-------
 src/setting.h |    2 --
 3 files changed, 1 insertions(+), 27 deletions(-)
---
diff --git a/src/prefs.c b/src/prefs.c
index 1fe81fc..fc23656 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -1584,24 +1584,6 @@ void OptionsWindow_Apply_Changes (void)
 {
     if (OptionsWindow)
     {
-        //gint x, y;
-        gint width, height;
-        GdkWindow *window;
-
-        window = gtk_widget_get_window(OptionsWindow);
-
-        if ( window && gdk_window_is_visible(window) && 
gdk_window_get_state(window)!=GDK_WINDOW_STATE_MAXIMIZED )
-        {
-            // Position and Origin of the preferences window
-            //gdk_window_get_root_origin(OptionsWindow->window,&x,&y);
-            //OPTIONS_WINDOW_X = x;
-            //OPTIONS_WINDOW_Y = y;
-            width = gdk_window_get_width(window);
-            height = gdk_window_get_height(window);
-            OPTIONS_WINDOW_WIDTH  = width;
-            OPTIONS_WINDOW_HEIGHT = height;
-        }
-
         /* Get the last visible notebook page */
         OPTIONS_NOTEBOOK_PAGE = gtk_notebook_get_current_page(GTK_NOTEBOOK(OptionsNoteBook));
 
diff --git a/src/setting.c b/src/setting.c
index 70c4719..c9fc3c9 100644
--- a/src/setting.c
+++ b/src/setting.c
@@ -323,10 +323,7 @@ tConfigVariable Config_Variables[] =
     {"rename_directory_default_mask",           CV_TYPE_STRING,  &RENAME_DIRECTORY_DEFAULT_MASK          },
     {"rename_directory_with_mask",              CV_TYPE_BOOL,    &RENAME_DIRECTORY_WITH_MASK             },
 
-    {"options_notebook_page",                   CV_TYPE_INT,     &OPTIONS_NOTEBOOK_PAGE                  },
-    {"options_window_height",                   CV_TYPE_INT,     &OPTIONS_WINDOW_HEIGHT                  },
-    {"options_window_width",                    CV_TYPE_INT,     &OPTIONS_WINDOW_WIDTH                   }
-
+    { "options_notebook_page", CV_TYPE_INT, &OPTIONS_NOTEBOOK_PAGE }
 };
 
 
@@ -621,9 +618,6 @@ void Init_Config_Variables (void)
      * Other parameters
      */
     OPTIONS_NOTEBOOK_PAGE = 0;
-    OPTIONS_WINDOW_HEIGHT = 300;
-    OPTIONS_WINDOW_WIDTH  = 400;
-
 }
 
 
diff --git a/src/setting.h b/src/setting.h
index 6bfa9d6..947553e 100644
--- a/src/setting.h
+++ b/src/setting.h
@@ -292,8 +292,6 @@ gint    RENAME_DIRECTORY_WITH_MASK;
 
 /* Other parameters */
 gint    OPTIONS_NOTEBOOK_PAGE;
-gint    OPTIONS_WINDOW_HEIGHT;
-gint    OPTIONS_WINDOW_WIDTH;
 
 
 


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