[easytag] Remove message box location settings



commit eece33a1388630ce88c3bc9a896e2cbca80e9e0a
Author: David King <amigadave amigadave com>
Date:   Sun Mar 3 17:50:54 2013 +0000

    Remove message box location settings
    
    In all cases the message box dialog was set as transient for the main
    window.

 src/picture.c |   24 ------------------------
 src/prefs.c   |   44 --------------------------------------------
 src/setting.c |   15 ---------------
 src/setting.h |    5 -----
 4 files changed, 0 insertions(+), 88 deletions(-)
---
diff --git a/src/picture.c b/src/picture.c
index 5422ebd..93d2ab4 100644
--- a/src/picture.c
+++ b/src/picture.c
@@ -294,14 +294,6 @@ void Picture_Add_Button_Clicked (GObject *object)
     // Make this filter the default
     gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(FileSelectionWindow), GTK_FILE_FILTER(filter));
 
-    // Set window position
-    if (MESSAGE_BOX_POSITION_NONE)
-        gtk_window_set_position(GTK_WINDOW(FileSelectionWindow),GTK_WIN_POS_NONE);
-    else if (MESSAGE_BOX_POSITION_CENTER)
-        gtk_window_set_position(GTK_WINDOW(FileSelectionWindow),GTK_WIN_POS_CENTER);
-    else if (MESSAGE_BOX_POSITION_MOUSE)
-        gtk_window_set_position(GTK_WINDOW(FileSelectionWindow),GTK_WIN_POS_MOUSE);
-
     // Behaviour following the tag type...
     switch (ETCore->ETFileDisplayed->ETFileDescription->TagType)
     {
@@ -409,14 +401,6 @@ void Picture_Properties_Button_Clicked (GObject *object)
                                                          NULL);
         g_free(title);
 
-        // Set window position
-        if (MESSAGE_BOX_POSITION_NONE)
-            gtk_window_set_position(GTK_WINDOW(PictureTypesWindow),GTK_WIN_POS_NONE);
-        else if (MESSAGE_BOX_POSITION_CENTER)
-            gtk_window_set_position(GTK_WINDOW(PictureTypesWindow),GTK_WIN_POS_CENTER);
-        else if (MESSAGE_BOX_POSITION_MOUSE)
-            gtk_window_set_position(GTK_WINDOW(PictureTypesWindow),GTK_WIN_POS_MOUSE);
-
         gtk_dialog_set_default_response(GTK_DIALOG(PictureTypesWindow), GTK_RESPONSE_OK);
 
         ScrollWindowPictureTypes = gtk_scrolled_window_new(NULL, NULL);
@@ -630,14 +614,6 @@ void Picture_Save_Button_Clicked (GObject *object)
         // Make this filter the default
         gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(FileSelectionWindow),  GTK_FILE_FILTER(filter));
 
-        // Set window position
-        if (MESSAGE_BOX_POSITION_NONE)
-            gtk_window_set_position(GTK_WINDOW(FileSelectionWindow),GTK_WIN_POS_NONE);
-        else if (MESSAGE_BOX_POSITION_CENTER)
-            gtk_window_set_position(GTK_WINDOW(FileSelectionWindow),GTK_WIN_POS_CENTER);
-        else if (MESSAGE_BOX_POSITION_MOUSE)
-            gtk_window_set_position(GTK_WINDOW(FileSelectionWindow),GTK_WIN_POS_MOUSE);
-
         gtk_dialog_set_default_response(GTK_DIALOG(FileSelectionWindow), GTK_RESPONSE_OK);
 
         // Set the default folder if defined
diff --git a/src/prefs.c b/src/prefs.c
index 5ef6ab3..75d9503 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -326,50 +326,6 @@ void Open_OptionsWindow (void)
     gtk_widget_set_tooltip_text(SortingFileCaseSensitive,_("If activated, the "
         "sorting of the list will be dependent on the case."));
 
-    /* Message Dialog Position */
-    Frame = gtk_frame_new (_("Message Dialog Position"));
-    gtk_box_pack_start(GTK_BOX(VBox),Frame,FALSE,FALSE,0);
-    Table = et_grid_new (2, 2);
-    gtk_container_add(GTK_CONTAINER(Frame),Table);
-    /*gtk_grid_set_row_spacing (GTK_GRID (Table), 2);*/
-    gtk_grid_set_column_spacing (GTK_GRID (Table), 4);
-
-
-    MessageBoxPositionNone = gtk_radio_button_new_with_label(NULL,_("No particular position"));
-    gtk_grid_attach (GTK_GRID (Table), MessageBoxPositionNone, 0, 0, 1, 1);
-    gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(MessageBoxPositionNone),
-        MESSAGE_BOX_POSITION_NONE);
-    gtk_widget_set_tooltip_text(MessageBoxPositionNone,_("Let the Window Manager "
-        "to place the windows."));
-
-    MessageBoxPositionCenterOnParent = gtk_radio_button_new_with_label(
-        gtk_radio_button_get_group(GTK_RADIO_BUTTON(MessageBoxPositionNone)),
-        _("Center of the main window"));
-    gtk_grid_attach (GTK_GRID (Table), MessageBoxPositionCenterOnParent, 1, 0,
-                     1, 1);
-    gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(MessageBoxPositionCenterOnParent),
-        MESSAGE_BOX_POSITION_CENTER_ON_PARENT);
-    gtk_widget_set_tooltip_text(MessageBoxPositionCenterOnParent,_("Windows should "
-        "be placed in the center of the main window."));
-
-    MessageBoxPositionCenter = gtk_radio_button_new_with_label(
-        gtk_radio_button_get_group(GTK_RADIO_BUTTON(MessageBoxPositionNone)),
-        _("Center of the screen"));
-    gtk_grid_attach (GTK_GRID (Table), MessageBoxPositionCenter, 0, 1, 1, 1);
-    gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(MessageBoxPositionCenter),
-        MESSAGE_BOX_POSITION_CENTER);
-    gtk_widget_set_tooltip_text(MessageBoxPositionCenter,_("Windows should be placed "
-        "in the center of the screen."));
-
-    MessageBoxPositionMouse = gtk_radio_button_new_with_label(
-        gtk_radio_button_get_group(GTK_RADIO_BUTTON(MessageBoxPositionNone)),
-        _("Mouse position"));
-    gtk_grid_attach (GTK_GRID (Table), MessageBoxPositionMouse, 1, 1, 1, 1);
-    gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(MessageBoxPositionMouse),
-        MESSAGE_BOX_POSITION_MOUSE);
-    gtk_widget_set_tooltip_text(MessageBoxPositionMouse,_("Windows should be placed "
-        "at the current mouse position."));
-
     /* File Player */
     Frame = gtk_frame_new (_("File Audio Player"));
     gtk_box_pack_start(GTK_BOX(VBox),Frame,FALSE,FALSE,0);
diff --git a/src/setting.c b/src/setting.c
index 52ee4cb..aca10cf 100644
--- a/src/setting.c
+++ b/src/setting.c
@@ -180,11 +180,6 @@ tConfigVariable Config_Variables[] =
     {"vorbis_split_field_composer",                    CV_TYPE_BOOL,  &VORBIS_SPLIT_FIELD_COMPOSER},
     {"vorbis_split_field_orig_artist",                 CV_TYPE_BOOL,  &VORBIS_SPLIT_FIELD_ORIG_ARTIST},
 
-    {"message_box_position_none",               CV_TYPE_BOOL,  &MESSAGE_BOX_POSITION_NONE                },
-    {"message_box_position_center",             CV_TYPE_BOOL,  &MESSAGE_BOX_POSITION_CENTER              },
-    {"message_box_position_mouse",              CV_TYPE_BOOL,  &MESSAGE_BOX_POSITION_MOUSE               },
-    {"message_box_position_center_on_parent",   CV_TYPE_BOOL,  &MESSAGE_BOX_POSITION_CENTER_ON_PARENT    },
-
     {"audio_file_player",                       CV_TYPE_STRING,&AUDIO_FILE_PLAYER                        },
 
     {"scanner_type",                             CV_TYPE_INT, &SCANNER_TYPE                              },
@@ -400,11 +395,6 @@ void Init_Config_Variables (void)
     LOG_MAX_LINES                           = 50;
     SHOW_LOG_VIEW                           = 1;
 
-    MESSAGE_BOX_POSITION_NONE               = 0;
-    MESSAGE_BOX_POSITION_CENTER             = 0;
-    MESSAGE_BOX_POSITION_MOUSE              = 0;
-    MESSAGE_BOX_POSITION_CENTER_ON_PARENT   = 1;
-
 #ifdef G_OS_WIN32
     AUDIO_FILE_PLAYER                       = ET_Win32_Get_Audio_File_Player();
 #else /* !G_OS_WIN32 */
@@ -696,11 +686,6 @@ Apply_Changes_Of_Preferences_Window (void)
 
         SORTING_FILE_MODE = gtk_combo_box_get_active(GTK_COMBO_BOX(SortingFileCombo));
 
-        MESSAGE_BOX_POSITION_NONE               = 
gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(MessageBoxPositionNone));
-        MESSAGE_BOX_POSITION_CENTER             = 
gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(MessageBoxPositionCenter));
-        MESSAGE_BOX_POSITION_MOUSE              = 
gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(MessageBoxPositionMouse));
-        MESSAGE_BOX_POSITION_CENTER_ON_PARENT   = 
gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(MessageBoxPositionCenterOnParent));
-
         if (AUDIO_FILE_PLAYER) g_free(AUDIO_FILE_PLAYER);
         AUDIO_FILE_PLAYER                       = 
g_strdup(gtk_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(FilePlayerCombo)))));
 
diff --git a/src/setting.h b/src/setting.h
index 559caa1..5e61c86 100644
--- a/src/setting.h
+++ b/src/setting.h
@@ -76,11 +76,6 @@ gint    CHANGED_FILES_DISPLAYED_TO_BOLD;
 gint    SORTING_FILE_MODE;
 gint    SORTING_FILE_CASE_SENSITIVE;
 
-gint    MESSAGE_BOX_POSITION_NONE;
-gint    MESSAGE_BOX_POSITION_CENTER;
-gint    MESSAGE_BOX_POSITION_MOUSE;
-gint    MESSAGE_BOX_POSITION_CENTER_ON_PARENT;
-
 gchar  *AUDIO_FILE_PLAYER;
 
 /* File Settings */


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