2008-04-07 13:41:18 -06:00
|
|
|
/* Copyright (C) 2008 Curtis Gedak
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2014-01-23 03:59:48 -07:00
|
|
|
* GNU General Public License for more details.
|
2008-04-07 13:41:18 -06:00
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2014-01-23 03:59:48 -07:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2008-04-07 13:41:18 -06:00
|
|
|
*/
|
2013-05-27 05:20:16 -06:00
|
|
|
|
2014-12-19 14:08:28 -07:00
|
|
|
#ifndef GPARTED_DIALOG_FILESYSTEM_LABEL_H
|
|
|
|
#define GPARTED_DIALOG_FILESYSTEM_LABEL_H
|
2008-04-07 13:41:18 -06:00
|
|
|
|
2016-10-18 16:45:28 -06:00
|
|
|
#include "Partition.h"
|
|
|
|
#include "i18n.h"
|
2008-04-07 13:41:18 -06:00
|
|
|
|
Simplify from Gtk::Table to HBox in FileSystem Label dialog
The FileSystem Label dialog only has a single line of just 2 widgets; a
text label and entry box widget. There is no need to use a multi-line
capable table to hold this. Switch to a simpler horizontal box widget.
Note that this change is not related to porting to Gtk 3 and stopping
using deprecated APIs because both HBox [1] and Table [2] are deprecated
in Gtk 3.2 and Gtk 3.4 and replaced by Box with horizontal orientation
and Grid respectively.
[1] NEWS file from gtkmm 3.2, actually first released in gtkmm 3.1.6
(unstable):
https://git.gnome.org/browse/gtkmm/tree/NEWS?h=3.2.0#n91
"Gtk:
* All H* or V* specialized classes have been deprecated, to
match the deprecations in the GTK+ C API. You should now
set the orientation instead.
This includes HBox, VBox, HButtonBox, VButtonBox, HPaned,
VPaned, HScale, VScale, HSeparator, VSeparator, HScrollbar
and VScrollbar."
[2] NEWS file from gtkmm 3.4, actually first released in gtkmm 3.3.2
(unstable):
https://git.gnome.org/browse/gtkmm/tree/NEWS?h=3.4.0#n162
"* Deprecate Gtk::Table in favour of Gtk::Grid."
2018-05-15 00:34:43 -06:00
|
|
|
#include <glibmm/ustring.h>
|
2008-04-07 13:41:18 -06:00
|
|
|
#include <gtkmm/dialog.h>
|
|
|
|
#include <gtkmm/entry.h>
|
|
|
|
|
|
|
|
namespace GParted
|
2014-12-19 14:08:28 -07:00
|
|
|
{
|
2008-04-07 13:41:18 -06:00
|
|
|
|
2014-12-19 14:08:28 -07:00
|
|
|
class Dialog_FileSystem_Label : public Gtk::Dialog
|
2008-04-07 13:41:18 -06:00
|
|
|
{
|
|
|
|
public:
|
2014-12-19 14:08:28 -07:00
|
|
|
Dialog_FileSystem_Label( const Partition & partition );
|
|
|
|
~Dialog_FileSystem_Label();
|
2008-04-07 13:41:18 -06:00
|
|
|
Glib::ustring get_new_label();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Gtk::Entry *entry;
|
|
|
|
};
|
|
|
|
|
|
|
|
} //GParted
|
|
|
|
|
2014-12-19 14:08:28 -07:00
|
|
|
#endif /* GPARTED_DIALOG_FILESYSTEM_LABEL_H */
|