Commit graph

37 commits

Author SHA1 Message Date
Federico Mena Quintero
30c1207620 Fix the gnome-settings-daemon part of
2007-03-21  Federico Mena Quintero  <federico@novell.com>

	Fix the gnome-settings-daemon part of
	https://bugzilla.novell.com/show_bug.cgi?id=217790 and
	http://bugzilla.gnome.org/show_bug.cgi?id=378338:  try to figure
	out the DPI value from the X server or the user's GConf settings.

	Should also fix https://bugzilla.novell.com/show_bug.cgi?id=240246.

	* gnome-settings-daemon/gnome-settings-xsettings.c (gnome_xft_settings_get): Call
	get_dpi_from_gconf_or_server() to figure out a reasonable DPI
	value; don't unconditionally get it from GConf.
	(get_dpi_from_gconf_or_server): New function.  If the user has
	ever set the /desktop/gnome/font_rendering/dpi value in GConf, we
	use its value.  Otherwise, we ask the X server.  We constrain the
	X server's response to a range of reasonable DPI values, since
	some servers lie about the screen's phisical dimensions --- the
	user would get unusably huge or tiny fonts otherwise.

	* capplets/font/main.c (dpi_load): First, see if the DPI value is actually set
	in GConf.  If it is, it means that the user has changed it at
	least once.  In that case, just use the value.  Otherwise, find
	the value from the X server in a similar way to what we do in
	gnome-settings-daemon.

svn path=/trunk/; revision=7409
2007-03-21 17:05:06 +00:00
Thomas Wood
7fd36e74fd Based on patch by: Gabor Kelemen <kelemeng@gnome.hu>
2007-01-07  Thomas Wood  <thos@gnome.org>

	Based on patch by: Gabor Kelemen <kelemeng@gnome.hu>

	* main.c: (application_font_to_gconf): Fixes bug 335963 ("Font may be
	too large" dialog unclear).

svn path=/trunk/; revision=7089
2007-01-07 18:53:31 +00:00
Rodrigo Moya
4e42ae3292 Fixes #327021
2006-02-17  Rodrigo Moya <rodrigo@novell.com>

	Fixes #327021

	* main.c (setup_dialog): don't unref the GladeXML structure, it's
	needed in the callbacks.
2006-02-17 10:49:04 +00:00
Christian Persch
d73b4ee2d6 Add a font button for the document font gconf key, and change the label of
2006-01-26  Christian Persch  <chpe@cvs.gnome.org>

	* capplets/font/font-properties.glade:
	* capplets/font/main.c: (setup_dialog):
	Add a font button for the document font gconf key, and change
	the label of the 'terminal font' button. Bug #160454,
	patch by Shaun McCance.
2006-01-26 13:23:05 +00:00
Kjartan Maraas
564a9d03aa Huge cleanup. Individual ChangeLogs have info. Closing bug #320157. ANSIfy
2005-11-14  Kjartan Maraas  <kmaraas@gnome.org>

	* */*: Huge cleanup. Individual ChangeLogs have info.
	Closing bug #320157.
	* libkbddraw/keyboard-drawing.h: ANSIfy some function declarations.
2005-11-14 15:18:09 +00:00
Sebastien Bacher
b63d084a0f port of the font capplet to gtk_font_button and some cleanup,
patch from paolo borelli <pborelli@katamail.com> (Closes: #160016).
2005-05-22 15:11:44 +00:00
Frédéric Crozat
347006e0d8 Use themed icons for WM hint. 2004-08-20 16:50:57 +00:00
Mark McLoughlin
d9885e685f update help links to point to user-guide.xml
2004-02-12  Mark McLoughlin  <mark@skynet.ie>

        * capplets/display/main.c: (cb_dialog_response):
        * capplets/localization/gnome-localization-properties.c:
        (dialog_response): update help links to point to user-guide.xml
2004-02-12 14:23:03 +00:00
Frédéric Crozat
285427e21f 64bits fixes.
* capplets/font/main.c: (sample_expose):
        * gnome-settings-daemon/gnome-settings-gtk1theme.c:
        (apply_settings):
        * vfs-methods/themus/theme-method.c:
        64bits fixes.
2004-02-06 10:53:58 +00:00
Christian Neumair
425ced6c30 Use ngettext for plurals (#125175). 2003-12-30 19:51:09 +00:00
Jody Goldberg
00c200258d http://bugzilla.gnome.org/show_bug.cgi?id=116710 be smarter about
2003-10-28  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=116710
	* main.c (cb_show_details) : be smarter about selecting a maximum
2003-10-28 21:58:08 +00:00
Jody Goldberg
6d257e030e http://bugzilla.gnome.org/show_bug.cgi?id=124513 merge in patch to
2003-10-24  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=124513
	* main.c (setup_font_sample) : merge in patch to allocate black and
	  white correctly on TruColor displays.
2003-10-28 20:46:08 +00:00
Jody Goldberg
f916e2f01c http://bugzilla.gnome.org/show_bug.cgi?id=106489 add some protection again
2003-10-23  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=106489
	* main.c (dpi_load) : add some protection again invalid dpi in the
	  case of gconf failure.
2003-10-28 20:38:11 +00:00
Jonathan Blandford
532a9fae6a Warn when a font larger than 31 points is selected, #97653. Caring
Sat Aug  2 01:16:16 2003  Jonathan Blandford  <jrb@gnome.org>

        * main.c (application_font_to_gconf): Warn when a font larger than
        31 points is selected, #97653.
Caring Desktop++
2003-08-02 15:52:24 +00:00
Jonathan Blandford
bd160edddf Patch from Kjartan Maraas to fix a bunch of leaks.
Thu Feb 13 18:51:37 2003  Jonathan Blandford  <jrb@redhat.com>

        * capplets/common/gconf-property-editor.c: (gconf_peditor_new):
        * capplets/common/gnome-theme-info.c: (read_meta_theme),
        (update_theme_index), (update_common_theme_dir_index),
        (top_theme_dir_changed), (top_icon_theme_dir_changed),
        (add_common_theme_dir_monitor), (real_add_top_theme_dir_monitor):
        * capplets/default-applications/gnome-default-applications-properti
        es.c: (initialize_default_applications), (read_editor),
        (read_terminal):
        * capplets/file-types/mime-edit-dialog.c: (fill_dialog):
        * capplets/file-types/mime-type-info.c: (load_all_mime_types):
        * capplets/file-types/mime-types-model.c:
        (mime_types_model_get_value):
        * capplets/font/main.c: (font_render_get_gconf), (enum_group_load):
        * capplets/mouse/gnome-mouse-properties.c: (read_cursor_font),
        (cursor_changed):
        * capplets/theme-switcher/gnome-theme-details.c:
        (window_theme_selection_changed):
        * capplets/theme-switcher/gnome-theme-manager.c:
        (meta_theme_selection_changed):
        * capplets/theme-switcher/theme-thumbnail.c:
        (generate_theme_thumbnail):
        * libsounds/sound-properties.c: (sound_properties_add_directory),
        (sound_properties_add_file):
        * libsounds/sound-view.c: (compare_func):
        * libwindow-settings/gnome-window-manager.c:
        (gnome_window_manager_new): Patch from Kjartan Maraas to fix a
        bunch of leaks.
2003-02-14 00:02:50 +00:00
Jonathan Blandford
37731852a0 run "nautilus --no-desktop fonts:///" if button pressed.
Wed Jan 15 12:50:34 2003  Jonathan Blandford  <jrb@redhat.com>

	* main.c (cb_details_response): run "nautilus --no-desktop
	fonts:///" if button pressed.

	(cb_show_details): show a 'Go to font folder' button if fonts:///
	exists.
2003-02-05 21:45:38 +00:00
Pasupathi Duraisamy
9e1e421396 Added the "desktop_font" key directory to the list of directories
2002-11-13  Pasupathi Duraisamy <pasupathi.duraisamy@wipro.com>

        * main.c: Added the "desktop_font" key directory to the list
        of directories GConfClient will watch for changes.
        Fixes Bug #94766.
2002-11-13 07:08:13 +00:00
Jonathan Blandford
c46a90bc25 remove the duplicate #defined key.
Fri Nov  1 18:21:22 2002  Jonathan Blandford  <jrb@gnome.org>

	* main.c: remove the duplicate #defined key.
2002-11-01 23:22:20 +00:00
Jonathan Blandford
ff045c00cd get rid of theme-common.[ch] for good 2002-11-01 23:16:35 +00:00
Jody Goldberg
9266656bea http://bugzilla.gnome.org/show_bug.cgi?id=95807 From
2002-10-16  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=95807
	From  sylvain_pasche@yahoo.fr
	* main.c (open_pattern) : Add a safety check.
2002-10-16 13:11:04 +00:00
Jody Goldberg
393fa2d6d1 merge in owen's patch to configure the window title font and the font to
2002-08-19  Jody Goldberg <jody@gnome.org>

	* font-properties.glade :
	* main.c: (setup_dialog): merge in owen's patch to configure the
	  window title font and the font to use for terminals.  This patch
	  uses a metacity specific key for the window title.  Owen ? Seth ?
	  Can you folk choose please.
2002-08-19 20:04:18 +00:00
Seth Nickell
e5071f4434 Try my best to throw a monkey wrench in things. Checkin Windows capplet,
2002-08-08  Seth Nickell <snickell@stanford.edu>

	Try my best to throw a monkey wrench in things. Checkin
	Windows capplet, and add window related settings to
	the font capplet and theme capplet.

	Also fix button alignments on all capplets.
2002-08-08 07:13:38 +00:00
Owen Taylor
6aa8a86cd1 Fix stupid typo.
Tue Jul 23 23:31:17 2002  Owen Taylor  <otaylor@redhat.com>

        * capplets/font/main.c: Fix stupid typo.
2002-07-24 03:31:39 +00:00
Owen Taylor
05fb268094 ue Jul 23 22:35:10 2002 Owen Taylor <otaylor@redhat.com>
* acconfig.h configure.in: Check for Xft2.

        * capplets/font/main.c capplets/font/Makefile.am
        capplets/font/font-properties.glade: If XFt2 is present,
        allow the user to control various font rendering attributes.

        * gnome-settings-daemon/gnome-settings-xsettings.c:
        Mirror the Xft rendering attributes from the font
        capplet to XSETTINGS and Xrdb.

        * schemas/Makefile.am schemas/desktop_gnome_font_rendering.schemas:
        Add schemas for the new GConf settings.
2002-07-24 02:39:03 +00:00
Jody Goldberg
1eeebe40c9 fix and move the code into capplet_set_icon.
2002-06-27  Jody Goldberg <jody@gnome.org>

	* gnome-keybinding-properties.c (setup_dialog) : fix and move the code
	  into capplet_set_icon.

2002-06-27  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=86593
	* main.c (setup_dialog) : watch for missing icons

2002-06-27  Jody Goldberg <jody@gnome.org>

	* capplet-util.c (capplet_set_icon) : new util.
2002-06-27 18:30:15 +00:00
Satyajit Kanungo
b4123f15b1 capplet_help () The Help directory is changed to user-guide.
2002-05-28 Satyajit Kanungo <satyajit.kanungo@wipro.com>

	* capplet-util.c : capplet_help () The Help directory is changed to
	  user-guide.
2002-05-29 04:14:29 +00:00
Jody Goldberg
bd493373d2 Improve help handling.
Improve help handling.

2002-05-26  Jody Goldberg <jody@gnome.org>

	* capplet-util.c (capplet_help) : new utility.

2002-05-24  Jody Goldberg <jody@gnome.org>

	* mime-type-info.c (mime_category_info_load_all) : make this more paranoid.
	* mime-category-edit-dialog.c (update_subcategories) : Move this over
	  here.

2002-05-17  Jody Goldberg <jody@gnome.org>

	* mime-type-info.c (mime_category_info_using_custom_app) : add some
	  protection.
2002-05-27 02:54:19 +00:00
Jonathan Blandford
6985207425 Use APPID instead of argv[0] for gnome-program-init 2002-05-26 16:11:37 +00:00
Jonathan Blandford
c0aaf2ca2e clean up strings to make them match the ui-suggestions, and make them correct 2002-05-25 06:14:04 +00:00
Jonathan Blandford
5233e6cf33 get it to use the right key.
Fri May 10 19:00:25 2002  Jonathan Blandford  <jrb@redhat.com>

	* main.c (DESKTOP_FONT_NAME_KEY): get it to use the right key.
2002-05-11 00:17:43 +00:00
Jody Goldberg
422a93f0d2 new. (setup_dialog) : support help.
2002-05-08  Jody Goldberg <jody@gnome.org>

	* main.c (cb_dialog_response) : new.
	(setup_dialog) : support help.
2002-05-09 12:37:30 +00:00
Seth Nickell
8c999e79e0 Bring back in sync with the merged theme/font dialog.
2002-04-26  Seth Nickell  <snickell@stanford.edu>

	* Makefile.am:
	* font-properties.glade:
	* main.c: (create_dialog), (setup_dialog), (main):

	Bring back in sync with the merged theme/font dialog.
2002-04-27 01:16:22 +00:00
Lauris Kaplinski
ff128913a4 Moved font capplet backt o original GUI and made it to work otherwise 2002-03-26 22:56:20 +00:00
Jonathan Blandford
ac9331cf2b Add new Makefiles ditto Add keybindings dialog
2002-03-17  Jonathan Blandford  <jrb@redhat.com>

	* Makefile.am: Add new Makefiles
	* configure.in: ditto
	* capplets/Makefile.am: Add keybindings dialog

	* capplets/keybindings/.cvsignore: shut up CVS

	* capplets/keybindings/Makefile.am:
	* capplets/keybindings/eggcellrendererkeys.c:
	* capplets/keybindings/eggcellrendererkeys.h:
	* capplets/keybindings/gnome-keybinding-properties.c:
	* capplets/keybindings/gnome-keybinding-properties.glade:
	* capplets/keybindings/keybinding.desktop.in:
	New properties dialog.  Seems to work

	* schemas/.cvsignore: shut up CVS

	* schemas/Makefile.am:
	* schemas/apps_gnome_keybinding_properties.schemas: New schemas
	file for configuring the keybinding schemas.
	* schemas/background.schemas: Remove unneeded schemas files
	* schemas/peripherals.schemas:
	* schemas/screensaver.schemas:
2002-03-17 21:27:09 +00:00
Kjartan Maraas
0a292d2469 s/PACKAGE/GETTEXT_PACKAGE/g
2002-02-27  Kjartan Maraas  <kmaraas@gnome.org>

	* main.c: s/PACKAGE/GETTEXT_PACKAGE/g
2002-02-27 22:20:28 +00:00
Gediminas Paulauskas
ad9f46de5f fix i18n
2002-02-18  Gediminas Paulauskas <menesis@delfi.lt>

	* main.c: fix i18n

2002-02-18  Gediminas Paulauskas <menesis@delfi.lt>

	* ChangeLog: added
	* main.c: correct i18n
2002-02-18 00:54:24 +00:00
Richard Hestilow
c6e987d38b Added font capplet.
2002-02-10  Richard Hestilow  <hestilow@ximian.com>

	* Added font capplet.
2002-02-10 08:02:00 +00:00