-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0918f92
Showing
17 changed files
with
5,466 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
ACLOCAL_AMFLAGS = -I m4 --install | ||
EXTRA_DIST = m4/NOTES | ||
|
||
noinst_PROGRAMS = gtktestapp | ||
gtktestapp_SOURCES = src/gtk_test_app.c | ||
gtktestapp_CPPFLAGS = $(GTK_CFLAGS) | ||
gtktestapp_LDADD = $(GTK_LIBS) | ||
|
||
|
||
gtkmoduledir = @GTK_MODULE_DIR@ | ||
gtkmodule_LTLIBRARIES = libgtkneofix-gtk-module.la | ||
|
||
libgtkneofix_gtk_module_la_SOURCES = src/gtk_module.c | ||
libgtkneofix_gtk_module_la_CFLAGS = $(GTK_CFLAGS) | ||
libgtkneofix_gtk_module_la_LIBADD = $(GTK_LIBS) | ||
libgtkneofix_gtk_module_la_LDFLAGS = -avoid-version -module -export-dynamic | ||
|
||
|
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
gtk_main_do_events | ||
gtk_propagate_event ?? | ||
|
||
|
||
|
||
gdkevents.c | ||
gdk_event_handler_set // GTK does: gdk_event_handler_set(gtk_main_do_events) | ||
// @ gtkmain.c:680 do_pre_parse_initialization(): | ||
// ... gdk_event_handler_set ((GdkEventFunc)gtk_main_do_event, NULL, NULL); | ||
|
||
|
||
gtkdialog.c | ||
gtk_dialog_close // possibility to create own events and propagate them through the usual event handling | ||
|
||
|
||
|
||
STEPS: | ||
mkdir -p ~/tmp/sublpatch | ||
cd ~/tmp/sublpatch | ||
apt-get source libgtk2.0-0 | ||
sudo apt-get build-dep libgtk2.0-0 | ||
cd gtk+2.0-* | ||
./configure | ||
make | ||
|
||
|
||
gtkmain.c:1054 gtk_init() | ||
|
||
LD_LIBRARY_PATH=/home/daniel/tmp/gtk/gtk+2.0-2.24.23/gtk/.libs:$LD_LIBRARY_PATH GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0 sublime_text -w | ||
|
||
|
||
./gtktestapp --gtk-module $PWD/.libs/libgtkneofix-gtk-module.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
|
||
# This is David A. Wheeler's template for configure.ac, showing | ||
# some suggested options and setups. | ||
|
||
# Process this file with autoconf to produce a configure script. | ||
|
||
# Initialize autoconf. | ||
AC_INIT([gtkneofix], [0.01], [https://github.com/Phaiax/gtkneofix/issues], [gtkneofix], [https://github.com/Phaiax/gtkneofix]) | ||
|
||
AC_SUBST(LIBGTKNEOFIX_GTK_VERSION_INFO, [1:9:1]) | ||
|
||
|
||
# Force autoconf to be at least this version number: | ||
AC_PREREQ([2.68]) | ||
|
||
# Safety check - list a source file that wouldn't be in other directories: | ||
AC_CONFIG_SRCDIR([src/gtk_module.c]) | ||
# Put configuration results here, so we can easily #include them: | ||
AC_CONFIG_HEADERS([config.h]) | ||
# Put autotools auxiliary files in subdirectories to reduce clutter: | ||
AC_CONFIG_AUX_DIR([build-aux]) | ||
AC_CONFIG_MACRO_DIR([m4]) | ||
|
||
# Enable "automake" to simplify creating makefiles: | ||
AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror]) | ||
AC_CONFIG_FILES([Makefile]) | ||
|
||
# Checks for programs, e.g., AC_PROG_CC | ||
AC_PROG_CC | ||
AC_PROG_CXX | ||
|
||
AC_PROG_MKDIR_P | ||
AC_PROG_LN_S | ||
AM_PROG_AR | ||
AC_PROG_LIBTOOL | ||
AC_PROG_INSTALL | ||
|
||
|
||
# Checks for libraries. | ||
|
||
LT_PREREQ(2.2) | ||
LT_INIT([dlopen win32-dll disable-static]) | ||
|
||
|
||
### GTK (optional) #### | ||
|
||
AC_ARG_WITH([gtk], [AS_HELP_STRING([--with-gtk=2|3], [GTK+ version [default=3]])], [], [with_gtk=3]) | ||
AC_ARG_WITH([gtk-libdir], [AS_HELP_STRING([--with-gtk-libdir=DIR], [GTK+ library directory [default=`pkg-config --variable=libdir gtk+-3.0`]])], [], [with_gtk_libdir=`pkg-config --variable=libdir gtk+-\$with_gtk.0`]) | ||
AC_ARG_WITH([gtk-module-dir], [AS_HELP_STRING([--with-gtk-module-dir=DIR], [GTK+ module directory [default=`pkg-config --variable=libdir gtk+-3.0`/gtk-3.0/modules]])], [], [with_gtk_module_dir=$with_gtk_libdir/gtk-$with_gtk.0/modules]) | ||
|
||
|
||
AC_SUBST([GTK_VERSION], [$with_gtk]) | ||
AC_SUBST([GTK_MODULE_DIR], [$with_gtk_module_dir]) | ||
|
||
AM_CONDITIONAL([GTK3], [test GTK$with_gtk = GTK3]) | ||
|
||
PKG_CHECK_MODULES([GTK], [gtk+-$with_gtk.0]) | ||
AC_SUBST([GTK_CFLAGS]) | ||
AC_SUBST([GTK_LIBS]) | ||
|
||
|
||
# Checks for header files. | ||
|
||
# Checks for typedefs, structures, and compiler characteristics. | ||
|
||
# Checks for library functions. | ||
|
||
# Do final output. | ||
AC_OUTPUT |
Empty file.
Oops, something went wrong.