port-to-gtk3: Rework Glibmm header includes (#7)

Now that we are compiling against Gtkmm3 there are missing declarations
of Glibmm identifiers due to changes in Gtkmm internal header structure.

All we have to do is bring back the declarations by including the
appropriate headers where needed.

Add necessary Glibmm header includes.

Closes #7 - Port to Gtk3
This commit is contained in:
Luca Bacci 2018-12-04 17:46:27 +01:00 committed by Mike Fleetwood
parent cc0740148e
commit 4b87839502
32 changed files with 92 additions and 1 deletions

View File

@ -29,6 +29,8 @@
#include <parted/parted.h>
#include <vector>
#include <fstream>
#include <glibmm/thread.h>
namespace GParted
{

View File

@ -28,7 +28,7 @@
#include <gtkmm/label.h>
#include <glibmm/ustring.h>
#include <glibmm/spawn.h>
#include <iostream>
#include <ctime>
#include <vector>

View File

@ -21,6 +21,8 @@
#include "Utils.h"
#include <glibmm/ustring.h>
#include <glibmm/thread.h>
#include <glibmm/stringutils.h>
#include <gtkmm/main.h>
#include <errno.h>

View File

@ -19,6 +19,10 @@
#include <limits.h>
#include <stdlib.h> //atoi function
#include <glibmm/miscutils.h>
#include <glibmm/fileutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -22,6 +22,7 @@
#include "Utils.h"
#include "btrfs.h"
#include <glibmm/miscutils.h>
#include <gtkmm/alignment.h>
#include <gtkmm/viewport.h>
#include <gdkmm/general.h>

View File

@ -19,6 +19,8 @@
#include "OperationDetail.h"
#include "ProgressBar.h"
#include <glibmm/miscutils.h>
#include <glibmm/main.h>
#include <gtkmm/stock.h>
#include <gtkmm/main.h>
#include <gtkmm/messagedialog.h>

View File

@ -19,6 +19,8 @@
#include "Dialog_Rescue_Data.h"
#include "Partition.h"
#include <glibmm/stringutils.h>
#include <glibmm/shell.h>
#include <gtk/gtk.h>
#include <gtkmm/messagedialog.h>
#include <gtkmm/stock.h>

View File

@ -20,6 +20,8 @@
#include "Utils.h"
#include <glibmm/ustring.h>
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
#include <vector>
namespace GParted

View File

@ -19,6 +19,10 @@
#include <cerrno>
#include <iostream>
#include <glibmm/miscutils.h>
#include <glibmm/stringutils.h>
#include <glibmm/shell.h>
#include <glibmm/main.h>
#include <gtkmm/main.h>
#include <signal.h>
#include <fcntl.h>

View File

@ -59,6 +59,9 @@
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <glibmm/miscutils.h>
#include <glibmm/fileutils.h>
#include <glibmm/shell.h>
#include <gtkmm/messagedialog.h>
#include <gtkmm/main.h>

View File

@ -17,6 +17,9 @@
#include "LVM2_PV_Info.h"
#include "BlockSpecial.h"
#include <glibmm/miscutils.h>
namespace GParted
{

View File

@ -19,6 +19,7 @@
#include "Utils.h"
#include <glibmm/ustring.h>
#include <glibmm/fileutils.h>
#include <stdio.h>
#include <limits.h>
#include <stdlib.h>

View File

@ -19,6 +19,7 @@
#include "Utils.h"
#include <glibmm/ustring.h>
#include <glibmm/miscutils.h>
#include <fstream>
namespace GParted

View File

@ -24,6 +24,7 @@
#include <gtkmm/cellrenderer.h>
#include <gtkmm/cellrenderertext.h>
#include <pangomm/layout.h>
#include <glibmm/miscutils.h>
#include <glibmm/ustring.h>
namespace GParted

View File

@ -28,6 +28,8 @@
#include <cerrno>
#include <sys/statvfs.h>
#include <glibmm/ustring.h>
#include <glibmm/stringutils.h>
#include <glibmm/shell.h>
#include <gtkmm/main.h>
#include <fcntl.h>
#include <sys/types.h>

View File

@ -54,6 +54,10 @@
#include <gtkmm/main.h>
#include <gtkmm/separator.h>
#include <glibmm/ustring.h>
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
#include <glibmm/main.h>
namespace GParted
{

View File

@ -22,6 +22,9 @@
#include "Partition.h"
#include <ctype.h>
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -22,6 +22,9 @@
#include "Utils.h"
#include <glibmm/ustring.h>
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -18,6 +18,10 @@
#include "FileSystem.h"
#include "Partition.h"
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -19,6 +19,9 @@
#include "FileSystem.h"
#include "Partition.h"
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
/*****
//For some reason unknown, this works without these include statements.
#include <stdlib.h> // 'C' library for mkstemp()

View File

@ -19,6 +19,10 @@
#include "FileSystem.h"
#include "Partition.h"
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -19,6 +19,10 @@
#include "FileSystem.h"
#include "Partition.h"
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -19,6 +19,10 @@
#include "FileSystem.h"
#include "Partition.h"
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -21,6 +21,10 @@
#include "Partition.h"
#include <cerrno>
#include <glibmm/miscutils.h>
#include <glibmm/stringutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -19,6 +19,10 @@
#include "Utils.h"
#include "luks.h"
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -19,6 +19,9 @@
#include "lvm2_pv.h"
#include "Partition.h"
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -18,6 +18,10 @@
#include "FileSystem.h"
#include "Partition.h"
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -22,6 +22,9 @@
#include "Utils.h"
#include <glibmm/ustring.h>
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -19,6 +19,10 @@
#include "FileSystem.h"
#include "Partition.h"
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -19,6 +19,10 @@
#include "FileSystem.h"
#include "Partition.h"
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -22,6 +22,9 @@
#include <stddef.h>
#include <stdlib.h>
#include <glibmm/ustring.h>
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{

View File

@ -22,6 +22,9 @@
#include "Utils.h"
#include <glibmm/ustring.h>
#include <glibmm/miscutils.h>
#include <glibmm/shell.h>
namespace GParted
{