Search
 
SCRIPT & CODE EXAMPLE
 

C

create a gtk window

#include <gtk/gtk.h>

static void
activate (GtkApplication* app,
          gpointer        user_data)
{
  GtkWidget *window;

  window = gtk_application_window_new (app);
  gtk_window_set_title (GTK_WINDOW (window), "Window");
  gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
  gtk_widget_show (window);
}

int
main (int    argc,
      char **argv)
{
  GtkApplication *app;
  int status;

  app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
  g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
  status = g_application_run (G_APPLICATION (app), argc, argv);
  g_object_unref (app);

  return status;
}
Comment

PREVIOUS NEXT
Code Example
C :: install lib juicyPixel in haskell 
C :: how to change the mapping from jkil to wasd in vim 
C :: divide a linked list into three parts based on their position mod 3. 
C :: Combine two sentences into one langage c 
C :: solidity signature r s v 
C :: %s and string pointer 
C :: c enums 
C :: call cuda kernel from c parameters 
C :: Print Characters 
C :: cmake boilerplate for visual studio c++ project 
C :: online c compiler for graphics 
C :: pebble scripting Boolean expression 
C :: float para numeros aleatorios em c 
C :: gnuplot rectangle border color 
C :: cut first part of string c 
C :: Integer Input/Output 
C :: manasa loves maths solution IN C 
C :: Laravel installation on Linux 
C :: too many arg 
C :: function of science writing of a number 
C :: Returns number of values 
C :: nosql injection 
C :: C printf Declaration 
C :: rpobleme valgrind 
Dart :: flutter transparent appbar 
Dart :: flutter rounded ElevatedButton 
Dart :: showdialog with builder flutter 
Dart :: dart timer delay 
Dart :: flutter analyze apk size 
Dart :: flutter flotingactionbutton 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =