[gtkmm] gtk-demo: Use #include <blah> for system headers
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] gtk-demo: Use #include <blah> for system headers
- Date: Fri, 26 May 2017 16:44:23 +0000 (UTC)
commit 5d4f9e2235719f713552d61ad66c4f60401f310e
Author: Daniel Boles <dboles src gnome org>
Date: Fri May 26 17:43:15 2017 +0100
gtk-demo: Use #include <blah> for system headers
including our own and those from the stdlibs. This is more idiomatic, so
it makes for better example code to show users.
demos/gtk-demo/demowindow.h | 16 ++++++++--------
demos/gtk-demo/example_builder.cc | 4 ++--
demos/gtk-demo/example_buttonbox.cc | 4 ++--
demos/gtk-demo/example_dialog.cc | 6 +++---
demos/gtk-demo/example_flowbox.cc | 2 +-
demos/gtk-demo/example_headerbar.cc | 2 +-
demos/gtk-demo/example_menus.cc | 2 +-
demos/gtk-demo/example_overlay.cc | 2 +-
demos/gtk-demo/example_stack.cc | 2 +-
demos/gtk-demo/main.cc | 2 +-
demos/gtk-demo/textwidget.cc | 2 +-
demos/gtk-demo/textwidget.h | 4 ++--
12 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/demos/gtk-demo/demowindow.h b/demos/gtk-demo/demowindow.h
index 2cd53bd..fc93d2b 100644
--- a/demos/gtk-demo/demowindow.h
+++ b/demos/gtk-demo/demowindow.h
@@ -18,15 +18,15 @@
#ifndef _DEMOWINDOW_H
#define _DEMOWINDOW_H
-#include "gtkmm/window.h"
-#include "gtkmm/headerbar.h"
-#include "gtkmm/button.h"
-#include "gtkmm/notebook.h"
-#include "gtkmm/scrolledwindow.h"
-#include "gtkmm/box.h"
+#include <gtkmm/window.h>
+#include <gtkmm/headerbar.h>
+#include <gtkmm/button.h>
+#include <gtkmm/notebook.h>
+#include <gtkmm/scrolledwindow.h>
+#include <gtkmm/box.h>
-#include "gtkmm/treestore.h"
-#include "gtkmm/treeview.h"
+#include <gtkmm/treestore.h>
+#include <gtkmm/treeview.h>
#include "textwidget.h"
#include <stdio.h>
diff --git a/demos/gtk-demo/example_builder.cc b/demos/gtk-demo/example_builder.cc
index 1062572..27d6a2e 100644
--- a/demos/gtk-demo/example_builder.cc
+++ b/demos/gtk-demo/example_builder.cc
@@ -3,8 +3,8 @@
* Demonstrates an interface loaded from a XML description.
*/
-#include "gtkmm.h"
-#include "gtk/gtk.h"
+#include <gtkmm.h>
+#include <gtk/gtk.h>
#include <iostream> // For std::cout
class Example_Builder : public Gtk::Window
diff --git a/demos/gtk-demo/example_buttonbox.cc b/demos/gtk-demo/example_buttonbox.cc
index 2374c82..d1c7dc1 100644
--- a/demos/gtk-demo/example_buttonbox.cc
+++ b/demos/gtk-demo/example_buttonbox.cc
@@ -3,8 +3,8 @@
* The Button Box widgets are used to arrange buttons with padding.
*/
-#include "gtkmm.h"
-#include "gtk/gtk.h"
+#include <gtkmm.h>
+#include <gtk/gtk.h>
class Example_ButtonBox : public Gtk::Window
{
diff --git a/demos/gtk-demo/example_dialog.cc b/demos/gtk-demo/example_dialog.cc
index d63fa7d..6b75881 100644
--- a/demos/gtk-demo/example_dialog.cc
+++ b/demos/gtk-demo/example_dialog.cc
@@ -3,9 +3,9 @@
* Dialog widgets are used to pop up a transient window for user feedback.
*/
-#include "gtkmm.h"
-#include "gtk/gtk.h"
-#include "stdio.h"
+#include <gtkmm.h>
+#include <gtk/gtk.h>
+#include <stdio.h>
class Example_Dialog : public Gtk::Window
{
diff --git a/demos/gtk-demo/example_flowbox.cc b/demos/gtk-demo/example_flowbox.cc
index 5ce5dd5..507d0ac 100644
--- a/demos/gtk-demo/example_flowbox.cc
+++ b/demos/gtk-demo/example_flowbox.cc
@@ -6,7 +6,7 @@
* The children of a FlowBox are regular widgets
*/
-#include "gtkmm.h"
+#include <gtkmm.h>
class Example_FlowBox : public Gtk::Window
{
diff --git a/demos/gtk-demo/example_headerbar.cc b/demos/gtk-demo/example_headerbar.cc
index 9336a26..f46e216 100644
--- a/demos/gtk-demo/example_headerbar.cc
+++ b/demos/gtk-demo/example_headerbar.cc
@@ -9,7 +9,7 @@
* It is commonly used with Gtk::Window::set_titlebar()
*/
-#include "gtkmm.h"
+#include <gtkmm.h>
class Example_HeaderBar : public Gtk::Window
{
diff --git a/demos/gtk-demo/example_menus.cc b/demos/gtk-demo/example_menus.cc
index 41bf3f2..47bad09 100644
--- a/demos/gtk-demo/example_menus.cc
+++ b/demos/gtk-demo/example_menus.cc
@@ -23,7 +23,7 @@
* do that. There's a separate demo for Gtk::Builder.
*/
-#include "gtkmm.h"
+#include <gtkmm.h>
#include <stdio.h>
class Example_Menus : public Gtk::Window
diff --git a/demos/gtk-demo/example_overlay.cc b/demos/gtk-demo/example_overlay.cc
index d576bd7..4d7780d 100644
--- a/demos/gtk-demo/example_overlay.cc
+++ b/demos/gtk-demo/example_overlay.cc
@@ -3,7 +3,7 @@
* Stack widgets in static positions over a main widget.
*/
-#include "gtkmm.h"
+#include <gtkmm.h>
class Example_Overlay : public Gtk::Window
{
diff --git a/demos/gtk-demo/example_stack.cc b/demos/gtk-demo/example_stack.cc
index 6ca5934..ee4687e 100644
--- a/demos/gtk-demo/example_stack.cc
+++ b/demos/gtk-demo/example_stack.cc
@@ -6,7 +6,7 @@
* Gtk::StackSwitcher adds buttons to control which child is visible.
*/
-#include "gtkmm.h"
+#include <gtkmm.h>
class Example_Stack : public Gtk::Window
{
diff --git a/demos/gtk-demo/main.cc b/demos/gtk-demo/main.cc
index 83695ba..eba21fa 100644
--- a/demos/gtk-demo/main.cc
+++ b/demos/gtk-demo/main.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "gtkmm/main.h"
+#include <gtkmm/main.h>
#include "demowindow.h"
int main (int argc, char *argv[])
diff --git a/demos/gtk-demo/textwidget.cc b/demos/gtk-demo/textwidget.cc
index fccfdd0..ab6160e 100644
--- a/demos/gtk-demo/textwidget.cc
+++ b/demos/gtk-demo/textwidget.cc
@@ -19,7 +19,7 @@
#include <cstring>
#include "textwidget.h"
-#include "pangomm/fontdescription.h"
+#include <pangomm/fontdescription.h>
using std::strstr;
using std::strncmp;
diff --git a/demos/gtk-demo/textwidget.h b/demos/gtk-demo/textwidget.h
index 7ce6ae8..4868386 100644
--- a/demos/gtk-demo/textwidget.h
+++ b/demos/gtk-demo/textwidget.h
@@ -22,8 +22,8 @@
#ifndef _TEXTWIDGET_H
#define _TEXTWIDGET_H
-#include "gtkmm/scrolledwindow.h"
-#include "gtkmm/textview.h"
+#include <gtkmm/scrolledwindow.h>
+#include <gtkmm/textview.h>
class TextWidget : public Gtk::ScrolledWindow
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]