Advertisement
mdgaziur001

appinfomonitor

Jul 8th, 2022
943
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <gtk/gtk.h>
  2.  
  3. static void changed(GAppInfoMonitor *monitor) {
  4.     printf("Info changed");
  5. }
  6.  
  7. int main(int argc, char **argv) {
  8.     gtk_init(&argc, &argv);
  9.  
  10.     GAppInfoMonitor *monitor = g_app_info_monitor_get();
  11.     g_signal_connect(monitor, "changed", G_CALLBACK(changed), NULL);
  12.     g_object_unref(monitor);
  13.  
  14.     gtk_main();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement