Commit Graph

216 Commits

Author SHA1 Message Date
Bart Hakvoort 7995379cd6 bumped version to 0.1
* bumped version to 0.1
2006-01-11 00:34:40 +00:00
Bart Hakvoort 388ffffff0 added visual feedback when unmounting or deactivating swap. This can be
* include/Win_GParted.h,
  src/Win_GParted.cc: added visual feedback when unmounting or
  deactivating swap. This can be usefull when it takes longer then
  usual.
2006-01-08 15:20:14 +00:00
Bart Hakvoort 1e6ad5884a removed separator in accordance to the HIG it's now possible to deactivate
* src/Dialog_Partition_Info.cc: removed separator in accordance to the
  HIG
* include/Win_GParted.h,
  src/Win_GParted.cc: it's now possible to deactivate swap from within
  gparted.
* src/GParted_Core.cc: sleep one second after deletion of a partition to
  give the kernel some time to reread the partitiontable.
2006-01-07 21:23:09 +00:00
Bart Hakvoort f9ab3cdd3c commented 'ss .imbue( std::locale( "" ) )' (#157871) cleanups allow forced
* src/Utils.cc: commented 'ss .imbue( std::locale( "" ) )' (#157871)
* src/Win_GParted.cc,
  src/TreeView_Detail.cc,
  src/Dialog_Base_Partition.cc: cleanups
* include/Dialog_Partition_New.h,
  include/Partition.h,
  src/Dialog_Partition_New.cc,
  src/GParted_Core.cc,
  src/Partition.cc: allow forced partitionsizes (aka: do not round to
  cylinder). (#169486)
2006-01-07 15:04:42 +00:00
Bart Hakvoort 8890b6de40 replaced free_color() with deprecated free_colors() to allow building with
* src/VBox_VisualDisk.cc: replaced free_color() with deprecated
  free_colors() to allow building with gtkmm-2.6 (#326013)
2006-01-06 22:55:11 +00:00
Bart Hakvoort 7052e18d79 replaced 'device_partitions' with 'partitions' use new Device::partitions
* include/Device.h,
  src/Device.cc: replaced 'device_partitions' with 'partitions'
* src/Win_GParted.cc: use new Device::partitions
* include/Partition.h,
  src/Partition.cc: added 'realpath'
* src/Dialog_Partition_Info.cc: use Partition::realpath..
* include/GParted_Core.h,
  src/GParted_Core.cc:use ped_partition_get_path() instead of
  constructing it ourselves. (#325800)
  Also use global maps for mountpoints and shortpaths to prevent
  fileaccess from happening more then once per scan.
2006-01-05 20:01:34 +00:00
Bart Hakvoort 2a972b06b8 added get_length() from now on values >=1024MB are displayed in GB's
* include/Partition.h,
  src/Partition.cc: added get_length()
* include/Utils.h,
  src/Utils.cc,
  src/Dialog_Partition_Info.cc,
  src/Operation.cc,
  src/TreeView_Detail.cc,
  src/VBox_VisualDisk.cc,
  src/Win_GParted.cc: from now on values >=1024MB are displayed in
  GB's (#319840)
2006-01-04 18:54:46 +00:00
Bart Hakvoort 06925f41a8 replaced 'can not' with 'cannot' (#325570)
* src/Win_GParted.cc: replaced 'can not' with 'cannot' (#325570)
2006-01-03 11:34:08 +00:00
Bart Hakvoort fb672f5219 happy new year ;) fixed some alignment issues removed confirmationdialogs
* happy new year ;)
* src/TreeView_Detail.cc: fixed some alignment issues
* include/GParted_Core.h,
  src/GParted_Core.cc,
  include/Operation.h,
  src/Operation.cc,
  include/Win_GParted.h,
  src/Win_GParted.cc: removed confirmationdialogs for delete and
  convert partitions (#319841).
  Also renamed 'convert' to 'format' to reflect the actual
  functionality.
2006-01-02 15:18:29 +00:00
Bart Hakvoort 8fd8e31271 fixed alignments of cells in combo_devices
* src/Win_GParted.cc: fixed alignments of cells in combo_devices
2005-12-30 18:11:03 +00:00
Bart Hakvoort 3a4b43e0ad replaced deprecated OptionMenu with ComboBox. also fixed some issues which
* include/Win_GParted.h,
  src/Win_GParted.cc: replaced deprecated OptionMenu with ComboBox.
  also fixed some issues which arised when no devices were detected.
2005-12-29 23:35:37 +00:00
Bart Hakvoort f369959995 removed -g from AM_C(XX)FLAGS
* src/Makefile.am: removed -g from AM_C(XX)FLAGS
2005-12-29 16:06:59 +00:00
Bart Hakvoort 75cbfc05f2 replaced access() with Glib::file_test in wait_for_node()
* src/GParted_Core.cc: replaced access() with Glib::file_test in wait_for_node()
2005-12-29 14:34:20 +00:00
Bart Hakvoort 15604e46c0 disable treeview and graphical partition display at scantime fixed two
* src/Win_GParted.cc: disable treeview and graphical partition display at scantime
* src/GParted_Core.cc: fixed two (potential) problems with device detection.
2005-12-29 14:21:45 +00:00
Bart Hakvoort 0f29376e99 because lp_partition didn't get initialized the libpartedscan for free
* src/GParted_Core.cc: because lp_partition didn't get initialized the
  libpartedscan for free space would always fail. fixed.
2005-12-29 00:10:05 +00:00
Bart Hakvoort 23aa549c7c :spawn_command_line_sync() + general cleanups in the set_used_sectors()
* replaced popen() with Glib::spawn_command_line_sync() + general
  cleanups in the set_used_sectors() functions.
2005-12-28 16:43:06 +00:00
Bart Hakvoort 4fc49c2760 merry christmas cleanups replaced popen() with
* merry christmas
* src/GParted_Core.cc,
  src/VBox_VisualDisk.cc,
  src/Win_GParted.cc: cleanups
* include/FileSystem.h,
  src/FileSystem.cc,
  src/ext2.cc,
  src/ext3.cc: replaced popen() with Glib::spawn_command_line_sync()
2005-12-24 23:55:54 +00:00
Bart Hakvoort 45e29fb694 replaced C-style cast with static_cast removed unnecessary 'int
* src/TreeView_Detail.cc: replaced C-style cast with static_cast
* src/VBox_VisualDisk.cc: removed unnecessary 'int ext_length'
2005-12-24 13:31:09 +00:00
Bart Hakvoort 7ef6e3e5c8 emit proper signals for several events. cleanups..
* include/TreeView_Detail.h,
  src/TreeView_Detail.cc,
  include/VBox_VisualDisk.h,
  src/VBox_VisualDisk.cc,
  include/Win_GParted.h,
  src/Win_GParted.cc: emit proper signals for several events.
* include/Partition.h,
  src/Partition.cc: cleanups..
2005-12-24 00:06:05 +00:00
Bart Hakvoort adc76a7686 overloaded operator == rewrote the graphical partitiondisplay. It now
* include/Partition.h,
  src/Partition.cc: overloaded operator ==
* include/VBox_VisualDisk.h,
  src/VBox_VisualDisk.cc: rewrote the graphical partitiondisplay. It
  now supports resizing and the extended partition is also selectable.
  see also #312656
* include/Win_GParted.h,
  src/Win_GParted.cc: use the new graphical partitiondisplay.
* src/TreeView_Detail.cc: minor cleanups
2005-12-22 22:20:55 +00:00
Bart Hakvoort 52f1c4899f replaced deprecated Gtk::Optionmenu with Gtk::ComboBoxText
* include/Dialog_Disklabel.h,
  src/Dialog_Disklabel.cc: replaced deprecated Gtk::Optionmenu with
  Gtk::ComboBoxText
2005-12-15 16:16:48 +00:00
Bart Hakvoort 488063371b don't wait for node to appear when an extended partition is created.
* src/GParted_Core.cc: don't wait for node to appear when an extended
  partition is created.
2005-12-15 15:42:09 +00:00
Bart Hakvoort 9564cf841b added get_color_as_pixbuf() to create colored squares of custom sizes.
* include/Utils.h,
  src/Utils.cc: added get_color_as_pixbuf() to create colored squares
  of custom sizes. These can be use troughout the app to represent
  filesystems. e.g. in the treeview and convertmenu.
* include/TreeView_Detail.h,
  src/TreeView_Detail.cc,
  include/VBox_VisualDisk.h,
  src/VBox_VisualDisk.cc,
  include/Win_GParted.h,
  src/Win_GParted.cc: use Utils::get_color_as_pixbuf() instead of
  custom drawn widgets.
2005-12-15 15:10:34 +00:00
Bart Hakvoort 93300e2b32 use mkdir instead of wrapping CLI tool
* include/FileSystem.h,
  src/jfs.cc,
  src/xfs.cc: use mkdir instead of wrapping CLI tool
2005-12-14 15:15:51 +00:00
Bart Hakvoort 7f57bb1090 added mount() and unmount() use Utils::mount and Utils::umount instead of
* include/Utils.h,
  src/Utils.cc: added mount() and unmount()
* src/Win_GParted.cc,
  src/jfs.cc,
  src/xfs.cc: use Utils::mount and Utils::umount instead of wrapping
  CLI tools.
2005-12-14 14:47:58 +00:00
Bart Hakvoort 0df805afe8 since we now have the device_path in Partition we don't need to
* src/Partition.cc: since we now have the device_path in Partition we
  don't need to 'calculate' it anymore.
2005-12-14 02:09:13 +00:00
Bart Hakvoort 25db5b2ec0 did some cleanups added get_index_extended to get the ext_index in a
* include/GParted_Core.h,
  src/GParted_Core.cc: did some cleanups
* include/Operation.h,
  src/Operation.cc: added get_index_extended to get the ext_index in a
  uniform way instead of calculating it every time ourselves.
2005-12-14 01:58:15 +00:00
Bart Hakvoort 523bc6a6b4 check if file is open before using it. removed commented include
* src/GParted_Core.cc: check if file is open before using it.
* src/Utils.cc: removed commented include
2005-12-13 22:07:01 +00:00
Bart Hakvoort 808b777019 replaced the inline Utils functions with static functions. This shaves a
* replaced the inline Utils functions with static functions.
  This shaves a few kbytes (24 in fact) off the binary and is a bit
  cleaner code-wise (imho).
2005-12-13 21:30:13 +00:00
Bart Hakvoort c5f508c520 don't use wait_for_node() if resizing an extended partition (they don't
* src/GParted_Core.cc: don't use wait_for_node() if resizing an
  extended partition (they don't have nodes :P)
2005-12-12 09:36:42 +00:00
Bart Hakvoort 391f802577 added include/Utils.h replaced get_sym_path with get_short_path for
* po/POTFILES.in: added include/Utils.h
* include/GParted_Core.h,
  src/GParted_Core.cc: replaced get_sym_path with get_short_path for
  cleaner code and better performance.
2005-12-11 18:46:43 +00:00
Bart Hakvoort a6a47c7df5 use statvfs instead of this ugly df-wrapping.
* include/GParted_Core.h,
  src/GParted_Core.cc: use statvfs instead of this ugly df-wrapping.
2005-12-11 00:05:28 +00:00
Bart Hakvoort 7aee5aed95 added 'Glib::ustring mountpoint' implemented set_mountpoints() to set
* include/Partition.h,
  src/Partition.cc: added 'Glib::ustring mountpoint'
* include/GParted_Core.h,
  src/GParted_Core.cc: implemented set_mountpoints() to set mountpoint
  in partitions.
* include/Dialog_Partition_Info.h,
  src/Dialog_Partition_Info.cc: use Partition::mountpoint instead of
  finding it ourselves.
2005-12-08 17:03:29 +00:00
Bart Hakvoort 642f0a145b from now on each partition has a reference to it's device. make use of new
* include/Partition.h,
  src/Partition.cc: from now on each partition has a reference to it's
  device.
* src/Win_GParted.cc,
  src/Dialog_Partition_New.cc: make use of new Set() from partition
* include/GParted_Core.h,
  src/GParted_Core.cc: since ped_file_system_clobber() ignored reiser4
  i've implemented a custom 'filesystem signature remover'.
  Also made use of the fact a partition now knows on which device it
  lives.
* src/Operation.cc: the get_string() didn't use
  Get_Filesystem_String() and thus returned faulty strings. Also did
  some cleanups.
2005-12-07 22:44:40 +00:00
Bart Hakvoort 702a852d2d made warning a bit more informative
* src/GParted_Core.cc: made warning a bit more informative
2005-12-07 11:44:58 +00:00
Bart Hakvoort 7e4efd3c2e rewrote quite some stuff to use an enum to indentify filesystems instead
* rewrote quite some stuff to use an enum to indentify filesystems
  instead of stringcomparisons.
2005-12-07 11:21:27 +00:00
Bart Hakvoort 73c5fa6f4e fixed 'broken pipe' warning removed unnecessary 'echo 2 |' from freespace
* src/jfs.cc: fixed 'broken pipe' warning
* src/fat16.cc,
  src/fat32.cc: removed unnecessary 'echo 2 |' from freespace scan.
2005-11-29 17:14:38 +00:00
Bart Hakvoort d32802166b implemented a 'wait_for_node()' function after reading
* include/GParted_Core.h,
  src/GParted_Core.cc: implemented a 'wait_for_node()' function after
  reading http://bugs.gentoo.org/show_bug.cgi?id=102343. I couldn't
  reproduce the bug myself, but i hope this wil solve it.
  Also made 'set_partition_type()' return a boolean for improved
  errorchecking.
2005-11-29 14:50:20 +00:00
Bart Hakvoort 0e6c78c2b7 P )
* decided to use the Supported enum a bit more efficient in checks
  ( doh, big deal :P )
2005-11-28 17:04:13 +00:00
Bart Hakvoort 1bbcf787b1 Added a menu 'Edit' which contains 'Undo' and 'Apply'. (#322550)
* include/Win_GParted.h,
  src/Win_GParted.cc: Added a menu 'Edit' which contains 'Undo' and
  'Apply'. (#322550)
2005-11-27 19:48:00 +00:00
Bart Hakvoort f3f13d2082 raised dependencies to >=gtkmm-2.6 and >=parted-1.6.25
* configure.in: raised dependencies to >=gtkmm-2.6 and >=parted-1.6.25
2005-11-27 14:25:16 +00:00
Bart Hakvoort cc18d11ad5 hmmz, lots of shimmery internals.. Instead of using a boolean to indicate
* hmmz, lots of shimmery internals..
  Instead of using a boolean to indicate support for certain
  features i now use and enum (NONE, LIBPARTED, EXTENDED).
  This allowed me to clean up some stuff that annoyed me ;)
  Still.. the core could use a bit more love...
2005-11-27 00:57:11 +00:00
Bart Hakvoort 7cc702dbdf removed Dialog_About.[h,cc] from now on we use Gtk::AboutDialog instead of
* include/Makefile.am,
  include/Win_GParted.h,
  src/Makefile.am: removed Dialog_About.[h,cc]
* src/Win_GParted.cc: from now on we use Gtk::AboutDialog instead of
  our own AboutDialog. Also use Gtk::Stock items instead of hardcoded
  paths to images (about and harddisk).
2005-11-25 22:41:49 +00:00
Bart Hakvoort 270e931083 bumped version to 0.0.9 2005-11-25 16:40:46 +00:00
Bart Hakvoort 8264dea990 gparted finally has a logo/icon ;) (thanks to Alain Clement) see also
* gparted finally has a logo/icon ;) (thanks to Alain Clement)
  see also #162092
2005-11-25 14:53:23 +00:00
Bart Hakvoort e59276389e added *.swp some modifications to pass 'make distcheck' minor cleanups
* include/.cvsignore,
  src/.cvsignore: added *.swp
* Makefile.am,
  include/Dialog_Filesystems.h: some modifications to pass 'make
  distcheck'
* src/GParted_Core.cc: minor cleanups
2005-11-25 12:59:47 +00:00
Bart Hakvoort 1382c7bc17 cleanups correct partitiontype is now set after creation or conversion.
* include/FileSystem.h: cleanups
* include/GParted_Core.h,
  src/GParted_Core.cc: correct partitiontype is now set after creation
  or conversion. (#322281)
2005-11-24 15:59:31 +00:00
Bart Hakvoort 0c13a5d9a4 added mk to ALL_LINGUAS on request of Arangel
* configure.in: added mk to ALL_LINGUAS on request of Arangel
2005-11-18 13:22:54 +00:00
Bart Hakvoort 0de39fb11b removed INSTALL some fixes to make 'make dist' work (thanks to Daniel
* removed INSTALL
* compose/.cvsignore,
  compose/Makefile.am,
  Makefile.am,
  configure.in,
  include/Makefile.am: some fixes to make 'make dist' work (thanks to Daniel Holbach)
2005-10-05 22:37:17 +00:00
Bart Hakvoort 628b1960dc added 'vi' to ALL_LINGUAS
* configure.in: added 'vi' to ALL_LINGUAS
2005-09-21 23:32:24 +00:00