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
## NOTE ## | |
If you just need to build, and you don't need to hack on GTK 4 itself, you can | |
probably just use brew. That is the simplest and fastest way to get started. | |
``` | |
brew install gtk4 | |
``` | |
At that point, /usr/local/bin/gtk4-demo is there, and all the others. |
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
[default] | |
name=Default | |
config-opts= | |
run-opts= | |
prefix=/opt/gnome | |
app-id= | |
postbuild= | |
prebuild=scons | |
default=true |
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
#include <stdio.h> | |
#include <assert.h> | |
typedef struct | |
{ | |
double r; | |
double g; | |
double b; | |
double a; | |
} GdkRGBA; |
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
#include "foo-widget.h" | |
struct _FooWidget | |
{ | |
GtkBin parent_instance; | |
GtkLabel *label; | |
}; | |
G_DEFINE_TYPE (FooWidget, foo_widget, GTK_TYPE_BIN) |
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
#include <gio/gio.h> | |
#include <stdlib.h> | |
#include <glib-unix.h> | |
#include <gio/gunixfdlist.h> | |
static GMainLoop *main_loop; | |
static guint exited_subscription; | |
static void | |
host_command_exited_cb (GDBusConnection *connection, |
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
if [ -n "$UNDER_JHBUILD" ]; then | |
export PS1="\e[44mjhbuild\e[0m \W\$ " | |
/opt/gnome/libexec/evolution-source-registry &>/dev/null & | |
/opt/gnome/libexec/evolution-calendar-factory &>/dev/null & | |
disown -a | |
fi | |
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
/* Documenting a module (generally a .c file) */ | |
/** | |
* SECTION:section-name | |
* @title: SectionName | |
* @short_description: Frobnicate foo | |
* | |
* Description of modules purpose and most likely used functions. | |
* |
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
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c | |
index e9860d7..395c919 100644 | |
--- a/gtk/gtktextview.c | |
+++ b/gtk/gtktextview.c | |
@@ -7711,7 +7711,7 @@ gtk_text_view_start_selection_drag (GtkTextView *text_view, | |
} | |
} | |
- gtk_text_buffer_select_range (buffer, &ins, &bound); | |
+ gtk_text_buffer_select_range (buffer, &bound, &ins); |
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
#include <dlfcn.h> | |
#include <stdio.h> | |
#include <asm/vsyscall.h> | |
#include <sys/auxv.h> | |
int (*test_getcpu) (unsigned *cpu, | |
unsigned *node, | |
void *cache); | |
void * |
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
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h | |
index e5ec4b2..080d61a 100644 | |
--- a/gdk/gdkinternals.h | |
+++ b/gdk/gdkinternals.h | |
@@ -211,7 +211,7 @@ struct _GdkWindow | |
gint8 toplevel_window_type; | |
GList *filters; | |
- GList *children; | |
+ GArrayList children; |
NewerOlder