This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** example-3.c | |
* | |
* COMPILE | |
* | |
* gcc `pkg-config --cflags gtk4` -o example-3 example-3.c `pkg-config --libs gtk4` | |
* | |
* EXAMPLE | |
* | |
* ./example-3 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<interface> | |
<object id="window" class="GtkWindow"> | |
<property name="title">Grid</property> | |
<child> | |
<object id="grid" class="GtkGrid"> | |
<child> | |
<object id="button1" class="GtkButton"> | |
<property name="label">Button1</property> | |
<layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** tooltip.c | |
* | |
* COMPILE | |
* | |
* gcc `pkg-config --cflags gtk4` -o tooltip tooltip.c `pkg-config --libs gtk4` | |
* | |
* RUN | |
* | |
* ./tooltip | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install_virtualbox_on_debian_based_linux.sh | |
# Install VirtualBox Version 7.0 on Debian-based Linux | |
# Add a line for the oracle virtualbox debian package to /etc/apt/sources.list | |
# (you can use echo/append). Replace "jammy" with your distribution name. | |
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian jammy contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# create-windows-enterprise-vm-from-iso.sh | |
# Use VBoxManage to create a VirtualBox VM from an evaluation copy of Windows 10 | |
# Enterprise ISO. | |
# Follow the download instructions for your region at | |
# | |
# https://www.microsoft.com/en-us/evalcenter/download-windows-10-enterprise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* scrolledwindow.c | |
* | |
* Example of putting a GtkLabel in a GtkScrolledWindow. | |
* | |
* COMPILE | |
* | |
* gcc `pkg-config --cflags gtk4` -o scrolledwindow scrolledwindow.c `pkg-config --libs gtk4` | |
* | |
* RUN | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** infobar.c | |
* | |
* COMPILE | |
* | |
* gcc `pkg-config --cflags gtk4` -o infobar infobar.c `pkg-config --libs gtk4` | |
* | |
* RUN | |
* | |
* ./infobar | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Print metadata with VIPS | |
COMPILE | |
gcc -o metadata metadata.c `pkg-config --libs --cflags vips` | |
RUN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** popover.c | |
* | |
* COMPILE | |
* | |
* gcc `pkg-config --cflags gtk4` -o popover popover.c `pkg-config --libs gtk4` | |
* | |
* RUN | |
* | |
* ./popover | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Use VIPS to show the metadata of a test image in a non-editable GTK4 | |
popover text view. | |
COMPILE | |
gcc `pkg-config --cflags gtk4 vips` -o metadata-popover metadata-popover.c `pkg-config --libs gtk4 vips` | |
RUN |