Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4151c09d
Kaydet (Commit)
4151c09d
authored
Eyl 23, 2016
tarafından
Pranav Kant
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gtktiledviewer: Wrap dialogs in a GtkScrolledWindow
Change-Id: I33be18779ea680f7a9c20814ca3c3d94d206900b
üst
451c7de9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
gtktiledviewer.cxx
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
+8
-2
No files found.
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
Dosyayı görüntüle @
4151c09d
...
@@ -487,7 +487,9 @@ static void documentRedline(GtkWidget* pButton, gpointer /*pItem*/)
...
@@ -487,7 +487,9 @@ static void documentRedline(GtkWidget* pButton, gpointer /*pItem*/)
"Jump"
,
"Jump"
,
GTK_RESPONSE_APPLY
,
GTK_RESPONSE_APPLY
,
nullptr
);
nullptr
);
gtk_window_set_default_size
(
GTK_WINDOW
(
pDialog
),
800
,
600
);
GtkWidget
*
pContentArea
=
gtk_dialog_get_content_area
(
GTK_DIALOG
(
pDialog
));
GtkWidget
*
pContentArea
=
gtk_dialog_get_content_area
(
GTK_DIALOG
(
pDialog
));
GtkWidget
*
pScrolledWindow
=
gtk_scrolled_window_new
(
nullptr
,
nullptr
);
// Build the table.
// Build the table.
GtkTreeStore
*
pTreeStore
=
gtk_tree_store_new
(
6
,
G_TYPE_INT
,
G_TYPE_STRING
,
G_TYPE_STRING
,
G_TYPE_STRING
,
G_TYPE_STRING
,
G_TYPE_STRING
);
GtkTreeStore
*
pTreeStore
=
gtk_tree_store_new
(
6
,
G_TYPE_INT
,
G_TYPE_STRING
,
G_TYPE_STRING
,
G_TYPE_STRING
,
G_TYPE_STRING
,
G_TYPE_STRING
);
...
@@ -515,7 +517,8 @@ static void documentRedline(GtkWidget* pButton, gpointer /*pItem*/)
...
@@ -515,7 +517,8 @@ static void documentRedline(GtkWidget* pButton, gpointer /*pItem*/)
nullptr
);
nullptr
);
gtk_tree_view_append_column
(
GTK_TREE_VIEW
(
pTreeView
),
pColumn
);
gtk_tree_view_append_column
(
GTK_TREE_VIEW
(
pTreeView
),
pColumn
);
}
}
gtk_box_pack_start
(
GTK_BOX
(
pContentArea
),
pTreeView
,
TRUE
,
TRUE
,
2
);
gtk_container_add
(
GTK_CONTAINER
(
pScrolledWindow
),
pTreeView
);
gtk_box_pack_start
(
GTK_BOX
(
pContentArea
),
pScrolledWindow
,
TRUE
,
TRUE
,
2
);
// Show the dialog.
// Show the dialog.
gtk_widget_show_all
(
pDialog
);
gtk_widget_show_all
(
pDialog
);
...
@@ -589,7 +592,9 @@ static void documentRepair(GtkWidget* pButton, gpointer /*pItem*/)
...
@@ -589,7 +592,9 @@ static void documentRepair(GtkWidget* pButton, gpointer /*pItem*/)
"Jump to state"
,
"Jump to state"
,
GTK_RESPONSE_OK
,
GTK_RESPONSE_OK
,
nullptr
);
nullptr
);
gtk_window_set_default_size
(
GTK_WINDOW
(
pDialog
),
800
,
600
);
GtkWidget
*
pContentArea
=
gtk_dialog_get_content_area
(
GTK_DIALOG
(
pDialog
));
GtkWidget
*
pContentArea
=
gtk_dialog_get_content_area
(
GTK_DIALOG
(
pDialog
));
GtkWidget
*
pScrolledWindow
=
gtk_scrolled_window_new
(
nullptr
,
nullptr
);
// Build the table.
// Build the table.
GtkTreeStore
*
pTreeStore
=
gtk_tree_store_new
(
5
,
G_TYPE_STRING
,
G_TYPE_INT
,
G_TYPE_STRING
,
G_TYPE_STRING
,
G_TYPE_STRING
);
GtkTreeStore
*
pTreeStore
=
gtk_tree_store_new
(
5
,
G_TYPE_STRING
,
G_TYPE_INT
,
G_TYPE_STRING
,
G_TYPE_STRING
,
G_TYPE_STRING
);
...
@@ -620,7 +625,8 @@ static void documentRepair(GtkWidget* pButton, gpointer /*pItem*/)
...
@@ -620,7 +625,8 @@ static void documentRepair(GtkWidget* pButton, gpointer /*pItem*/)
nullptr
);
nullptr
);
gtk_tree_view_append_column
(
GTK_TREE_VIEW
(
pTreeView
),
pColumn
);
gtk_tree_view_append_column
(
GTK_TREE_VIEW
(
pTreeView
),
pColumn
);
}
}
gtk_box_pack_start
(
GTK_BOX
(
pContentArea
),
pTreeView
,
TRUE
,
TRUE
,
2
);
gtk_container_add
(
GTK_CONTAINER
(
pScrolledWindow
),
pTreeView
);
gtk_box_pack_start
(
GTK_BOX
(
pContentArea
),
pScrolledWindow
,
TRUE
,
TRUE
,
2
);
// Show the dialog.
// Show the dialog.
gtk_widget_show_all
(
pDialog
);
gtk_widget_show_all
(
pDialog
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment