[dasher: 139/217] Removed unused gtk_dasher_control_ functions
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher: 139/217] Removed unused gtk_dasher_control_ functions
- Date: Sat, 27 Feb 2016 12:12:00 +0000 (UTC)
commit b1a3e609930086412658b9614b8d6947c0a9117e
Author: ipomoena <amajorek google com>
Date: Wed Dec 9 16:59:22 2015 -0800
Removed unused gtk_dasher_control_ functions
Src/Gtk2/GtkDasherControl.cpp | 82 -----------------------------------------
Src/Gtk2/GtkDasherControl.h | 14 -------
2 files changed, 0 insertions(+), 96 deletions(-)
---
diff --git a/Src/Gtk2/GtkDasherControl.cpp b/Src/Gtk2/GtkDasherControl.cpp
index 6d6ca2b..2f26e21 100644
--- a/Src/Gtk2/GtkDasherControl.cpp
+++ b/Src/Gtk2/GtkDasherControl.cpp
@@ -108,8 +108,6 @@ gtk_dasher_control_class_init(GtkDasherControlClass *pClass) {
pClass->dasher_request_settings = NULL;
pClass->dasher_lock = NULL;
pClass->dasher_message = NULL;
- // pClass->key_press_event = gtk_dasher_control_default_key_press_handler;
- // pClass->key_release_event = gtk_dasher_control_default_key_release_handler;
}
static void
@@ -117,8 +115,6 @@ gtk_dasher_control_init(GtkDasherControl *pDasherControl) {
GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pDasherControl);
pPrivate->pControl = new CDasherControl(&(pDasherControl->box), pDasherControl,
DasherAppSettings::Get()->GetStore());
-// g_signal_connect(G_OBJECT(pDasherControl), "key-press-event",
G_CALLBACK(gtk_dasher_control_default_key_press_handler), pPrivate->pControl);
-// g_signal_connect(G_OBJECT(pDasherControl), "key-release-event",
G_CALLBACK(gtk_dasher_control_default_key_release_handler), pPrivate->pControl);
}
void gtk_dasher_control_set_editor(GtkDasherControl *pDasherControl, DasherEditor *pEditor) {
@@ -174,48 +170,6 @@ gtk_dasher_control_new() {
return GTK_WIDGET(g_object_new(GTK_DASHER_TYPE_CONTROL, NULL));
}
-void
-gtk_dasher_control_set_parameter_bool(GtkDasherControl *pControl, int iParameter, bool bValue) {
- GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- pPrivate->pControl->SetBoolParameter(iParameter, bValue);
-}
-
-void
-gtk_dasher_control_set_parameter_long(GtkDasherControl *pControl, int iParameter, long lValue) {
- GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- pPrivate->pControl->SetLongParameter(iParameter, lValue);
-}
-
-void
-gtk_dasher_control_set_parameter_string(GtkDasherControl *pControl, int iParameter, const char *szValue) {
- GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- pPrivate->pControl->SetStringParameter(iParameter, szValue);
-}
-
-bool
-gtk_dasher_control_get_parameter_bool(GtkDasherControl *pControl, int iParameter) {
- GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- return pPrivate->pControl->GetBoolParameter(iParameter);
-}
-
-long
-gtk_dasher_control_get_parameter_long(GtkDasherControl *pControl, int iParameter) {
- GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- return pPrivate->pControl->GetLongParameter(iParameter);
-}
-
-void
-gtk_dasher_control_reset_parameter(GtkDasherControl *pControl, int iParameter) {
- GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- pPrivate->pControl->ResetParameter(iParameter);
-}
-
-const char *
-gtk_dasher_control_get_parameter_string(GtkDasherControl *pControl, int iParameter) {
- GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- return pPrivate->pControl->GetStringParameter(iParameter).c_str();
-}
-
GArray *
gtk_dasher_control_get_allowed_values(GtkDasherControl *pControl, int iParameter) {
GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
@@ -287,44 +241,8 @@ gtk_dasher_control_external_key_up(GtkDasherControl *pControl, int iKeyVal) {
pPrivate->pControl->ExternalKeyUp(iKeyVal);
}
-void
-gtk_dasher_user_log_new_trial(GtkDasherControl * pControl) {
- GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- pPrivate->pControl->UserLogNewTrial();
-}
-
-void
-gtk_dasher_control_set_focus(GtkDasherControl * pControl){
- GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- pPrivate->pControl->SetFocus();
-}
-
-// gboolean
-// gtk_dasher_control_default_key_press_handler(GtkDasherControl *pDasherControl, GdkEventKey *pEvent,
gpointer data){
-// static_cast<CDasherControl *>(data)->KeyPressEvent(pEvent);
-// return FALSE;
-// }
-
-// gboolean
-// gtk_dasher_control_default_key_release_handler(GtkDasherControl *pDasherControl, GdkEventKey *pEvent,
gpointer data) {
-// static_cast<CDasherControl *>(data)->KeyReleaseEvent(pEvent);
-// return FALSE;
-// }
-
gboolean
gtk_dasher_control_get_module_settings(GtkDasherControl * pControl, const gchar *szModule, SModuleSettings
**pSettings, gint *iCount) {
GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
return pPrivate->pControl->GetModuleSettings(szModule, pSettings, iCount);
}
-
-void
-gtk_dasher_control_force_pause(GtkDasherControl *pControl) {
- GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- pPrivate->pControl->GetActiveInputMethod()->pause();
-}
-
-const char *
-gtk_dasher_control_cl_set(GtkDasherControl *pControl, const gchar *szKey, const gchar *szValue) {
- GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- return pPrivate->pControl->ClSet(szKey, szValue);
-}
diff --git a/Src/Gtk2/GtkDasherControl.h b/Src/Gtk2/GtkDasherControl.h
index 73b4c43..345082c 100644
--- a/Src/Gtk2/GtkDasherControl.h
+++ b/Src/Gtk2/GtkDasherControl.h
@@ -59,16 +59,6 @@ GType gtk_dasher_control_get_type();
G_END_DECLS
-gboolean gtk_dasher_control_default_key_press_handler(GtkDasherControl *pDasherControl, GdkEventKey *pEvent,
gpointer data);
-gboolean gtk_dasher_control_default_key_release_handler(GtkDasherControl *pDasherControl, GdkEventKey
*pEvent, gpointer data);
-
-void gtk_dasher_control_set_parameter_bool(GtkDasherControl * pControl, int iParameter, bool bValue);
-void gtk_dasher_control_set_parameter_long(GtkDasherControl * pControl, int iParameter, long lValue);
-void gtk_dasher_control_set_parameter_string(GtkDasherControl * pControl, int iParameter, const char
*szValue);
-bool gtk_dasher_control_get_parameter_bool(GtkDasherControl * pControl, int iParameter);
-long gtk_dasher_control_get_parameter_long(GtkDasherControl * pControl, int iParameter);
-void gtk_dasher_control_reset_parameter(GtkDasherControl * pControl, int iParameter);
-const char *gtk_dasher_control_get_parameter_string(GtkDasherControl * pControl, int iParameter);
GArray *gtk_dasher_control_get_allowed_values(GtkDasherControl * pControl, int iParameter);
void gtk_dasher_control_train(GtkDasherControl * pControl, const gchar * szFilename);
void gtk_dasher_control_set_editor(GtkDasherControl *pControl, DasherEditor *pEditor);
@@ -89,9 +79,5 @@ GtkTextBuffer *gtk_dasher_control_game_text_buffer(GtkDasherControl *pPrivate);
//Calls EnterGameMode or LeaveGameMode, as appropriate, on the underlying CDasherControl
void gtk_dasher_control_set_game_mode(GtkDasherControl *pControl, bool bOn);
bool gtk_dasher_control_get_game_mode(GtkDasherControl *pControl);
-void gtk_dasher_control_force_pause(GtkDasherControl *pControl);
-void gtk_dasher_user_log_new_trial(GtkDasherControl * pControl);
-void gtk_dasher_control_set_focus(GtkDasherControl * pControl);
-const gchar* gtk_dasher_control_cl_set(GtkDasherControl *pControl, const gchar *szKey, const gchar *szValue);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]