XML serialization for set files, bug fixes and a new full screen mode
[terminatorX.git] / src / tX_loaddlg.cc
index 0439edf138759f0f90d78408399b4563c2c7d2f7..daecee9dc63adff490b29b3e20c77143f43a84dd 100644 (file)
@@ -64,16 +64,9 @@ int ld_create_loaddlg(int mode, int count)
        ld_mode=mode;
        ld_count=count;
 
-#ifdef USE_GTK2
        ld_loaddlg=gtk_dialog_new_with_buttons("terminatorX - loading",
                GTK_WINDOW(main_window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL, GTK_RESPONSE_NONE, NULL);
-#else  
-       ld_loaddlg=gtk_dialog_new();    
-#endif 
        ld_window=&(GTK_DIALOG(ld_loaddlg)->window);
-#ifndef        USE_GTK2
-       gtk_window_set_title(ld_window, "terminatorX - loading");       
-#endif 
        gtk_container_set_border_width(GTK_CONTAINER(ld_window), 5);
        
        vbox=GTK_WIDGET(GTK_DIALOG(ld_loaddlg)->vbox);
@@ -103,16 +96,8 @@ int ld_create_loaddlg(int mode, int count)
        ld_single_p=gtk_progress_bar_new();
        add_widget_fix(ld_single_p);
 
-#ifndef USE_GTK2       
-       dummy=gtk_button_new_with_label("Cancel");
-       gtk_box_pack_start(GTK_BOX(actionarea), dummy, WID_DYN);
-       gtk_widget_show(dummy);
-#endif 
        gtk_window_set_modal(ld_window, TRUE);
        gtk_window_set_default_size(ld_window, 400, 100);
-#ifndef USE_GTK2
-       gtk_window_set_position(ld_window, GTK_WIN_POS_CENTER_ALWAYS);
-#endif 
        gtk_widget_realize(ld_loaddlg);
        gdk_window_set_decorations(gtk_widget_get_parent_window(vbox),(GdkWMDecoration) 0);
        gtk_widget_show(ld_loaddlg);