Skip to content

Instantly share code, notes, and snippets.

@lazywithclass
Created October 10, 2012 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lazywithclass/3866869 to your computer and use it in GitHub Desktop.
Save lazywithclass/3866869 to your computer and use it in GitHub Desktop.
Reload gtk (I suppose)
#!/usr/bin/perl
# License: Same as GTK2
use strict;
use warnings;
use Gtk2 '-init';
my $event = Gtk2::Gdk::Event->new("GDK_CLIENT_EVENT");
$event->send_event(1);
$event->window(undef);
$event->message_type(Gtk2::Gdk::Atom->intern("_GTK_READ_RCFILES", 0));
$event->data_format(8);
Gtk2::Gdk::Event->send_clientmessage_toall($event);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment