Commit 7d79bbdf authored by Javier Jardón's avatar Javier Jardón

Use accessor functions instead direct access. Final patch

Also, added -DGSEAL_ENABLE to configure.in to not use direct
access again.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=594716
parent 2376dec8
......@@ -65,6 +65,8 @@ dnl This could be use one day not to compile all debugging message
dnl GNOME_DEBUG_CHECK
GNOME_MAINTAINER_MODE_DEFINES
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -DGSEAL_ENABLE"
AC_SUBST(DISABLE_DEPRECATED)
dnl ***************** GENERAL **********************************
......
......@@ -2540,7 +2540,7 @@ brasero_burn_dialog_init (BraseroBurnDialog * obj)
alignment = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
gtk_widget_show (alignment);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 6, 8, 6, 6);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (obj)->vbox),
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (obj))),
alignment,
TRUE,
TRUE,
......
......@@ -1132,7 +1132,7 @@ brasero_burn_options_install_missing (BraseroPluginErrorType type,
int xid = 0;
/* Get the xid */
xid = gdk_x11_drawable_get_xid (GDK_DRAWABLE (GTK_WIDGET (user_data)->window));
xid = gdk_x11_drawable_get_xid (GDK_DRAWABLE (gtk_widget_get_window (GTK_WIDGET (user_data))));
package = brasero_pk_new ();
cancel = g_cancellable_new ();
......
......@@ -245,13 +245,13 @@ brasero_file_chooser_customize (GtkWidget *widget, gpointer null_data)
&& (!strcmp (stock_id,GTK_STOCK_ADD)
|| !strcmp (stock_id, GTK_STOCK_REMOVE))) {
GtkRequisition request;
gint width, height;
gint width;
GtkWidget *parent;
/* This is to avoid having the left part too small */
parent = gtk_widget_get_parent (widget);
width = parent->requisition.width;
height = parent->requisition.height;
gtk_widget_get_requisition (parent, &request);
width = request.width;
gtk_widget_size_request (parent, &request);
if (request.width >= width)
gtk_widget_set_size_request (parent,
......
......@@ -1319,7 +1319,7 @@ brasero_project_install_missing (BraseroPluginErrorType type,
/* Get the xid */
parent = gtk_widget_get_toplevel (GTK_WIDGET (project));
xid = gdk_x11_drawable_get_xid (GDK_DRAWABLE (GTK_WIDGET (parent)->window));
xid = gdk_x11_drawable_get_xid (GDK_DRAWABLE (gtk_widget_get_window (parent)));
package = brasero_pk_new ();
cancel = g_cancellable_new ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment