[gnome-bluetooth] properties: Remove dead code
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] properties: Remove dead code
- Date: Mon, 21 Feb 2011 22:24:19 +0000 (UTC)
commit 8541a3dd581dda4faddc7fa7ff2f1554650cd7d9
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 21 19:54:26 2011 +0000
properties: Remove dead code
properties/Makefile.am | 2 --
properties/adapter.c | 5 ++---
properties/general.c | 48 ------------------------------------------------
properties/general.h | 26 --------------------------
4 files changed, 2 insertions(+), 79 deletions(-)
---
diff --git a/properties/Makefile.am b/properties/Makefile.am
index ef9dec1..3c197fb 100644
--- a/properties/Makefile.am
+++ b/properties/Makefile.am
@@ -5,8 +5,6 @@ ccpanels_LTLIBRARIES = libbluetooth.la
libbluetooth_la_SOURCES = \
cc-bluetooth-panel.c \
cc-bluetooth-panel.h \
- general.h \
- general.c \
adapter.h \
adapter.c
diff --git a/properties/adapter.c b/properties/adapter.c
index 3dd4969..9150c3b 100644
--- a/properties/adapter.c
+++ b/properties/adapter.c
@@ -39,7 +39,6 @@
#include <bluetooth-plugin-manager.h>
#include "adapter.h"
-#include "general.h"
static BluetoothClient *client;
static GtkTreeModel *adapter_model;
@@ -644,7 +643,7 @@ create_killswitch_page (GtkNotebook *notebook)
mainbox = gtk_vbox_new(FALSE, 24);
gtk_container_set_border_width(GTK_CONTAINER(mainbox), 12);
- label = create_label(_("Bluetooth is disabled"));
+ label = gtk_label_new(_("Bluetooth is disabled"));
gtk_box_pack_start(GTK_BOX(mainbox), label, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(mainbox), vbox, TRUE, TRUE, 0);
@@ -684,7 +683,7 @@ create_no_adapter_page (GtkNotebook *notebook, const char *filename)
mainbox = gtk_vbox_new(FALSE, 24);
gtk_container_set_border_width(GTK_CONTAINER(mainbox), 12);
- label = create_label(_("No Bluetooth adapters present"));
+ label = gtk_label_new(_("No Bluetooth adapters present"));
gtk_box_pack_start(GTK_BOX(mainbox), label, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(mainbox), vbox, TRUE, TRUE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]