summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk.c2
-rw-r--r--ui/librccui.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/ui/gtk.c b/ui/gtk.c
index 8a73d10..d35c513 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -152,7 +152,7 @@ int rccUiMenuConfigureWidget(rcc_ui_menu_context ctx) {
GtkTreeIter iter;
GtkAdjustment *adjustment;
#else /* GTK_MAJOR_VERSION < 3 */
- GtkWidget *list;
+ GtkWidget *list = NULL;
GtkObject *adjustment;
#endif /* GTK_MAJOR_VERSION */
diff --git a/ui/librccui.c b/ui/librccui.c
index 94c4ba0..c47e35d 100644
--- a/ui/librccui.c
+++ b/ui/librccui.c
@@ -602,14 +602,14 @@ int rccUiSetClassNames(rcc_ui_context ctx) {
int rccUiRestoreLanguage(rcc_ui_context ctx) {
unsigned int i;
- rcc_context rccctx;
- rcc_language_id language_id;
+// rcc_context rccctx;
+// rcc_language_id language_id;
if (!ctx) return -1;
- rccctx = ctx->rccctx;
+// rccctx = ctx->rccctx;
- language_id = (rcc_language_id)rccUiMenuGet(ctx->language);
+// language_id = (rcc_language_id)rccUiMenuGet(ctx->language);
rccUiMenuConfigureWidget(ctx->engine);
//rccUiMenuSet(ctx->engine, (rcc_ui_id)rccConfigGetSelectedEngine(config));
@@ -788,14 +788,14 @@ rcc_ui_frame rccUiGetLanguageFrame(rcc_ui_context ctx, rcc_ui_language_frame_nam
rcc_ui_frame rccUiGetCharsetsFrame(rcc_ui_context ctx, rcc_ui_charset_frame_name *name) {
unsigned int i;
const char *class_name;
- rcc_context rccctx;
+// rcc_context rccctx;
rcc_ui_frame_context framectx;
rcc_ui_frame frame;
rcc_ui_box charset;
if (!ctx) return NULL;
- rccctx = ctx->rccctx;
+// rccctx = ctx->rccctx;
framectx = ctx->charset_frame;
if (framectx->frame) return framectx->frame;