Compare commits

...

8 Commits

Author SHA1 Message Date
Paolo Borelli
171a019c71 Do not use tabs 2010-07-26 15:38:32 +02:00
Paolo Borelli
efbd8e306b Install some images used in the details dialog 2010-07-26 09:22:30 +02:00
Paolo Borelli
938fff6686 Use font icon from gnome-icon-theme 2010-07-26 09:08:21 +02:00
Paolo Borelli
4e232eb833 Fix details dialog 2010-07-25 22:02:54 +02:00
Paolo Borelli
da977f858d Fix some global var handling 2010-07-25 21:39:35 +02:00
Paolo Borelli
d5f9fe6f6b some HIGgification 2010-07-25 21:38:58 +02:00
Paolo Borelli
75213d035c Remove debugging spew 2010-07-25 21:05:48 +02:00
Paolo Borelli
91572041d0 First cut at a fonts panel 2010-07-25 20:20:54 +02:00
12 changed files with 2480 additions and 0 deletions

View File

@@ -365,6 +365,8 @@ panels/default-applications/gnome-default-applications-panel.desktop.in
panels/default-applications/gnome-default-applications.pc
panels/display/Makefile
panels/display/gnome-display-panel.desktop.in
panels/fonts/Makefile
panels/fonts/gnome-fonts-panel.desktop.in
panels/keybindings/Makefile
panels/keybindings/gnome-keybindings-panel.desktop.in
panels/keybindings/gnome-keybindings.pc

View File

@@ -1,4 +1,5 @@
SUBDIRS=display \
fonts \
mouse \
keyboard \
network \

48
panels/fonts/Makefile.am Normal file
View File

@@ -0,0 +1,48 @@
# This is used in GNOMECC_CAPPLETS_CFLAGS
cappletname = fonts
INCLUDES = \
$(PANEL_CFLAGS) \
$(GNOMECC_CAPPLETS_CFLAGS) \
$(FONT_CAPPLET_CFLAGS) \
-DGNOMELOCALEDIR="\"$(datadir)/locale\"" \
-DGNOMECC_DATA_DIR="\"$(pkgdatadir)\"" \
-DGNOMECC_UI_DIR="\"$(uidir)\"" \
-DGNOMECC_PIXMAP_DIR="\"$(pixmapdir)\"" \
$(NULL)
ccpanelsdir = $(PANELS_DIR)
ccpanels_LTLIBRARIES = libfonts.la
libfonts_la_SOURCES = \
fonts-module.c \
cc-fonts-panel.c \
cc-fonts-panel.h
libfonts_la_LIBADD = \
$(PANEL_LIBS) \
$(FONT_CAPPLET_LIBS)
libfonts_la_LDFLAGS = \
$(PANEL_LDFLAGS) \
$(FONT_CAPPLET_LDFLAGS)
pixmapdir = $(pkgdatadir)/pixmaps
dist_pixmap_DATA = \
subpixel-bgr.png \
subpixel-rgb.png \
subpixel-vbgr.png \
subpixel-vrgb.png
@INTLTOOL_DESKTOP_RULE@
uidir = $(pkgdatadir)/ui
dist_ui_DATA = gnome-font-properties.ui
desktopdir = $(datadir)/applications
desktop_in_files = gnome-fonts-panel.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
CLEANFILES = $(GNOMECC_CAPPLETS_CLEANFILES) $(Desktop_in_files) $(desktop_DATA)
EXTRA_DIST = $(ui_DATA) $(pixmap_DATA)
-include $(top_srcdir)/git.mk

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,74 @@
/*
* Copyright (C) 2007 The GNOME Foundation
* Written by Jonathan Blandford <jrb@gnome.org>
* Jens Granseuer <jensgr@gmx.net>
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _CC_FONTS_PANEL_H
#define _CC_FONTS_PANEL_H
#include <libgnome-control-center/cc-panel.h>
G_BEGIN_DECLS
#define CC_TYPE_FONTS_PANEL cc_fonts_panel_get_type()
#define CC_FONTS_PANEL(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
CC_TYPE_FONTS_PANEL, CcFontsPanel))
#define CC_FONTS_PANEL_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), \
CC_TYPE_FONTS_PANEL, CcFontsPanelClass))
#define CC_IS_FONTS_PANEL(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
CC_TYPE_FONTS_PANEL))
#define CC_IS_FONTS_PANEL_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
CC_TYPE_FONTS_PANEL))
#define CC_FONTS_PANEL_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
CC_TYPE_FONTS_PANEL, CcFontsPanelClass))
typedef struct _CcFontsPanel CcFontsPanel;
typedef struct _CcFontsPanelClass CcFontsPanelClass;
typedef struct _CcFontsPanelPrivate CcFontsPanelPrivate;
struct _CcFontsPanel
{
CcPanel parent;
CcFontsPanelPrivate *priv;
};
struct _CcFontsPanelClass
{
CcPanelClass parent_class;
};
GType cc_fonts_panel_get_type (void) G_GNUC_CONST;
void cc_fonts_panel_register (GIOModule *module);
G_END_DECLS
#endif /* _CC_FONTS_PANEL_H */

View File

@@ -0,0 +1,41 @@
/*
* Copyright (C) 2010 Intel, Inc
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Author: Thomas Wood <thomas.wood@intel.com>
*
*/
#include <config.h>
#include "cc-fonts-panel.h"
#include <glib/gi18n-lib.h>
void
g_io_module_load (GIOModule *module)
{
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
/* register the panel */
cc_fonts_panel_register (module);
}
void
g_io_module_unload (GIOModule *module)
{
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,15 @@
[Desktop Entry]
_Name=Fonts
_Comment=Set your font preferences
Exec=gnome-control-center fonts
Icon=preferences-desktop-font
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Settings;DesktopSettings;
OnlyShowIn=GNOME;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-control-center
X-GNOME-Bugzilla-Component=font preferences
X-GNOME-Bugzilla-Version=@VERSION@
X-GNOME-Settings-Panel=fonts

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B