[gnome-commander] Replacing obsoleted gtk_type_new() with g_object_new() 1/2
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Replacing obsoleted gtk_type_new() with g_object_new() 1/2
- Date: Mon, 31 Jan 2011 18:48:51 +0000 (UTC)
commit 8e28120a0d07f1db01299c5483204099596b50b2
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Jan 31 19:34:20 2011 +0100
Replacing obsoleted gtk_type_new() with g_object_new() 1/2
libgcmd/gnome-cmd-dialog.cc | 2 +-
libgcmd/gnome-cmd-string-dialog.cc | 2 +-
src/gnome-cmd-chmod-component.cc | 2 +-
src/gnome-cmd-chown-component.cc | 2 +-
src/gnome-cmd-cmdline.cc | 2 +-
src/gnome-cmd-con-device.cc | 2 +-
src/gnome-cmd-con-dialog.cc | 2 +-
src/gnome-cmd-con-ftp.cc | 2 +-
src/gnome-cmd-con-home.cc | 2 +-
src/gnome-cmd-con-list.cc | 2 +-
src/gnome-cmd-con-smb.cc | 2 +-
src/gnome-cmd-dir-indicator.cc | 2 +-
src/gnome-cmd-dir.cc | 6 +++---
src/gnome-cmd-file-popmenu.cc | 2 +-
src/gnome-cmd-file-selector.cc | 2 +-
src/gnome-cmd-file.cc | 2 +-
src/gnome-cmd-list-popmenu.cc | 2 +-
src/gnome-cmd-main-menu.cc | 2 +-
src/gnome-cmd-make-copy-dialog.cc | 2 +-
src/gnome-cmd-patternsel-dialog.cc | 2 +-
src/gnome-cmd-plain-path.cc | 2 +-
src/gnome-cmd-prepare-xfer-dialog.cc | 2 +-
src/gnome-cmd-quicksearch-popup.cc | 2 +-
src/gnome-cmd-search-dialog.cc | 2 +-
src/gnome-cmd-smb-path.cc | 2 +-
src/gnome-cmd-xfer-progress-win.cc | 2 +-
26 files changed, 28 insertions(+), 28 deletions(-)
---
diff --git a/libgcmd/gnome-cmd-dialog.cc b/libgcmd/gnome-cmd-dialog.cc
index 8c4354c..3c4c91d 100644
--- a/libgcmd/gnome-cmd-dialog.cc
+++ b/libgcmd/gnome-cmd-dialog.cc
@@ -145,7 +145,7 @@ GtkType gnome_cmd_dialog_get_type ()
GtkWidget *gnome_cmd_dialog_new (const gchar *title)
{
- GnomeCmdDialog *dialog = (GnomeCmdDialog *) gtk_type_new (GNOME_CMD_TYPE_DIALOG);
+ GnomeCmdDialog *dialog = (GnomeCmdDialog *) g_object_new (GNOME_CMD_TYPE_DIALOG, NULL);
if (title)
gnome_cmd_dialog_setup (dialog, title);
diff --git a/libgcmd/gnome-cmd-string-dialog.cc b/libgcmd/gnome-cmd-string-dialog.cc
index bdcf2e6..1b7ed30 100644
--- a/libgcmd/gnome-cmd-string-dialog.cc
+++ b/libgcmd/gnome-cmd-string-dialog.cc
@@ -177,7 +177,7 @@ GtkType gnome_cmd_string_dialog_get_type ()
GtkWidget *gnome_cmd_string_dialog_new_with_cancel (const gchar *title, const gchar **labels, gint rows, GnomeCmdStringDialogCallback ok_cb, GtkSignalFunc cancel_cb, gpointer user_data)
{
- GnomeCmdStringDialog *dialog = (GnomeCmdStringDialog *) gtk_type_new (GNOME_CMD_TYPE_STRING_DIALOG);
+ GnomeCmdStringDialog *dialog = (GnomeCmdStringDialog *) g_object_new (GNOME_CMD_TYPE_STRING_DIALOG, NULL);
gnome_cmd_string_dialog_setup_with_cancel (dialog, title, labels, rows, ok_cb, cancel_cb, user_data);
diff --git a/src/gnome-cmd-chmod-component.cc b/src/gnome-cmd-chmod-component.cc
index aece1d6..657a467 100644
--- a/src/gnome-cmd-chmod-component.cc
+++ b/src/gnome-cmd-chmod-component.cc
@@ -170,7 +170,7 @@ static void init (GnomeCmdChmodComponent *comp)
GtkWidget *gnome_cmd_chmod_component_new (GnomeVFSFilePermissions perms)
{
- GnomeCmdChmodComponent *comp = (GnomeCmdChmodComponent *) gtk_type_new (GNOME_CMD_TYPE_CHMOD_COMPONENT);
+ GnomeCmdChmodComponent *comp = (GnomeCmdChmodComponent *) g_object_new (GNOME_CMD_TYPE_CHMOD_COMPONENT, NULL);
gnome_cmd_chmod_component_set_perms (comp, perms);
diff --git a/src/gnome-cmd-chown-component.cc b/src/gnome-cmd-chown-component.cc
index 0d40667..eaee348 100644
--- a/src/gnome-cmd-chown-component.cc
+++ b/src/gnome-cmd-chown-component.cc
@@ -118,7 +118,7 @@ inline void load_users_and_groups (GnomeCmdChownComponent *comp)
GtkWidget *gnome_cmd_chown_component_new ()
{
- GnomeCmdChownComponent *comp = (GnomeCmdChownComponent *) gtk_type_new (GNOME_CMD_TYPE_CHOWN_COMPONENT);
+ GnomeCmdChownComponent *comp = (GnomeCmdChownComponent *) g_object_new (GNOME_CMD_TYPE_CHOWN_COMPONENT, NULL);
load_users_and_groups (comp);
diff --git a/src/gnome-cmd-cmdline.cc b/src/gnome-cmd-cmdline.cc
index 0adb516..529e582 100644
--- a/src/gnome-cmd-cmdline.cc
+++ b/src/gnome-cmd-cmdline.cc
@@ -264,7 +264,7 @@ static void init (GnomeCmdCmdline *cmdline)
GtkWidget *gnome_cmd_cmdline_new ()
{
- GnomeCmdCmdline *cmdline = (GnomeCmdCmdline *) gtk_type_new (GNOME_CMD_TYPE_CMDLINE);
+ GnomeCmdCmdline *cmdline = (GnomeCmdCmdline *) g_object_new (GNOME_CMD_TYPE_CMDLINE, NULL);
gnome_cmd_cmdline_set_history (cmdline, gnome_cmd_data.cmdline_history);
update_history_combo (cmdline);
diff --git a/src/gnome-cmd-con-device.cc b/src/gnome-cmd-con-device.cc
index 2eac590..15ccca6 100644
--- a/src/gnome-cmd-con-device.cc
+++ b/src/gnome-cmd-con-device.cc
@@ -392,7 +392,7 @@ GtkType gnome_cmd_con_device_get_type ()
GnomeCmdConDevice *gnome_cmd_con_device_new (const gchar *alias, const gchar *device_fn, const gchar *mountp, const gchar *icon_path)
{
- GnomeCmdConDevice *dev = (GnomeCmdConDevice *) gtk_type_new (GNOME_CMD_TYPE_CON_DEVICE);
+ GnomeCmdConDevice *dev = (GnomeCmdConDevice *) g_object_new (GNOME_CMD_TYPE_CON_DEVICE, NULL);
gnome_cmd_con_device_set_device_fn (dev, device_fn);
gnome_cmd_con_device_set_mountp (dev, mountp);
diff --git a/src/gnome-cmd-con-dialog.cc b/src/gnome-cmd-con-dialog.cc
index 1d98f8d..62f64af 100644
--- a/src/gnome-cmd-con-dialog.cc
+++ b/src/gnome-cmd-con-dialog.cc
@@ -547,7 +547,7 @@ static void gnome_cmd_connect_dialog_init (GnomeCmdConnectDialog *dialog)
GnomeCmdConFtp *gnome_cmd_connect_dialog_new (gboolean has_alias)
{
- GtkWidget *dialog = (GtkWidget *) gtk_type_new (gnome_cmd_connect_dialog_get_type ());
+ GtkWidget *dialog = (GtkWidget *) g_object_new (GNOME_CMD_TYPE_CONNECT_DIALOG, NULL);
g_return_val_if_fail (dialog != NULL, NULL);
diff --git a/src/gnome-cmd-con-ftp.cc b/src/gnome-cmd-con-ftp.cc
index 6b615b7..1ef9ba9 100644
--- a/src/gnome-cmd-con-ftp.cc
+++ b/src/gnome-cmd-con-ftp.cc
@@ -251,7 +251,7 @@ GnomeCmdConFtp *gnome_cmd_con_ftp_new (const gchar *alias, const string &text_ur
const gchar *host = gnome_vfs_uri_get_host_name (uri); // do not g_free
const gchar *password = gnome_vfs_uri_get_password (uri); // do not g_free
- GnomeCmdConFtp *server = (GnomeCmdConFtp *) gtk_type_new (GNOME_CMD_TYPE_CON_FTP);
+ GnomeCmdConFtp *server = (GnomeCmdConFtp *) g_object_new (GNOME_CMD_TYPE_CON_FTP, NULL);
g_return_val_if_fail (server != NULL, NULL);
diff --git a/src/gnome-cmd-con-home.cc b/src/gnome-cmd-con-home.cc
index d47329b..692197b 100644
--- a/src/gnome-cmd-con-home.cc
+++ b/src/gnome-cmd-con-home.cc
@@ -162,7 +162,7 @@ GtkType gnome_cmd_con_home_get_type ()
GnomeCmdCon *gnome_cmd_con_home_new ()
{
- GnomeCmdConHome *con = (GnomeCmdConHome *) gtk_type_new (GNOME_CMD_TYPE_CON_HOME);
+ GnomeCmdConHome *con = (GnomeCmdConHome *) g_object_new (GNOME_CMD_TYPE_CON_HOME, NULL);
return GNOME_CMD_CON (con);
}
diff --git a/src/gnome-cmd-con-list.cc b/src/gnome-cmd-con-list.cc
index 6156c9c..1404582 100644
--- a/src/gnome-cmd-con-list.cc
+++ b/src/gnome-cmd-con-list.cc
@@ -191,7 +191,7 @@ GtkType gnome_cmd_con_list_get_type ()
GnomeCmdConList *gnome_cmd_con_list_new ()
{
- return (GnomeCmdConList *) gtk_type_new (GNOME_CMD_TYPE_CON_LIST);
+ return (GnomeCmdConList *) g_object_new (GNOME_CMD_TYPE_CON_LIST, NULL);
}
diff --git a/src/gnome-cmd-con-smb.cc b/src/gnome-cmd-con-smb.cc
index 64bcad6..bb42b8c 100644
--- a/src/gnome-cmd-con-smb.cc
+++ b/src/gnome-cmd-con-smb.cc
@@ -246,5 +246,5 @@ GtkType gnome_cmd_con_smb_get_type ()
GnomeCmdCon *gnome_cmd_con_smb_new ()
{
- return GNOME_CMD_CON (gtk_type_new (GNOME_CMD_TYPE_CON_SMB));
+ return GNOME_CMD_CON (g_object_new (GNOME_CMD_TYPE_CON_SMB, NULL));
}
diff --git a/src/gnome-cmd-dir-indicator.cc b/src/gnome-cmd-dir-indicator.cc
index 06d583f..59d01c7 100644
--- a/src/gnome-cmd-dir-indicator.cc
+++ b/src/gnome-cmd-dir-indicator.cc
@@ -532,7 +532,7 @@ GtkType gnome_cmd_dir_indicator_get_type ()
GtkWidget *gnome_cmd_dir_indicator_new (GnomeCmdFileSelector *fs)
{
- GnomeCmdDirIndicator *dir_indicator = (GnomeCmdDirIndicator *) gtk_type_new (GNOME_CMD_TYPE_DIR_INDICATOR);
+ GnomeCmdDirIndicator *dir_indicator = (GnomeCmdDirIndicator *) g_object_new (GNOME_CMD_TYPE_DIR_INDICATOR, NULL);
g_signal_connect (dir_indicator, "button-press-event", G_CALLBACK (on_dir_indicator_clicked), fs);
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index df00c9e..f060567 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -285,7 +285,7 @@ GnomeCmdDir *gnome_cmd_dir_new_from_info (GnomeVFSFileInfo *info, GnomeCmdDir *p
return dir;
}
- dir = (GnomeCmdDir *) gtk_type_new (GNOME_CMD_TYPE_DIR);
+ dir = (GnomeCmdDir *) g_object_new (GNOME_CMD_TYPE_DIR, NULL);
gnome_cmd_file_setup (GNOME_CMD_FILE (dir), info, parent);
dir->priv->con = con;
@@ -316,7 +316,7 @@ GnomeCmdDir *gnome_cmd_dir_new_with_con (GnomeVFSFileInfo *info, GnomeCmdPath *p
return dir;
}
- dir = (GnomeCmdDir *) gtk_type_new (GNOME_CMD_TYPE_DIR);
+ dir = (GnomeCmdDir *) g_object_new (GNOME_CMD_TYPE_DIR, NULL);
gnome_cmd_file_setup (GNOME_CMD_FILE (dir), info, NULL);
dir->priv->con = con;
@@ -357,7 +357,7 @@ GnomeCmdDir *gnome_cmd_dir_new (GnomeCmdCon *con, GnomeCmdPath *path)
res = gnome_vfs_get_file_info_uri (uri, info, infoOpts);
if (res == GNOME_VFS_OK)
{
- dir = (GnomeCmdDir *) gtk_type_new (GNOME_CMD_TYPE_DIR);
+ dir = (GnomeCmdDir *) g_object_new (GNOME_CMD_TYPE_DIR, NULL);
gnome_cmd_file_setup (GNOME_CMD_FILE (dir), info, NULL);
dir->priv->con = con;
diff --git a/src/gnome-cmd-file-popmenu.cc b/src/gnome-cmd-file-popmenu.cc
index 0ab1646..36a85d9 100644
--- a/src/gnome-cmd-file-popmenu.cc
+++ b/src/gnome-cmd-file-popmenu.cc
@@ -470,7 +470,7 @@ GtkWidget *gnome_cmd_file_popmenu_new (GnomeCmdFileList *fl)
GList *files = fl->get_selected_files();
if (!files) return NULL;
- GnomeCmdFilePopmenu *menu = (GnomeCmdFilePopmenu *) gtk_type_new (GNOME_CMD_TYPE_FILE_POPMENU);
+ GnomeCmdFilePopmenu *menu = (GnomeCmdFilePopmenu *) g_object_new (GNOME_CMD_TYPE_FILE_POPMENU, NULL);
GnomeCmdFile *f = (GnomeCmdFile *) files->data;
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index d8a957a..696e076 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -849,7 +849,7 @@ GtkType gnome_cmd_file_selector_get_type ()
GtkWidget *gnome_cmd_file_selector_new ()
{
- GnomeCmdFileSelector *fs = (GnomeCmdFileSelector *) gtk_type_new (GNOME_CMD_TYPE_FILE_SELECTOR);
+ GnomeCmdFileSelector *fs = (GnomeCmdFileSelector *) g_object_new (GNOME_CMD_TYPE_FILE_SELECTOR, NULL);
return *fs;
}
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 128ef46..52b155f 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -167,7 +167,7 @@ GtkType gnome_cmd_file_get_type ()
GnomeCmdFile *gnome_cmd_file_new (GnomeVFSFileInfo *info, GnomeCmdDir *dir)
{
- GnomeCmdFile *f = (GnomeCmdFile *) gtk_type_new (GNOME_CMD_TYPE_FILE);
+ GnomeCmdFile *f = (GnomeCmdFile *) g_object_new (GNOME_CMD_TYPE_FILE, NULL);
gnome_cmd_file_setup (f, info, dir);
diff --git a/src/gnome-cmd-list-popmenu.cc b/src/gnome-cmd-list-popmenu.cc
index e4d0a12..b0d374f 100644
--- a/src/gnome-cmd-list-popmenu.cc
+++ b/src/gnome-cmd-list-popmenu.cc
@@ -132,7 +132,7 @@ GtkWidget *gnome_cmd_list_popmenu_new (GnomeCmdFileSelector *fs)
if (popmenu_uiinfo[i].type == GNOME_APP_UI_ITEM)
popmenu_uiinfo[i].user_data = fs;
- GnomeCmdListPopmenu *menu = (GnomeCmdListPopmenu *) gtk_type_new (GNOME_CMD_TYPE_LIST_POPMENU);
+ GnomeCmdListPopmenu *menu = (GnomeCmdListPopmenu *) g_object_new (GNOME_CMD_TYPE_LIST_POPMENU, NULL);
// Fill the menu
diff --git a/src/gnome-cmd-main-menu.cc b/src/gnome-cmd-main-menu.cc
index 055aeb3..3c0c03f 100644
--- a/src/gnome-cmd-main-menu.cc
+++ b/src/gnome-cmd-main-menu.cc
@@ -865,7 +865,7 @@ static void init (GnomeCmdMainMenu *main_menu)
GtkWidget *gnome_cmd_main_menu_new ()
{
- return (GtkWidget *) gtk_type_new (GNOME_CMD_TYPE_MAIN_MENU);
+ return (GtkWidget *) g_object_new (GNOME_CMD_TYPE_MAIN_MENU, NULL);
}
diff --git a/src/gnome-cmd-make-copy-dialog.cc b/src/gnome-cmd-make-copy-dialog.cc
index c48a82c..6916d4f 100644
--- a/src/gnome-cmd-make-copy-dialog.cc
+++ b/src/gnome-cmd-make-copy-dialog.cc
@@ -129,7 +129,7 @@ GtkWidget *gnome_cmd_make_copy_dialog_new (GnomeCmdFile *f, GnomeCmdDir *dir)
const gchar *labels[] = {""};
- GnomeCmdMakeCopyDialog *dialog = (GnomeCmdMakeCopyDialog *) gtk_type_new (GNOME_CMD_TYPE_MAKE_COPY_DIALOG);
+ GnomeCmdMakeCopyDialog *dialog = (GnomeCmdMakeCopyDialog *) g_object_new (GNOME_CMD_TYPE_MAKE_COPY_DIALOG, NULL);
dialog->priv->f = f;
dialog->priv->dir = dir;
diff --git a/src/gnome-cmd-patternsel-dialog.cc b/src/gnome-cmd-patternsel-dialog.cc
index 3c561fc..6cfc0bd 100644
--- a/src/gnome-cmd-patternsel-dialog.cc
+++ b/src/gnome-cmd-patternsel-dialog.cc
@@ -117,7 +117,7 @@ GtkWidget *gnome_cmd_patternsel_dialog_new (GnomeCmdFileList *fl, gboolean mode)
{
GtkWidget *hbox, *vbox, *label;
GnomeCmdData::SearchConfig &defaults = gnome_cmd_data.search_defaults;
- GnomeCmdPatternselDialog *dialog = (GnomeCmdPatternselDialog *) gtk_type_new (GNOME_CMD_TYPE_PATTERNSEL_DIALOG);
+ GnomeCmdPatternselDialog *dialog = (GnomeCmdPatternselDialog *) g_object_new (GNOME_CMD_TYPE_PATTERNSEL_DIALOG, NULL);
dialog->priv->mode = mode;
dialog->priv->fl = fl;
diff --git a/src/gnome-cmd-plain-path.cc b/src/gnome-cmd-plain-path.cc
index a1fbe0b..871e835 100644
--- a/src/gnome-cmd-plain-path.cc
+++ b/src/gnome-cmd-plain-path.cc
@@ -168,7 +168,7 @@ GtkType gnome_cmd_plain_path_get_type ()
GnomeCmdPath *gnome_cmd_plain_path_new (const gchar *path)
{
- GnomeCmdPlainPath *plain_path = (GnomeCmdPlainPath *) gtk_type_new (GNOME_CMD_TYPE_PLAIN_PATH);
+ GnomeCmdPlainPath *plain_path = (GnomeCmdPlainPath *) g_object_new (GNOME_CMD_TYPE_PLAIN_PATH, NULL);
plain_path->priv->path = g_strdup (path);
return GNOME_CMD_PATH (plain_path);
diff --git a/src/gnome-cmd-prepare-xfer-dialog.cc b/src/gnome-cmd-prepare-xfer-dialog.cc
index 6ae830c..9b171da 100644
--- a/src/gnome-cmd-prepare-xfer-dialog.cc
+++ b/src/gnome-cmd-prepare-xfer-dialog.cc
@@ -383,7 +383,7 @@ GtkWidget *gnome_cmd_prepare_xfer_dialog_new (GnomeCmdFileSelector *from, GnomeC
g_return_val_if_fail (to!=NULL, NULL);
gchar *dest_str = NULL;
- GnomeCmdPrepareXferDialog *dialog = (GnomeCmdPrepareXferDialog *) gtk_type_new (GNOME_CMD_TYPE_PREPARE_XFER_DIALOG);
+ GnomeCmdPrepareXferDialog *dialog = (GnomeCmdPrepareXferDialog *) g_object_new (GNOME_CMD_TYPE_PREPARE_XFER_DIALOG, NULL);
dialog->src_files = from->file_list()->get_selected_files();
gnome_cmd_file_list_ref (dialog->src_files);
diff --git a/src/gnome-cmd-quicksearch-popup.cc b/src/gnome-cmd-quicksearch-popup.cc
index 0f341e6..d64786c 100644
--- a/src/gnome-cmd-quicksearch-popup.cc
+++ b/src/gnome-cmd-quicksearch-popup.cc
@@ -325,7 +325,7 @@ GtkWidget *gnome_cmd_quicksearch_popup_new (GnomeCmdFileList *fl)
{
GnomeCmdQuicksearchPopup *popup;
- popup = (GnomeCmdQuicksearchPopup *) gtk_type_new (GNOME_CMD_TYPE_QUICKSEARCH_POPUP);
+ popup = (GnomeCmdQuicksearchPopup *) g_object_new (GNOME_CMD_TYPE_QUICKSEARCH_POPUP, NULL);
GTK_WINDOW (popup)->type = GTK_WINDOW_POPUP;
popup->priv->fl = fl;
popup->priv->last_focused_file = NULL;
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index 5088307..39b4c08 100644
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -972,7 +972,7 @@ GtkType gnome_cmd_search_dialog_get_type ()
GtkWidget *gnome_cmd_search_dialog_new (GnomeCmdDir *default_dir)
{
gchar *new_path;
- GnomeCmdSearchDialog *dialog = (GnomeCmdSearchDialog *) gtk_type_new (GNOME_CMD_TYPE_SEARCH_DIALOG);
+ GnomeCmdSearchDialog *dialog = (GnomeCmdSearchDialog *) g_object_new (GNOME_CMD_TYPE_SEARCH_DIALOG, NULL);
gchar *path = gnome_cmd_dir_is_local (default_dir) ? GNOME_CMD_FILE (default_dir)->get_real_path() : GNOME_CMD_FILE (default_dir)->get_path();
if (path[strlen(path)-1] != '/')
diff --git a/src/gnome-cmd-smb-path.cc b/src/gnome-cmd-smb-path.cc
index a2c7c88..525a6ec 100644
--- a/src/gnome-cmd-smb-path.cc
+++ b/src/gnome-cmd-smb-path.cc
@@ -227,7 +227,7 @@ GtkType gnome_cmd_smb_path_get_type ()
GnomeCmdPath *gnome_cmd_smb_path_new (const gchar *workgroup, const gchar *resource, const gchar *resource_path)
{
- GnomeCmdSmbPath *smb_path = (GnomeCmdSmbPath *) gtk_type_new (GNOME_CMD_TYPE_SMB_PATH);
+ GnomeCmdSmbPath *smb_path = (GnomeCmdSmbPath *) g_object_new (GNOME_CMD_TYPE_SMB_PATH, NULL);
if (workgroup)
{
diff --git a/src/gnome-cmd-xfer-progress-win.cc b/src/gnome-cmd-xfer-progress-win.cc
index 01bb3e6..7ffd515 100644
--- a/src/gnome-cmd-xfer-progress-win.cc
+++ b/src/gnome-cmd-xfer-progress-win.cc
@@ -117,7 +117,7 @@ static void init (GnomeCmdXferProgressWin *win)
GtkWidget *gnome_cmd_xfer_progress_win_new (guint no_of_files)
{
- GnomeCmdXferProgressWin *win = (GnomeCmdXferProgressWin *) gtk_type_new (GNOME_CMD_TYPE_XFER_PROGRESS_WIN);
+ GnomeCmdXferProgressWin *win = (GnomeCmdXferProgressWin *) g_object_new (GNOME_CMD_TYPE_XFER_PROGRESS_WIN, NULL);
if (no_of_files<2)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]