This page provides you with a little help getting started with the new MongoDB C driver.
For more information on the C API, please refer to the online API Documentation for the C driver.
## 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. |
#include "foo-widget.h" | |
struct _FooWidget | |
{ | |
GtkBin parent_instance; | |
GtkLabel *label; | |
}; | |
G_DEFINE_TYPE (FooWidget, foo_widget, GTK_TYPE_BIN) |
#include <limits.h> | |
#include <pthread.h> | |
#include <stdlib.h> | |
typedef struct _queue_t queue_t; | |
typedef struct _queue_node_t queue_node_t; | |
struct _queue_node_t |
#include <dlfcn.h> | |
#include <stdio.h> | |
#include <asm/vsyscall.h> | |
#include <sys/auxv.h> | |
int (*test_getcpu) (unsigned *cpu, | |
unsigned *node, | |
void *cache); | |
void * |
using Gtk; | |
namespace Chimera | |
{ | |
public class ChimeraTab : Gtk.Bin | |
{ | |
ScrolledWindow scroller; | |
TextView text_view; | |
construct { |
This page provides you with a little help getting started with the new MongoDB C driver.
For more information on the C API, please refer to the online API Documentation for the C driver.
#include "dropline-status-icon.h" | |
G_DEFINE_TYPE(DroplineStatusIcon, dropline_status_icon, GTK_TYPE_STATUS_ICON) | |
struct _DroplineStatusIconPrivate | |
{ | |
/* | |
* XXX: Put stuff you need during runtime here. | |
*/ | |
gpointer dummy; |
[default] | |
name=Default | |
config-opts= | |
run-opts= | |
prefix=/opt/gnome | |
app-id= | |
postbuild= | |
prebuild=scons | |
default=true |
#include <stdio.h> | |
#include <assert.h> | |
typedef struct | |
{ | |
double r; | |
double g; | |
double b; | |
double a; | |
} GdkRGBA; |
#!/usr/bin/env bash | |
sudo apt-get install gcc dpkg-dev cdbs automake autoconf libtool make libssl-dev libsasl2-dev git python-lxml pkg-config | |
git clone git://github.com/mongodb/mongo-c-driver.git | |
cd mongo-c-driver | |
./build/mci.sh --notest | |
cd .. | |
sudo dpkg --install libmongoc-*.deb libbson-*.deb |