brasero r1470 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1470 - in trunk: . src
- Date: Wed, 5 Nov 2008 12:54:29 +0000 (UTC)
Author: philippr
Date: Wed Nov 5 12:54:29 2008
New Revision: 1470
URL: http://svn.gnome.org/viewvc/brasero?rev=1470&view=rev
Log:
Add function so set the medium and handles \"blank/check again\" in a
more graceful way (block the response signal)
* src/brasero-tool-dialog.c (brasero_tool_dialog_run),
(brasero_tool_dialog_set_medium):
* src/brasero-tool-dialog.h:
Modified:
trunk/ChangeLog
trunk/src/brasero-tool-dialog.c
trunk/src/brasero-tool-dialog.h
Modified: trunk/src/brasero-tool-dialog.c
==============================================================================
--- trunk/src/brasero-tool-dialog.c (original)
+++ trunk/src/brasero-tool-dialog.c Wed Nov 5 12:54:29 2008
@@ -258,6 +258,7 @@
}
end:
+
gdk_window_set_cursor (GTK_WIDGET (self)->window, NULL);
gtk_button_set_label (GTK_BUTTON (self->priv->cancel), GTK_STOCK_CLOSE);
@@ -268,6 +269,8 @@
if (medium)
g_object_unref (medium);
+
+ g_signal_stop_emission_by_name (self, "response");
}
static void
@@ -353,6 +356,16 @@
return brasero_medium_selection_get_active (BRASERO_MEDIUM_SELECTION (self->priv->selector));
}
+void
+brasero_tool_dialog_set_medium (BraseroToolDialog *self,
+ BraseroMedium *medium)
+{
+ if (!medium)
+ return;
+
+ brasero_medium_selection_set_active (BRASERO_MEDIUM_SELECTION (self->priv->selector), medium);
+}
+
static void
brasero_tool_dialog_drive_changed_cb (GtkComboBox *combo_box,
BraseroToolDialog *self)
Modified: trunk/src/brasero-tool-dialog.h
==============================================================================
--- trunk/src/brasero-tool-dialog.h (original)
+++ trunk/src/brasero-tool-dialog.h Wed Nov 5 12:54:29 2008
@@ -101,6 +101,10 @@
BraseroMedium *
brasero_tool_dialog_get_medium (BraseroToolDialog *dialog);
+void
+brasero_tool_dialog_set_medium (BraseroToolDialog *dialog,
+ BraseroMedium *medium);
+
G_END_DECLS
#endif /* BRASERO_TOOL_DIALOG_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]