Use gtk version of various functions instead of gnome versions. Rest

of the file was converted long ago.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12012 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-11-22 04:00:23 +00:00
parent 154bfc33c2
commit 660fd805d5
3 changed files with 13 additions and 11 deletions

View File

@ -1,5 +1,10 @@
2005-11-21 David Hampton <hampton@employees.org>
* src/import-export/import-main-matcher.c:
* src/register/register-gnome/gnucash-sheet.c: Use gtk version of
various functions instead of gnome versions. Rest of the file was
converted long ago.
* src/gnome/glade/userpass.glade:
* src/gnome/dialog-userpass.c: Finish conversion to a
GtkDialog. Redo dialog as a table instead of boxes in boxes.

View File

@ -403,8 +403,8 @@ GNCImportMainMatcher *gnc_gen_trans_list_new (GtkWidget *parent,
heading_label = glade_xml_get_widget (xml, "heading_label");
g_assert (heading_label != NULL);
/*if (parent)
gnome_dialog_set_parent (GNOME_DIALOG (info->dialog),
/* if (parent)
gtk_window_set_transient_for (GTK_WINDOW (info->dialog),
GTK_WINDOW (parent));*/
/* Connect signals */
@ -486,7 +486,6 @@ GNCImportMainMatcher *gnc_gen_trans_list_new (GtkWidget *parent,
/* Hide on close instead of destroy since we still need the values
from the boxes. */
/*gnome_dialog_close_hides (GNOME_DIALOG (info->dialog), TRUE);*/
gtk_widget_show_all (GTK_WIDGET (info->dialog));
return info;
}
@ -497,7 +496,7 @@ gboolean gnc_gen_trans_list_run (GNCImportMainMatcher *info)
/* DEBUG("Begin"); */
result = gnome_dialog_run_and_close (GNOME_DIALOG (info->dialog));
result = gtk_dialog_run (GTK_DIALOG (info->dialog));
/* DEBUG("Result was %d", result); */

View File

@ -1326,9 +1326,8 @@ gnucash_button_press_event (GtkWidget *widget, GdkEventButton *event)
extend_selection);
if (do_popup)
gnome_popup_menu_do_popup_modal
(sheet->popup, NULL, NULL, event,
sheet->popup_data, widget);
gtk_menu_popup(GTK_MENU(sheet->popup), NULL, NULL, NULL,
sheet->popup_data, event->button, event->time);
return TRUE;
}
@ -1356,9 +1355,8 @@ gnucash_button_press_event (GtkWidget *widget, GdkEventButton *event)
new_virt_loc, event->x, changed_cells, FALSE);
if (do_popup)
gnome_popup_menu_do_popup_modal
(sheet->popup, NULL, NULL, event, sheet->popup_data, widget);
gtk_menu_popup(GTK_MENU(sheet->popup), NULL, NULL, NULL,
sheet->popup_data, event->button, event->time);
return TRUE;
}