Bug 127112 - digikam: Tools -> 'Gamma Adjustment...' fails silently when kgamma is not installed
Summary: digikam: Tools -> 'Gamma Adjustment...' fails silently when kgamma is not ins...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Interroperability (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 01:14 UTC by Achim Bohnet
Modified: 2017-08-10 07:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Achim Bohnet 2006-05-11 01:14:42 UTC
Version:           0.8.2-rc1 (using KDE 3.5.2, Kubuntu Package 4:3.5.2-0ubuntu14 dapper)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15-22-686

At least kde 3.5.2 kcmshell returns no error when a kcm module is not found:

$ kcmshell kgamma && echo okay
kcmshell (kdelibs): WARNING: Could not find module 'kgamma'.
okay

Therefore Tools -> 'Gamma Adjustment...' gives no error msg
when kgamma is not installed, because the return status
check is okay.

Achim
P.S. FWIW: in Kubuntu, kgamma is replaced by the displayconfig
module from guidance 
 http://www.simonzone.com/software/guidance/#screenshots
therefore kgamma is not installed by default.
Comment 1 Achim Bohnet 2006-05-11 01:40:20 UTC
See also: https://launchpad.net/products/digikam/+bug/44122
Comment 2 caulier.gilles 2006-12-12 09:04:10 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>&amp;Batch Processes</text>
         <ActionList name="batch_actions"/>