Remove unused function.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12073 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-11-30 06:00:01 +00:00
parent 5be61108d5
commit 2be940af24
4 changed files with 3 additions and 52 deletions

View File

@ -1,5 +1,8 @@
2005-11-29 David Hampton <hampton@employees.org> 2005-11-29 David Hampton <hampton@employees.org>
* src/gnome-utils/gw-gnome-utils-spec.scm:
* src/gnome-utils/dialog-utils.[ch]: Remove unused function.
* various: More syntactic sugar converting from gtk_object_xxx * various: More syntactic sugar converting from gtk_object_xxx
functions to g_object_xxx functions. functions to g_object_xxx functions.

View File

@ -828,46 +828,6 @@ gnc_clist_set_check (GtkCList *list, int row, int col, gboolean checked)
gtk_clist_set_text (list, row, col, ""); gtk_clist_set_text (list, row, col, "");
} }
void
gnc_clist_columns_autosize (GtkCList *list)
{
GtkStyle *style;
GdkFont *font;
gint i;
if (!list) return;
g_return_if_fail (GTK_IS_CLIST (list));
style = gtk_widget_get_style (GTK_WIDGET(list));
if (!style)
return;
font = gdk_font_from_description (style->font_desc);
if (!font)
return;
for (i = 0; TRUE; i++)
{
GtkWidget *widget;
char *title;
gint width;
widget = gtk_clist_get_column_widget (list, i);
if (!widget)
break;
if (!GTK_IS_LABEL (widget))
continue;
gtk_label_get (GTK_LABEL (widget), &title);
width = gdk_string_width (font, title);
gtk_clist_set_column_min_width (list, i, width + 5);
}
gtk_clist_columns_autosize (list);
}
/* Glade Stuff /* Glade Stuff
* *
* *

View File

@ -122,10 +122,6 @@ gboolean gnc_handle_date_accelerator (GdkEventKey *event,
void gnc_clist_set_check (GtkCList *list, int row, int col, void gnc_clist_set_check (GtkCList *list, int row, int col,
gboolean checked); gboolean checked);
/* This function is similar to gtk_clist_columns_autosize, but
* also takes into account the column titles. */
void gnc_clist_columns_autosize (GtkCList *list);
GladeXML * gnc_glade_xml_new (const char *filename, const char *root); GladeXML * gnc_glade_xml_new (const char *filename, const char *root);
GtkWidget * gnc_glade_lookup_widget (GtkWidget *widget, const char *name); GtkWidget * gnc_glade_lookup_widget (GtkWidget *widget, const char *name);
void gnc_glade_autoconnect_full_func(const gchar *handler_name, void gnc_glade_autoconnect_full_func(const gchar *handler_name,

View File

@ -421,14 +421,6 @@ be left empty")
(<gw:bool> checked)) (<gw:bool> checked))
"Set the check status of a clist cell.") "Set the check status of a clist cell.")
(gw:wrap-function
ws
'gnc:clist-columns-autosize
'<gw:void>
"gnc_clist_columns_autosize"
'((<gnc:GtkCList> clist))
"Autosize the columns of a clist including the titles.")
(gw:wrap-function (gw:wrap-function
ws ws
'gnc:set-busy-cursor 'gnc:set-busy-cursor