This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.

The branch, next has been updated
       via  21a5f41c08e9335df50ed8dfb331e5ca4b5f35b2 (commit)
      from  202b9eadc59d8d3d8270ee52c0eaf22395061a93 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/21a5f41c08e9335df50ed8dfb331e5ca4b5f35b2

commit 21a5f41c08e9335df50ed8dfb331e5ca4b5f35b2
Author: Rodolfo García Peñas (kix) <[email protected]>
Date:   Sat Jun 2 21:38:32 2012 +0200

    New function create_logo_image
    
    New function create_logo_image to set the logo image.

diff --git a/src/defaults.c b/src/defaults.c
index 40c4122..0c4daf1 100644
--- a/src/defaults.c
+++ b/src/defaults.c
@@ -969,22 +969,12 @@ void wDefaultsCheckDomains(void* arg)
                                for (i = 0; i < wScreenCount; i++) {
                                        scr = wScreenWithNumber(i);
                                        if (scr) {
-                                               RImage *image;
-
                                                wDefaultUpdateIcons(scr);
 
                                                /* Update the panel image if 
changed */
                                                /* Don't worry. If the image is 
the same these
                                                 * functions will have no 
performance impact. */
-                                               image = wDefaultGetImage(scr, 
"Logo", "WMPanel", wPreferences.icon_size);
-
-                                               if (!image) {
-                                                       wwarning(_("could not 
load logo image for panels: %s"),
-                                                                
RMessageForError(RErrorCode));
-                                               } else {
-                                                       
WMSetApplicationIconImage(scr->wmscreen, image);
-                                                       RReleaseImage(image);
-                                               }
+                                               create_logo_image(scr);
                                        }
                                }
                        }
diff --git a/src/screen.c b/src/screen.c
index 4f279f0..27decbd 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -359,7 +359,6 @@ static void allocGCs(WScreen * scr)
 static void createPixmaps(WScreen * scr)
 {
        WPixmap *pix;
-       RImage *image;
 
        /* load pixmaps */
        pix = wPixmapCreateFromXBMData(scr, (char 
*)MENU_RADIO_INDICATOR_XBM_DATA,
@@ -402,7 +401,17 @@ static void createPixmaps(WScreen * scr)
                pix->shared = 1;
        scr->menu_shade_indicator = pix;
 
-       image = wDefaultGetImage(scr, "Logo", "WMPanel", 
wPreferences.icon_size);
+       create_logo_image(scr);
+
+       scr->dock_dots = make3Dots(scr);
+
+       /* titlebar button pixmaps */
+       allocButtonPixmaps(scr);
+}
+
+void create_logo_image(WScreen *scr)
+{
+       RImage *image = wDefaultGetImage(scr, "Logo", "WMPanel", 
wPreferences.icon_size);
 
        if (!image) {
                wwarning(_("could not load logo image for panels: %s"), 
RMessageForError(RErrorCode));
@@ -410,11 +419,6 @@ static void createPixmaps(WScreen * scr)
                WMSetApplicationIconImage(scr->wmscreen, image);
                RReleaseImage(image);
        }
-
-       scr->dock_dots = make3Dots(scr);
-
-       /* titlebar button pixmaps */
-       allocButtonPixmaps(scr);
 }
 
 /*
diff --git a/src/screen.h b/src/screen.h
index af5a97b..f021096 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -310,7 +310,7 @@ WScreen *wScreenSearchForRootWindow(Window window);
 WScreen *wScreenForWindow(Window window);   /* slower than above functions */
 
 void wScreenFinish(WScreen *scr);
-
 void wScreenUpdateUsableArea(WScreen *scr);
 
+void create_logo_image(WScreen *scr);
 #endif

-----------------------------------------------------------------------

Summary of changes:
 src/defaults.c |   12 +-----------
 src/screen.c   |   18 +++++++++++-------
 src/screen.h   |    2 +-
 3 files changed, 13 insertions(+), 19 deletions(-)


repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
-- 
wmaker-crm.git ("The Window Maker window manager")


-- 
To unsubscribe, send mail to [email protected].

Reply via email to