Bug 560135 - Print when the user double clicks a printer
* gtk/gtkprintunixdialog.c: add handling of double click to
GtkPrintUnixDialog.
svn path=/branches/gtk-2-14/; revision=21869
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
2008-12-10 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from trunk:
|
||||
|
||||
Bug 560135 - Print when the user double clicks a printer
|
||||
|
||||
* gtk/gtkprintunixdialog.c: add handling of double click to
|
||||
GtkPrintUnixDialog. Patch by Marek Kasik
|
||||
|
||||
2008-12-10 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Bug 563991 – gtk_file_chooser_button_new_with_backend is deprecated
|
||||
|
||||
@@ -1696,6 +1696,19 @@ update_range_sensitivity (GtkWidget *button,
|
||||
gtk_widget_set_sensitive (range, active);
|
||||
}
|
||||
|
||||
void
|
||||
emit_ok_response (GtkTreeView *tree_view,
|
||||
GtkTreePath *path,
|
||||
GtkTreeViewColumn *column,
|
||||
gpointer *user_data)
|
||||
{
|
||||
GtkPrintUnixDialog *print_dialog;
|
||||
|
||||
print_dialog = (GtkPrintUnixDialog *) user_data;
|
||||
|
||||
gtk_dialog_response (GTK_DIALOG (print_dialog), GTK_RESPONSE_OK);
|
||||
}
|
||||
|
||||
static void
|
||||
create_main_page (GtkPrintUnixDialog *dialog)
|
||||
{
|
||||
@@ -1774,6 +1787,8 @@ create_main_page (GtkPrintUnixDialog *dialog)
|
||||
NULL);
|
||||
gtk_tree_view_column_set_cell_data_func (column, renderer, set_cell_sensitivity_func, NULL, NULL);
|
||||
gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
|
||||
|
||||
g_signal_connect (GTK_TREE_VIEW (treeview), "row-activated", G_CALLBACK (emit_ok_response), dialog);
|
||||
|
||||
gtk_widget_show (treeview);
|
||||
gtk_container_add (GTK_CONTAINER (scrolled), treeview);
|
||||
|
||||
Reference in New Issue
Block a user