Skip to content

Instantly share code, notes, and snippets.

View c0r0n3r's full-sized avatar

Szilárd Pfeiffer c0r0n3r

View GitHub Profile
GtkWidget* gtk_window_new (GtkWindowType type);
explicit Window (WindowType type = WINDOW_TOPLEVEL);
class Window(Gtk.Window):
def __init__(self, type=Gtk.WindowType.TOPLEVEL, **kwds):
GtkWidget*
gtk_dialog_new_with_buttons (
const gchar *title,
GtkWindow *parent,
GtkDialogFlags flags,
const gchar *first_button_text,
...);
Gtk::Dialog::Dialog (
const Glib::ustring & title,
Gtk::Window& parent,
bool modal = false,
bool use_separator = false);
class Dialog(Gtk.Dialog, Container):
def __init__(self,
title=None,
parent=None,
flags=0,
buttons=None,
_buttons_property=None,
**kwars):
#include <gtk/gtk.h>
int
main(int argc, char *argv[])
{
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
#include <gtkmm.h>
int
main(int argc, char *argv[])
{
Gtk::Main kit(argc, argv);
Gtk::Window window;
from gi.repository import Gtk #*@ \label{gtkminimalpy:include} @*
if __name__ == "__main__":
window = Gtk.Window() #*@ \label{gtkminimalpy:windownew} @*
GtkWidget*
gtk_dialog_add_button (GtkDialog *dialog,
const gchar *button_text,
gint response_id);
void
gtk_dialog_add_buttons (GtkDialog *dialog,
const gchar *first_button_text,
...);