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