diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-11-30 04:05:12 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-11-30 04:05:12 +0800 |
commit | a3b5135851621cb514e7708d11f9dc82f851ea5c (patch) | |
tree | b2b32cc424aeb8dc4d13263958511bf8ca92bc34 /sysutils/gnome-power-manager/files/patch-src_gpm-button.c | |
parent | 095098375dd5bb1d27d533ffc7dc27305e105c95 (diff) | |
download | marcuscom-ports-a3b5135851621cb514e7708d11f9dc82f851ea5c.tar marcuscom-ports-a3b5135851621cb514e7708d11f9dc82f851ea5c.tar.gz marcuscom-ports-a3b5135851621cb514e7708d11f9dc82f851ea5c.tar.bz2 marcuscom-ports-a3b5135851621cb514e7708d11f9dc82f851ea5c.tar.lz marcuscom-ports-a3b5135851621cb514e7708d11f9dc82f851ea5c.tar.xz marcuscom-ports-a3b5135851621cb514e7708d11f9dc82f851ea5c.tar.zst marcuscom-ports-a3b5135851621cb514e7708d11f9dc82f851ea5c.zip |
Remove these ports now that they are in the ports tree.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13266 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/gnome-power-manager/files/patch-src_gpm-button.c')
-rw-r--r-- | sysutils/gnome-power-manager/files/patch-src_gpm-button.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/sysutils/gnome-power-manager/files/patch-src_gpm-button.c b/sysutils/gnome-power-manager/files/patch-src_gpm-button.c deleted file mode 100644 index 7960d9f22..000000000 --- a/sysutils/gnome-power-manager/files/patch-src_gpm-button.c +++ /dev/null @@ -1,37 +0,0 @@ ---- src/gpm-button.c.orig 2009-04-19 02:17:58.000000000 -0400 -+++ src/gpm-button.c 2009-04-19 02:20:39.000000000 -0400 -@@ -494,6 +494,25 @@ hal_daemon_stop_cb (HalGManager *hal_man - } - } - -+/* -+ * hal_daemon_new_device_cb -+ **/ -+static void -+hal_daemon_new_device_cb (HalGManager *hal_manager, const gchar *udi, GpmButton *button) -+{ -+ gboolean is_button; -+ HalGDevice *device; -+ -+ device = hal_gdevice_new (); -+ hal_gdevice_set_udi (device, udi); -+ hal_gdevice_query_capability (device, "button", &is_button, NULL); -+ if (is_button == TRUE) { -+ egg_debug ("Watching %s", udi); -+ watch_add_button (button, udi); -+ } -+ g_object_unref (device); -+} -+ - /** - * gpm_button_init: - * @button: This class instance -@@ -543,6 +562,8 @@ gpm_button_init (GpmButton *button) - G_CALLBACK (hal_daemon_start_cb), button); - g_signal_connect (button->priv->hal_manager, "daemon-stop", - G_CALLBACK (hal_daemon_stop_cb), button); -+ g_signal_connect (button->priv->hal_manager, "device-added", -+ G_CALLBACK (hal_daemon_new_device_cb), button); - - button->priv->hal_devicestore = hal_gdevicestore_new (); - |