Don't add pointless getters

svn path=/trunk/; revision=21114
This commit is contained in:
Matthias Clasen 2008-08-14 03:37:43 +00:00
parent a50b2ee48f
commit 81aa21a834
6 changed files with 14 additions and 44 deletions

View File

@ -1,3 +1,13 @@
2008-08-13 Matthias Clasen <mclasen@redhat.com>
Bug 547673 Accessors for GtkFileSelection.font_entry and
font_style_entry
* gtk/gtk.symbols:
* gtk/gtkfontsel.[hc]: Don't add getters for widgets that are not
actually part of the font selection dialog in standard builds.
Pointed out by Torsten Schoenfeld
2008-08-13 Matthias Clasen <mclasen@redhat.com> 2008-08-13 Matthias Clasen <mclasen@redhat.com>
Bug 547516 Add comments for translators in gtkprintbackendcups.c Bug 547516 Add comments for translators in gtkprintbackendcups.c

View File

@ -1,3 +1,7 @@
2008-08-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk-sections.txt: Remove useless getters
2008-08-13 Torsten Schoenfeld <kaffeetisch@gmx.de> 2008-08-13 Torsten Schoenfeld <kaffeetisch@gmx.de>
* gtk/gtk-sections.txt: Move * gtk/gtk-sections.txt: Move

View File

@ -1600,11 +1600,9 @@ gtk_font_selection_set_font_name
gtk_font_selection_get_preview_text gtk_font_selection_get_preview_text
gtk_font_selection_set_preview_text gtk_font_selection_set_preview_text
gtk_font_selection_get_face gtk_font_selection_get_face
gtk_font_selection_get_face_entry
gtk_font_selection_get_face_list gtk_font_selection_get_face_list
gtk_font_selection_get_family gtk_font_selection_get_family
gtk_font_selection_get_size gtk_font_selection_get_size
gtk_font_selection_get_family_entry
gtk_font_selection_get_family_list gtk_font_selection_get_family_list
gtk_font_selection_get_preview_entry gtk_font_selection_get_preview_entry
gtk_font_selection_get_size_entry gtk_font_selection_get_size_entry

View File

@ -1612,10 +1612,8 @@ gtk_font_selection_get_font
gtk_font_selection_dialog_get_font gtk_font_selection_dialog_get_font
#endif #endif
gtk_font_selection_get_face gtk_font_selection_get_face
gtk_font_selection_get_face_entry
gtk_font_selection_get_face_list gtk_font_selection_get_face_list
gtk_font_selection_get_family gtk_font_selection_get_family
gtk_font_selection_get_family_entry
gtk_font_selection_get_family_list gtk_font_selection_get_family_list
gtk_font_selection_get_font_name gtk_font_selection_get_font_name
gtk_font_selection_get_preview_entry gtk_font_selection_get_preview_entry

View File

@ -1122,25 +1122,6 @@ gtk_font_selection_get_font_internal (GtkFontSelection *fontsel)
* These functions are the main public interface for getting/setting the font. * These functions are the main public interface for getting/setting the font.
*****************************************************************************/ *****************************************************************************/
/**
* gtk_font_selection_get_family_entry:
* @fontsel: a #GtkFontSelection
*
* This returns the #GtkEntry that allows the user to manually enter
* the font family they want to use.
*
* Return value: A #GtkWidget.
*
* Since: 2.14
**/
GtkWidget *
gtk_font_selection_get_family_entry (GtkFontSelection *fontsel)
{
g_return_val_if_fail (GTK_IS_FONT_SELECTION (fontsel), NULL);
return fontsel->font_entry;
}
/** /**
* gtk_font_selection_get_family_list: * gtk_font_selection_get_family_list:
* @fontsel: a #GtkFontSelection * @fontsel: a #GtkFontSelection
@ -1160,25 +1141,6 @@ gtk_font_selection_get_family_list (GtkFontSelection *fontsel)
return fontsel->family_list; return fontsel->family_list;
} }
/**
* gtk_font_selection_get_face_entry:
* @fontsel: a #GtkFontSelection
*
* This returns the #GtkEntry responsible for allowing manual
* configuration of the font style.
*
* Return value: A #GtkWidget.
*
* Since: 2.14
**/
GtkWidget *
gtk_font_selection_get_face_entry (GtkFontSelection *fontsel)
{
g_return_val_if_fail (GTK_IS_FONT_SELECTION (fontsel), NULL);
return fontsel->font_style_entry;
}
/** /**
* gtk_font_selection_get_face_list: * gtk_font_selection_get_face_list:
* @fontsel: a #GtkFontSelection * @fontsel: a #GtkFontSelection

View File

@ -144,9 +144,7 @@ struct _GtkFontSelectionDialogClass
GType gtk_font_selection_get_type (void) G_GNUC_CONST; GType gtk_font_selection_get_type (void) G_GNUC_CONST;
GtkWidget * gtk_font_selection_new (void); GtkWidget * gtk_font_selection_new (void);
GtkWidget * gtk_font_selection_get_family_entry (GtkFontSelection *fontsel);
GtkWidget * gtk_font_selection_get_family_list (GtkFontSelection *fontsel); GtkWidget * gtk_font_selection_get_family_list (GtkFontSelection *fontsel);
GtkWidget * gtk_font_selection_get_face_entry (GtkFontSelection *fontsel);
GtkWidget * gtk_font_selection_get_face_list (GtkFontSelection *fontsel); GtkWidget * gtk_font_selection_get_face_list (GtkFontSelection *fontsel);
GtkWidget * gtk_font_selection_get_size_entry (GtkFontSelection *fontsel); GtkWidget * gtk_font_selection_get_size_entry (GtkFontSelection *fontsel);
GtkWidget * gtk_font_selection_get_size_list (GtkFontSelection *fontsel); GtkWidget * gtk_font_selection_get_size_list (GtkFontSelection *fontsel);