Skip to content

Commit

Permalink
Some changes in GdkEvent and start to provide GtkSourceView as parame…
Browse files Browse the repository at this point in the history
…ter for compiler
  • Loading branch information
scorninpc committed Jul 5, 2019
1 parent 820e7d2 commit 6d75df1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ LINKER = g++
GTKFLAGS = `pkg-config --cflags gtk+-3.0 gladeui-2.0 gtksourceview-3.0`
GTKLIBS = `pkg-config --libs gtk+-3.0 gladeui-2.0 gtksourceview-3.0`

COMPILER_FLAGS = -Wall -c -std=c++11 -fpic -o
COMPILER_FLAGS = -DWITH_GTKSOURCEVIEW=1 -Wall -c -std=c++11 -fpic -o
LINKER_FLAGS = -shared ${GTKLIBS}
LINKER_DEPENDENCIES = -lphpcpp

Expand Down
7 changes: 5 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3095,6 +3095,7 @@ extern "C"
gtkarrowtype.constant("RIGHT", (int)GTK_ARROW_RIGHT);
gtkarrowtype.constant("NONE", (int)GTK_ARROW_NONE);

#ifdef WITH_GTKSOURCEVIEW

// GtkSourceSmartHomeEndType
Php::Class<GtkSourceSmartHomeEndType_> gtksourcesmarthomeendtype("GtkSourceSmartHomeEndType");
Expand Down Expand Up @@ -3159,7 +3160,7 @@ extern "C"
gtksourceview.method<&GtkSourceView_::get_gutter>("get_gutter");
gtksourceview.method<&GtkSourceView_::set_background_pattern>("set_background_pattern");
gtksourceview.method<&GtkSourceView_::get_background_pattern>("get_background_pattern");
#endif



Expand Down Expand Up @@ -3370,12 +3371,14 @@ extern "C"

extension.add(std::move(gtkarrowtype));

#ifdef WITH_GTKSOURCEVIEW
// GtkSourceView
extension.add(std::move(gtksourcesmarthomeendtype));
extension.add(std::move(gtksourcedrawspacesflags));
extension.add(std::move(gtksourcebackgroundpatterntype));
extension.add(std::move(gtksourceview));

#endif

// return the extension
return extension;
}
Expand Down
4 changes: 2 additions & 2 deletions main.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@
#include "src/GtkArrowType.h"
// #include "src/GtkMenuButton.h"

#ifdef WITH_GTKSOURCEVIEW
#include "src/GtkSourceSmartHomeEndType.h"
#include "src/GtkSourceDrawSpacesFlags.h"
#include "src/GtkSourceBackgroundPatternType.h"
#include "src/GtkSourceView.h"
#endif


GValue phpgtk_get_gvalue(Php::Value phpgtk_value, GType type_column);
Expand Down
2 changes: 0 additions & 2 deletions src/GdkEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
* Populate GdkEvent to PHPGTK::GDKEVENT
*/
void populate(GdkEvent *event);

Php::Value __get(const Php::Value &name);
};

#endif

0 comments on commit 6d75df1

Please sign in to comment.