mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-29 04:04:07 -06:00
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:
parent
5be61108d5
commit
2be940af24
@ -1,5 +1,8 @@
|
||||
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
|
||||
functions to g_object_xxx functions.
|
||||
|
||||
|
@ -828,46 +828,6 @@ gnc_clist_set_check (GtkCList *list, int row, int col, gboolean checked)
|
||||
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
|
||||
*
|
||||
*
|
||||
|
@ -122,10 +122,6 @@ gboolean gnc_handle_date_accelerator (GdkEventKey *event,
|
||||
void gnc_clist_set_check (GtkCList *list, int row, int col,
|
||||
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);
|
||||
GtkWidget * gnc_glade_lookup_widget (GtkWidget *widget, const char *name);
|
||||
void gnc_glade_autoconnect_full_func(const gchar *handler_name,
|
||||
|
@ -421,14 +421,6 @@ be left empty")
|
||||
(<gw:bool> checked))
|
||||
"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
|
||||
ws
|
||||
'gnc:set-busy-cursor
|
||||
|
Loading…
Reference in New Issue
Block a user