aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorUnknown <nyamatongwe@gmail.com>2013-06-18 17:27:11 +1000
committerUnknown <nyamatongwe@gmail.com>2013-06-18 17:27:11 +1000
commit882b9f1fb782dabf83a767baf2827a9c2780aab2 (patch)
treedb79e7b8496a89768d3d8403c5ad0b4162608c89
parentaf990b1bab20dc44269a828d35179aec4c2f38bd (diff)
downloadscintilla-mirror-882b9f1fb782dabf83a767baf2827a9c2780aab2.tar.gz
Renaming variables to explain their role better.
-rw-r--r--gtk/ScintillaGTK.cxx38
1 files changed, 19 insertions, 19 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 2d82d5af6..5f596e84c 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -118,8 +118,8 @@ class ScintillaGTK : public ScintillaBase {
Window scrollbarh;
GtkAdjustment *adjustmentv;
GtkAdjustment *adjustmenth;
- int scrollBarWidth;
- int scrollBarHeight;
+ int verticalScrollBarWidth;
+ int horizontalScrollBarHeight;
SelectionText primary;
@@ -356,7 +356,7 @@ static ScintillaGTK *ScintillaFromWidget(GtkWidget *widget) {
ScintillaGTK::ScintillaGTK(_ScintillaObject *sci_) :
adjustmentv(0), adjustmenth(0),
- scrollBarWidth(30), scrollBarHeight(30),
+ verticalScrollBarWidth(30), horizontalScrollBarHeight(30),
evbtn(0), capturedMouse(false), dragWasDropped(false),
lastKey(0), rectangularSelectionModifier(SCMOD_CTRL), parentClass(0),
im_context(NULL),
@@ -1093,9 +1093,9 @@ void ScintillaGTK::FullPaint() {
PRectangle ScintillaGTK::GetClientRectangle() {
PRectangle rc = wMain.GetClientPosition();
if (verticalScrollBarVisible)
- rc.right -= scrollBarWidth;
+ rc.right -= verticalScrollBarWidth;
if (horizontalScrollBarVisible && (wrapState == eWrapNone))
- rc.bottom -= scrollBarHeight;
+ rc.bottom -= horizontalScrollBarHeight;
// Move to origin
rc.right -= rc.left;
rc.bottom -= rc.top;
@@ -1682,12 +1682,12 @@ void ScintillaGTK::Resize(int width, int height) {
#if GTK_CHECK_VERSION(3,0,0)
GtkRequisition requisition;
gtk_widget_get_requisition(PWidget(scrollbarv), &requisition);
- scrollBarWidth = requisition.width;
+ verticalScrollBarWidth = requisition.width;
gtk_widget_get_requisition(PWidget(scrollbarh), &requisition);
- scrollBarHeight = requisition.height;
+ horizontalScrollBarHeight = requisition.height;
#else
- scrollBarWidth = GTK_WIDGET(PWidget(scrollbarv))->requisition.width;
- scrollBarHeight = GTK_WIDGET(PWidget(scrollbarh))->requisition.height;
+ verticalScrollBarWidth = GTK_WIDGET(PWidget(scrollbarv))->requisition.width;
+ horizontalScrollBarHeight = GTK_WIDGET(PWidget(scrollbarh))->requisition.height;
#endif
// These allocations should never produce negative sizes as they would wrap around to huge
@@ -1698,25 +1698,25 @@ void ScintillaGTK::Resize(int width, int height) {
if (showSBHorizontal) {
gtk_widget_show(GTK_WIDGET(PWidget(scrollbarh)));
alloc.x = 0;
- alloc.y = height - scrollBarHeight;
- alloc.width = Platform::Maximum(1, width - scrollBarWidth);
- alloc.height = scrollBarHeight;
+ alloc.y = height - horizontalScrollBarHeight;
+ alloc.width = Platform::Maximum(1, width - verticalScrollBarWidth);
+ alloc.height = horizontalScrollBarHeight;
gtk_widget_size_allocate(GTK_WIDGET(PWidget(scrollbarh)), &alloc);
} else {
gtk_widget_hide(GTK_WIDGET(PWidget(scrollbarh)));
- scrollBarHeight = 0; // in case horizontalScrollBarVisible is true.
+ horizontalScrollBarHeight = 0; // in case horizontalScrollBarVisible is true.
}
if (verticalScrollBarVisible) {
gtk_widget_show(GTK_WIDGET(PWidget(scrollbarv)));
- alloc.x = width - scrollBarWidth;
+ alloc.x = width - verticalScrollBarWidth;
alloc.y = 0;
- alloc.width = scrollBarWidth;
- alloc.height = Platform::Maximum(1, height - scrollBarHeight);
+ alloc.width = verticalScrollBarWidth;
+ alloc.height = Platform::Maximum(1, height - horizontalScrollBarHeight);
gtk_widget_size_allocate(GTK_WIDGET(PWidget(scrollbarv)), &alloc);
} else {
gtk_widget_hide(GTK_WIDGET(PWidget(scrollbarv)));
- scrollBarWidth = 0;
+ verticalScrollBarWidth = 0;
}
if (IS_WIDGET_MAPPED(PWidget(wMain))) {
ChangeSize();
@@ -1724,8 +1724,8 @@ void ScintillaGTK::Resize(int width, int height) {
alloc.x = 0;
alloc.y = 0;
- alloc.width = Platform::Maximum(1, width - scrollBarWidth);
- alloc.height = Platform::Maximum(1, height - scrollBarHeight);
+ alloc.width = Platform::Maximum(1, width - verticalScrollBarWidth);
+ alloc.height = Platform::Maximum(1, height - horizontalScrollBarHeight);
gtk_widget_size_allocate(GTK_WIDGET(PWidget(wText)), &alloc);
}