Small cleanup where return variables were missing
This commit is contained in:
@@ -964,7 +964,9 @@ public:
|
|||||||
case 2: return "Depth";
|
case 2: return "Depth";
|
||||||
case 3: return "MTF";
|
case 3: return "MTF";
|
||||||
}
|
}
|
||||||
|
return"Normal";
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
PAAFModeInterpreter paAFModeInterpreter;
|
PAAFModeInterpreter paAFModeInterpreter;
|
||||||
|
|
||||||
|
@@ -120,6 +120,7 @@ bool SHCSelector::on_expose_event(GdkEventExpose* event) {
|
|||||||
cr->fill_preserve ();
|
cr->fill_preserve ();
|
||||||
cr->stroke ();
|
cr->stroke ();
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SHCSelector::on_button_press_event (GdkEventButton* event) {
|
bool SHCSelector::on_button_press_event (GdkEventButton* event) {
|
||||||
@@ -135,6 +136,7 @@ bool SHCSelector::on_button_press_event (GdkEventButton* event) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
queue_draw ();
|
queue_draw ();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SHCSelector::on_button_release_event (GdkEventButton* event) {
|
bool SHCSelector::on_button_release_event (GdkEventButton* event) {
|
||||||
@@ -143,6 +145,7 @@ bool SHCSelector::on_button_release_event (GdkEventButton* event) {
|
|||||||
movingPosition = -1;
|
movingPosition = -1;
|
||||||
queue_draw ();
|
queue_draw ();
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SHCSelector::on_motion_notify_event (GdkEventMotion* event) {
|
bool SHCSelector::on_motion_notify_event (GdkEventMotion* event) {
|
||||||
@@ -163,6 +166,7 @@ bool SHCSelector::on_motion_notify_event (GdkEventMotion* event) {
|
|||||||
cl->shcChanged ();
|
cl->shcChanged ();
|
||||||
queue_draw ();
|
queue_draw ();
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SHCSelector::styleChanged (const Glib::RefPtr<Gtk::Style>& style) {
|
void SHCSelector::styleChanged (const Glib::RefPtr<Gtk::Style>& style) {
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#include <thumbimageupdater.h>
|
#include <thumbimageupdater.h>
|
||||||
#include <gtkmm.h>
|
#include <gtkmm.h>
|
||||||
|
|
||||||
#define threadNum 8
|
#define threadNum 1
|
||||||
ThumbImageUpdater thumbImageUpdater;
|
ThumbImageUpdater thumbImageUpdater;
|
||||||
|
|
||||||
ThumbImageUpdater::ThumbImageUpdater ()
|
ThumbImageUpdater::ThumbImageUpdater ()
|
||||||
@@ -68,7 +68,7 @@ void ThumbImageUpdater::process () {
|
|||||||
stopped = false;
|
stopped = false;
|
||||||
|
|
||||||
if(!threadPool)
|
if(!threadPool)
|
||||||
threadPool = new Glib::ThreadPool(threadNum,0);
|
threadPool = new Glib::ThreadPool(threadNum,1);
|
||||||
|
|
||||||
//thread = Glib::Thread::create (sigc::mem_fun(*this, &ThumbImageUpdater::process_), (unsigned long int)0, true, true, Glib::THREAD_PRIORITY_NORMAL);
|
//thread = Glib::Thread::create (sigc::mem_fun(*this, &ThumbImageUpdater::process_), (unsigned long int)0, true, true, Glib::THREAD_PRIORITY_NORMAL);
|
||||||
process_();
|
process_();
|
||||||
|
Reference in New Issue
Block a user