From 91b7c8bb605dfc8090922d765b9ac4cffef973fe Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Thu, 23 Nov 2017 21:00:55 +0530 Subject: lokdialog: gtv: Add width and height props to Dialog GObject Change-Id: I488a94d9c6cefd37624f755c6308f0b75595df84 --- libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx') diff --git a/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx b/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx index fee24c6a0f25..521c49ea3eb2 100644 --- a/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx @@ -312,7 +312,9 @@ void openLokDialog( GtkWidget* pSelector, gpointer /*pItem*/ ) { GtvApplicationWindow* window = GTV_APPLICATION_WINDOW(gtk_widget_get_toplevel(pSelector)); gchar* pDialogId = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(pSelector)); - GtkWidget* pDialog = gtv_lok_dialog_new(LOK_DOC_VIEW(window->lokdocview), pDialogId); + // Set the width, height of the dialog to something large enough to be able + // to render any dialog + GtkWidget* pDialog = gtv_lok_dialog_new(LOK_DOC_VIEW(window->lokdocview), pDialogId, 1024, 768); gtv_application_window_register_child_window(window, GTK_WINDOW(pDialog)); g_signal_connect(pDialog, "destroy", G_CALLBACK(destroyLokDialog), window); g_signal_connect(pDialog, "delete-event", G_CALLBACK(deleteLokDialog), window); -- cgit