## Porting to a D-Bus-based Applet

## Introduction

Applets that were written for Gnome 2.x must we ported to be usable with Gnome 3 and the latest Panel Applet Library. First of all if the applet was written for Gnome 2.x then it will still use GTK+ 2 and must be migrated to GTK+ 3. Please refer to the GTK+ 2 to GTK+ 3 migration guide for further details.

Once the GTK+ 2 to 3 migration has been completed you must migrate the Panel Applet Library specific parts of the applet. During Gnome 2 times, the Panel Applet Library used LibBonobo, which was replaced by a DBUS based API during the switch to Panel Applet Library version 4.0. During the change to version 5.0 additional API have been replaced in particular the GConf related functions have been removed and were replaced by the GSettings API. Also GtkAction related functions have been replaced by the GAction API.

The following migration guide is based on the AppletsDBUsMigration guide in the GNOME Wiki. This guide was originally written for the migration of GNOME 2 applets to GNOME 3 and Panel Applet Library version 4.0. Based on the information of the original guide this section improves some of the explanations, adds references to other parts of this manual and has been updated for the migration to version 5.0 of this library.