gparted finally has a logo/icon ;) (thanks to Alain Clement) see also

* gparted finally has a logo/icon ;) (thanks to Alain Clement)
  see also #162092
This commit is contained in:
Bart Hakvoort 2005-11-25 14:53:23 +00:00
parent e59276389e
commit 8264dea990
11 changed files with 27 additions and 11 deletions

View File

@ -1,3 +1,7 @@
2005-11-25 Bart Hakvoort <hakvoort@cvs.gnome.org>
* gparted finally has a logo/icon ;) (thanks to Alain Clement)
see also #162092
2005-11-25 Bart Hakvoort <hakvoort@cvs.gnome.org> 2005-11-25 Bart Hakvoort <hakvoort@cvs.gnome.org>
* include/.cvsignore, * include/.cvsignore,
src/.cvsignore: added *.swp src/.cvsignore: added *.swp

View File

@ -1,4 +1,4 @@
SUBDIRS = include src po compose SUBDIRS = include src po compose pixmaps
@INTLTOOL_DESKTOP_RULE@ @INTLTOOL_DESKTOP_RULE@

View File

@ -48,5 +48,6 @@ Makefile
compose/Makefile compose/Makefile
include/Makefile include/Makefile
src/Makefile src/Makefile
pixmaps/Makefile
po/Makefile.in po/Makefile.in
]) ])

View File

@ -3,6 +3,7 @@ Encoding=UTF-8
_Name=GParted _Name=GParted
_Comment=Gnome Partition Editor _Comment=Gnome Partition Editor
Exec=gparted Exec=gparted
Icon=gparted.png
Terminal=false Terminal=false
Type=Application Type=Application
Categories=GNOME;Application;System; Categories=GNOME;Application;System;

View File

@ -44,6 +44,7 @@ private:
void Show_Credits() ; void Show_Credits() ;
Gtk::Button button_credits; Gtk::Button button_credits;
Gtk::Image *image ;
}; };
} //GParted } //GParted

2
pixmaps/.cvsignore Normal file
View File

@ -0,0 +1,2 @@
Makefile
Makefile.in

4
pixmaps/Makefile.am Normal file
View File

@ -0,0 +1,4 @@
appicondir = $(datadir)/pixmaps
appicon_DATA = gparted.png
EXTRA_DIST = $(appicon_DATA)

BIN
pixmaps/gparted.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -28,7 +28,9 @@ Dialog_About::Dialog_About()
this ->set_resizable( false ); this ->set_resizable( false );
this ->set_has_separator( false ) ; this ->set_has_separator( false ) ;
this ->get_vbox() ->pack_start( * mk_label( "\n<span size='small'>logo here ;)</span>\n", true, false ), Gtk::PACK_SHRINK ); image = manage( new Gtk::Image( GNOME_ICONDIR "/gparted.png" ) );
this ->get_vbox() ->pack_start( *image, Gtk::PACK_SHRINK );
this ->get_vbox() ->pack_start( * mk_label( "<span size='xx-large'><b>" + (Glib::ustring) _( "GParted" ) + " " + VERSION + "</b></span>", true, false ) ,Gtk::PACK_SHRINK ); this ->get_vbox() ->pack_start( * mk_label( "<span size='xx-large'><b>" + (Glib::ustring) _( "GParted" ) + " " + VERSION + "</b></span>", true, false ) ,Gtk::PACK_SHRINK );
this ->get_vbox() ->pack_start( * mk_label( "\n" + (Glib::ustring) _( "Gnome Partition Editor" ) + "\n", false, false ) ,Gtk::PACK_SHRINK ); this ->get_vbox() ->pack_start( * mk_label( "\n" + (Glib::ustring) _( "Gnome Partition Editor" ) + "\n", false, false ) ,Gtk::PACK_SHRINK );
this ->get_vbox() ->pack_start( * mk_label( "<span size='small'>Copyright © 2004 Bart Hakvoort</span>", true, false ), Gtk::PACK_SHRINK ); this ->get_vbox() ->pack_start( * mk_label( "<span size='small'>Copyright © 2004 Bart Hakvoort</span>", true, false ), Gtk::PACK_SHRINK );

View File

@ -1,13 +1,14 @@
INCLUDES =\ INCLUDES = \
$(GTKMM_CFLAGS) \ $(GTKMM_CFLAGS) \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DGNOME_ICONDIR=\""$(datadir)/pixmaps"\"
AM_CFLAGS =\ AM_CFLAGS = \
-Wall\ -Wall \
-g -g
AM_CXXFLAGS =\ AM_CXXFLAGS = \
-Wall\ -Wall \
-g -g
bin_PROGRAMS = gparted bin_PROGRAMS = gparted
@ -48,6 +49,5 @@ gparted_SOURCES = \
gparted_LDFLAGS = -lparted -lgthread-2.0 gparted_LDFLAGS = -lparted -lgthread-2.0
gparted_LDADD = \ gparted_LDADD = $(GTKMM_LIBS)
$(GTKMM_LIBS)

View File

@ -31,6 +31,7 @@ Win_GParted::Win_GParted( )
//==== GUI ========================= //==== GUI =========================
this ->set_title( _("GParted") ); this ->set_title( _("GParted") );
this ->set_icon_from_file( GNOME_ICONDIR "/gparted.png" ) ;
this ->set_default_size( 775, 500 ); this ->set_default_size( 775, 500 );
//Pack the main box //Pack the main box