Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <gtk/gtk.h>
- static void changed(GAppInfoMonitor *monitor) {
- printf("Info changed");
- }
- int main(int argc, char **argv) {
- gtk_init(&argc, &argv);
- GAppInfoMonitor *monitor = g_app_info_monitor_get();
- g_signal_connect(monitor, "changed", G_CALLBACK(changed), NULL);
- g_object_unref(monitor);
- gtk_main();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement