Category Archives: Uncategorized

GTK+ Widget Size

Height-for-width Geometry Management

GtkWidget

gtk_widget_set_size_request()
gtk_widget_size_request() (deprecated)
gtk_widget_get_preferred_size()
gtk_distribute_natural_allocation()
struct GtkRequestedSize
gtk_widget_get_allocation()
gtk_widget_size_allocate()

GtkWindow

gtk_window_set_default_size()
tk_window_set_default_geometry()
gtk_window_set_geometry_hints()

Forum

Totally fed-up with get Gtk widget height and width
Maximum Size?
GTK Widget Size (actual size, not requested size)

Set Windows Geometry

Gtk: Forbid vertical resize of GtkWindow
How to reset geometry hints made with gtk_window_set_geometry_hints
struct GdkGeometry
enum GdkWindowHints

GTK+ Resource Files

#include <gtk/gtk.h>

int
main(gint argc, gchar **argv)
{
    GtkWidget *window;
    GtkPaned  *paned;

    gtk_init(&argc, &argv);

    gtk_rc_parse_string("style 'my_style' {\n"
                        "    GtkPaned::handle-size = 200\n"
                        " }\n"
                        "widget '*' style 'my_style'");

    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);

    paned = (GtkPaned *) gtk_hpaned_new();
    gtk_paned_add1(paned, gtk_label_new("left"));
    gtk_paned_add2(paned, gtk_label_new("right"));

    gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(paned));

    gtk_widget_show_all(window);
    gtk_main();

    return 0;
}

change gtk.Paned handle size

Asterisk: Configure PBX

Official Documentation

Getting Started
Stopping and Restarting Asterisk

Das Asterisk Buch

15.3. Datenbankzugriff vom CLI
7.3. extensions.conf <-> extensions.ael

Anhang C. Applikationen im Dialplan
C.107. NoOp()
C.65. Goto()

Anhang D. Funktionen im Dialplan
D.8. CALLERID()
D.17. DB()
D.19. DB_EXISTS()
D.53. ISNULL()
C.29. ISNULL() (English)

Non-Official Documentation

Asterisk erster Wählplan
Wählplanerweiterungen für die ISDN-Anbindungen
Asterisk Anbindung ans ISDN
Using the Asterisk Database (AstDB)
Set channel variable in sip.conf?
Asterisk cmd Goto

Alter Eintrag

Asterisk erster Wählplan

GObject & GTK+3.0

General

GNOME Developer Center
GNOME Developer Platform Demos

GTK+-3.0

Documentation

Introduction to GObject
G_DEFINE_TYPE(), G_DEFINE_TYPE_EXTENDED()

Tutorials

Getting Started with GTK+ (with Cairo)
ZetCode: GTK+ tutorial

Bits and pieces: Tips and tutorials related to GTK+ toolkit

Migrating from other containers to GtkGrid
How to set the color of a widget
PyGTK: Systematic Testing of a GTK Graphical User Interface (PDF)
GTK+ 2.0 Tutorial (PDF)
GTK+ 2.0 Tutorial
C-Programmierung unter Linux & GTK+ (deprecated)

Roger Leigh

An introduction to programming with GTK+ and Glade in ISO C, ISO C++ and Python 1.4.0
An introduction to programming with GTK+ and Glade in ISO C, ISO C++ and Python 1.3.1
codelibre.net: Roger Leigh Home
debian.org: Roger Leigh Home

Forum Topics

GtkUIManager: <menu> under <toolitem> (toolbar)
How to understand Gtk+ properties and make GtkGrid expand to available area?
How I can maximize GtkGrid to fill the entire GtkWindow?
How to change GtkWidget background in GTK3?
GTK3 with External CSS
Trying to populate a GtkComboBox with model in C
How to make a Gtk+ widget inside a GtkScrolledWindow to expand when packed into a GtkPane?

gtkmm 3

Programming with gtkmm 3
Programming with gtkmm 3: Main Menu example
GTK+ Programming in C++ with XFC
XFC: Adding a statusbar