| Summary: | digikam: Tools -> 'Gamma Adjustment...' fails silently when kgamma is not installed | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Achim Bohnet <ach> |
| Component: | Portability-Interroperability | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | caulier.gilles |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 0.9.0 | |
| Sentry Crash Report: | |||
|
Description
Achim Bohnet
2006-05-11 01:14:42 UTC
SVN commit 612662 by cgilles:
digikam from trunk : fix kgamma to display module from KDE control center
BUG: 127112
M +7 -7 digikamapp.cpp
M +1 -1 digikamapp.h
M +2 -2 digikamui.rc
--- trunk/extragear/graphics/digikam/digikam/digikamapp.cpp #612661:612662
@@ -753,13 +753,13 @@
actionCollection(),
"help_tipofday");
- mGammaAdjustmentAction = new KAction(i18n("Gamma Adjustment..."),
+ mGammaAdjustmentAction = new KAction(i18n("Display Adjustment..."),
"kgamma",
0,
this,
- SLOT(slot_gammaAdjustment()),
+ SLOT(slotDisplayAdjustment()),
actionCollection(),
- "gamma_adjustment");
+ "display_adjustment");
// -- Rating actions ---------------------------------------------------------------
@@ -1056,18 +1056,18 @@
mImageExifOrientationActionMenu->setEnabled(val);
}
-void DigikamApp::slot_gammaAdjustment()
+void DigikamApp::slotDisplayAdjustment()
{
QStringList args;
QString *perror = 0;
int *ppid = 0;
- args << "kgamma";
+ args << "display";
int ValRet = KApplication::kdeinitExec(QString::fromLatin1("kcmshell"), args, perror, ppid);
if ( ValRet != 0 )
- KMessageBox::error(this, i18n("Cannot start \"KGamma\" extension from KDE control center;\n"
- "please check your installation."));
+ KMessageBox::error(this, i18n("Cannot start \"Display\" configuration panel from KDE control center;\n"
+ "please check your installation."));
}
void DigikamApp::slot_exit()
--- trunk/extragear/graphics/digikam/digikam/digikamapp.h #612661:612662
@@ -135,7 +135,7 @@
void slot_exit();
void slotShowTip();
void slotShowKipiHelp();
- void slot_gammaAdjustment();
+ void slotDisplayAdjustment();
void slotAboutToShowForwardMenu();
void slotAboutToShowBackwardMenu();
--- trunk/extragear/graphics/digikam/digikam/digikamui.rc #612661:612662
@@ -1,5 +1,5 @@
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
-<kpartgui version="10" name="digikam" >
+<kpartgui version="11" name="digikam" >
<MenuBar>
@@ -73,7 +73,7 @@
<Separator/>
<ActionList name="album_actions"/>
<Separator/>
- <Action name="gamma_adjustment" />
+ <Action name="display_adjustment" />
<ActionList name="tool_actions"/>
<Menu name="BatchProcesses"><text>&Batch Processes</text>
<ActionList name="batch_actions"/>
|