[gnome-latex: 109/205] Logo in the about dialog



commit 074e94600dbddf485b605b4a96a396048ea13b2a
Author: Sébastien Wilmet <sebastien wilmet gmail com>
Date:   Sun Nov 8 21:58:10 2009 +0100

    Logo in the about dialog

 TODO                        |   1 +
 images/CMakeLists.txt       |   3 +++
 images/icons/CMakeLists.txt |   4 ++--
 images/logo.png             | Bin 0 -> 5142 bytes
 src/callbacks.c             |   5 ++++-
 5 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/TODO b/TODO
index 89a4368..76d89f8 100644
--- a/TODO
+++ b/TODO
@@ -5,6 +5,7 @@ TODO LaTeXila
        x file browser integrated
        x sort the files in alphabetical order
        x save the current folder in the prefs
+       - add a link to the home user directory
        - other pixbuf for *.pdf, *.dvi and *.ps files
        - if clicking on a *.pdf, *.dvi or *.ps file, show the document (add a new action)
        - add an option in the preferences: show only *.tex, *.pdf, *.dvi and *.ps files
diff --git a/images/CMakeLists.txt b/images/CMakeLists.txt
index 2f138ab..fc4403d 100644
--- a/images/CMakeLists.txt
+++ b/images/CMakeLists.txt
@@ -6,3 +6,6 @@ ADD_SUBDIRECTORY(operators)
 ADD_SUBDIRECTORY(delimiters)
 ADD_SUBDIRECTORY(misc-math)
 ADD_SUBDIRECTORY(misc-text)
+
+FILE(GLOB images *.png)
+INSTALL(FILES ${images} DESTINATION ${DATA_DIR}/images)
diff --git a/images/icons/CMakeLists.txt b/images/icons/CMakeLists.txt
index 062bec6..6ff9aac 100644
--- a/images/icons/CMakeLists.txt
+++ b/images/icons/CMakeLists.txt
@@ -1,2 +1,2 @@
-FILE(GLOB symbols *.png)
-INSTALL(FILES ${symbols} DESTINATION ${DATA_DIR}/images/icons)
+FILE(GLOB icons *.png)
+INSTALL(FILES ${icons} DESTINATION ${DATA_DIR}/images/icons)
diff --git a/images/logo.png b/images/logo.png
new file mode 100644
index 0000000..d9058f6
Binary files /dev/null and b/images/logo.png differ
diff --git a/src/callbacks.c b/src/callbacks.c
index eeed847..eda1823 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -659,7 +659,6 @@ cb_about_dialog (void)
                        "You should have received a copy of the GNU General Public License\n"
                        "along with LaTeXila.  If not, see <http://www.gnu.org/licenses/>.\n";
 
-       //TODO set the url hook
        gchar *website = "http://latexila.sourceforge.net/";;
 
        const gchar *authors[] =
@@ -675,6 +674,9 @@ cb_about_dialog (void)
                NULL
        };
 
+       GdkPixbuf *logo = gdk_pixbuf_new_from_file (DATA_DIR "/images/logo.png",
+                       NULL);
+
        gtk_show_about_dialog (
                        latexila.main_window,
                        "program-name", PROGRAM_NAME,
@@ -687,6 +689,7 @@ cb_about_dialog (void)
                        "title", _("About " PROGRAM_NAME),
                        "translator-credits", _("translator-credits"),
                        "website", website,
+                       "logo", logo,
                        NULL
        );
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]