Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 28th, 2020 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <gtk/gtk.h>
  2.  
  3. static void destroy (GtkWidget *window, gpointer data);
  4.  
  5. int main (int argc, char *argv[])
  6. {
  7.         GtkWidget *window, *button;
  8.  
  9.         window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  10.         gtk_window_set_title (GTK_WINDOW (window), "Show Images");
  11.         gtk_window_maximize (GTK_WINDOW (window));
  12.         g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (destroy), NULL);
  13.        
  14.         GtkCssProvider *css_provider = gtk_css_provider_new();
  15.         gtk_css_provider_load_from_file(css_provider, g_file_new_from_file("style.css"), NULL);
  16.         g_object_unref (css_provider);
  17.            
  18.         fixed = gtk_fixed_new();
  19.         gtk_container_add (GTK_CONTAINER (window), fixed);
  20.    
  21.         button = gtk_button_new_with_label("BUTTON");
  22.         gtk_fixed_put(GTK_FIXED(fixed), button, 120, 130;
  23.         gtk_widget_set_size_request(button, 25, 16);
  24.        
  25.         gtk_widget_show_all (window);
  26.         gtk_main ();
  27.         return 0;
  28. }
  29.  
  30. static void destroy (GtkWidget *window, gpointer data)
  31. {
  32.     gtk_main_quit ();
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top