Remove a unused function that calls deprecated gnome routines.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13419 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2006-02-28 05:18:34 +00:00
parent bc68e5f8b4
commit 1fddc8d224
3 changed files with 7 additions and 50 deletions

View File

@@ -1,5 +1,8 @@
2006-02-27 David Hampton <hampton@employees.org>
* src/gnome-utils/dialog-utils.[ch]: Remove a unused function that
calls deprecated gnome routines.
* src/gnome/window-reconcile.c:
* src/gnome/ui/gnc-reconcile-window-ui.xml:
* src/gnome/ui/Makefile.am: Convert the reconcile window from the

View File

@@ -27,8 +27,10 @@
#include "config.h"
#include <gnome.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include "glib-compat.h"
#include <glib/gi18n.h>
#include <glade/glade.h>
#include <gmodule.h>
#include <dlfcn.h>
@@ -165,7 +167,7 @@ gnc_get_toolbar_style(void)
return GTK_TOOLBAR_BOTH;
tbstyle = gnc_enum_from_nick(GTK_TYPE_TOOLBAR_STYLE, style_string,
GTK_TOOLBAR_BOTH);
free(style_string);
g_free(style_string);
return tbstyle;
}
@@ -311,42 +313,6 @@ gnc_save_window_size(const char *section, GtkWindow *window)
}
/********************************************************************\
* gnc_fill_menu_with_data *
* fill the user data values in the menu structure with the given *
* value. The filling is done recursively. *
* *
* Args: info - the menu to fill *
* data - the value to fill with *
* Returns: nothing *
\********************************************************************/
void
gnc_fill_menu_with_data(GnomeUIInfo *info, gpointer data)
{
if (info == NULL)
return;
while (1)
{
switch (info->type)
{
case GNOME_APP_UI_RADIOITEMS:
case GNOME_APP_UI_SUBTREE:
case GNOME_APP_UI_SUBTREE_STOCK:
gnc_fill_menu_with_data((GnomeUIInfo *) info->moreinfo, data);
break;
case GNOME_APP_UI_ENDOFINFO:
return;
default:
info->user_data = data;
break;
}
info++;
}
}
void
gnc_option_menu_init(GtkWidget * w)
{

View File

@@ -83,18 +83,6 @@ void gnc_restore_window_size (const char *prefix, GtkWindow *window);
void gnc_save_window_size (const char *section, GtkWindow *window);
/********************************************************************\
* Fill the user data values in the menu structure with the given *
* value. The filling is done recursively. *
* *
* Args: info - the menu to fill *
* data - the value to fill with *
* Returns: nothing *
\********************************************************************/
#ifdef LIBGNOME_H
void gnc_fill_menu_with_data (GnomeUIInfo *info, gpointer data);
#endif
void gnc_option_menu_init (GtkWidget * option_menu);
void gnc_option_menu_init_w_signal(GtkWidget * w,
GCallback f,