Compare commits
8 Commits
41.alpha
...
wip/fonts-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
171a019c71 | ||
|
|
efbd8e306b | ||
|
|
938fff6686 | ||
|
|
4e232eb833 | ||
|
|
da977f858d | ||
|
|
d5f9fe6f6b | ||
|
|
75213d035c | ||
|
|
91572041d0 |
@@ -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
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
SUBDIRS=display \
|
||||
fonts \
|
||||
mouse \
|
||||
keyboard \
|
||||
network \
|
||||
|
||||
48
panels/fonts/Makefile.am
Normal file
48
panels/fonts/Makefile.am
Normal 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
|
||||
1129
panels/fonts/cc-fonts-panel.c
Normal file
1129
panels/fonts/cc-fonts-panel.c
Normal file
File diff suppressed because it is too large
Load Diff
74
panels/fonts/cc-fonts-panel.h
Normal file
74
panels/fonts/cc-fonts-panel.h
Normal 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 */
|
||||
41
panels/fonts/fonts-module.c
Normal file
41
panels/fonts/fonts-module.c
Normal 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)
|
||||
{
|
||||
}
|
||||
1170
panels/fonts/gnome-font-properties.ui
Normal file
1170
panels/fonts/gnome-font-properties.ui
Normal file
File diff suppressed because it is too large
Load Diff
15
panels/fonts/gnome-fonts-panel.desktop.in.in
Normal file
15
panels/fonts/gnome-fonts-panel.desktop.in.in
Normal 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
|
||||
BIN
panels/fonts/subpixel-bgr.png
Normal file
BIN
panels/fonts/subpixel-bgr.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 125 B |
BIN
panels/fonts/subpixel-rgb.png
Normal file
BIN
panels/fonts/subpixel-rgb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 125 B |
BIN
panels/fonts/subpixel-vbgr.png
Normal file
BIN
panels/fonts/subpixel-vbgr.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 138 B |
BIN
panels/fonts/subpixel-vrgb.png
Normal file
BIN
panels/fonts/subpixel-vrgb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 138 B |
Reference in New Issue
Block a user