keypressdetails plugin for gedit

Hi friends,

After a small gap, I’m back with a very interesting post, Atlast I created my own plugin for gedit, Its a plugin which will tell some details about the pressed keys.

I’m learning Gtk+ from the last september, I feel, If I came to know about Gtk, when I am In my college, I would have became very good now, But anyway, I’m learning in my part time, Now I’m able to understand something about GObject and all its greatness.

So here is my simple plugin, I attached a source tarball, which contains source file and a binary tarball with this post. Hope it will work with your machines gedit. Here is the steps to compile gedit source tarball.

keypressdetails_source.tar.bz2
keypressdetails_binary.tar.bz2

1. checkout current gedit svn.

$ svn co http://svn.gnome.org/svn/gedit/trunk gedit

2. Untar, keypressdetails_source.tar.bzip2 tarball and copy the keypressdetails directory to plugins directory under gedit source directory. Now Add keypressdetails directory to DIST_SUBDIRS and SUBDIRS in plugins/Makefile.am. Also add ‘plugins/keypressdetails/Makefile’ to AC_CONFIG_FILES in configure.ac. Then as usual,

$ ./autogen.sh
$ cd plugins/keypressdetails
$ make
$ make install DESTDIR="${HOME}"

3. Now you will see the libkeypressdetails.la, libkeypressdetails.so and keypressdetails.gedit-plugin files in your home directory. Copy these files to gedit’s plugins directory, (in ubuntu, /usr/lib/gedit-2/plugins). When you open gedit, it will automatically pick keypressdetails plugin. You can see it in edit->preferences->plugins. Select keypressdetails, and you will have one more option as Tools->keypressdetails.

Here is some screenshots,

gedit_peferences_snapshot

screenshot-keypressdetails

screenshot-keypressdetails-1

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s