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
45b82d9f
Kaydet (Commit)
45b82d9f
authored
Mar 16, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
libreofficekit: various loplugin fixes
Change-Id: I317f8f5397bfeb9c0d6ecaaa656cb31e66eece0b
üst
144b5e68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
gtktiledviewer.cxx
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
+1
-1
lokdocview.cxx
libreofficekit/source/gtk/lokdocview.cxx
+9
-7
No files found.
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
Dosyayı görüntüle @
45b82d9f
...
...
@@ -112,7 +112,7 @@ void toggleEditing(GtkWidget* /*pButton*/, gpointer /*pItem*/)
{
LOKDocView
*
pLOKDocView
=
LOK_DOCVIEW
(
pDocView
);
bool
bActive
=
gtk_toggle_tool_button_get_active
(
GTK_TOGGLE_TOOL_BUTTON
(
pEnableEditing
));
if
(
lok_docview_get_edit
(
pLOKDocView
)
!=
bActive
)
if
(
bool
(
lok_docview_get_edit
(
pLOKDocView
)
)
!=
bActive
)
lok_docview_set_edit
(
pLOKDocView
,
bActive
);
}
...
...
libreofficekit/source/gtk/lokdocview.cxx
Dosyayı görüntüle @
45b82d9f
...
...
@@ -29,8 +29,8 @@
// Number of handles around a graphic selection.
#define GRAPHIC_HANDLE_COUNT 8
static
void
lok_docview_class_init
(
LOKDocViewClass
*
pClass
);
static
void
lok_docview_init
(
LOKDocView
*
pDocView
);
static
void
lok_docview_class_init
(
gpointer
);
static
void
lok_docview_init
(
GTypeInstance
*
,
gpointer
);
static
float
pixelToTwip
(
float
nInput
);
static
gboolean
renderOverlay
(
GtkWidget
*
pWidget
,
GdkEventExpose
*
pEvent
,
gpointer
pData
);
...
...
@@ -301,8 +301,8 @@ SAL_DLLPUBLIC_EXPORT guint lok_docview_get_type()
pName
,
sizeof
(
LOKDocView
),
sizeof
(
LOKDocViewClass
),
(
GtkClassInitFunc
)
lok_docview_class_init
,
(
GtkObjectInitFunc
)
lok_docview_init
,
lok_docview_class_init
,
lok_docview_init
,
NULL
,
NULL
,
(
GtkClassInitFunc
)
NULL
...
...
@@ -321,8 +321,9 @@ enum
static
guint
docview_signals
[
LAST_SIGNAL
]
=
{
0
};
static
void
lok_docview_class_init
(
LOKDocViewClass
*
pClass
)
static
void
lok_docview_class_init
(
gpointer
ptr
)
{
LOKDocViewClass
*
pClass
=
static_cast
<
LOKDocViewClass
*>
(
ptr
);
GObjectClass
*
gobject_class
=
G_OBJECT_CLASS
(
pClass
);
pClass
->
edit_changed
=
NULL
;
docview_signals
[
EDIT_CHANGED
]
=
...
...
@@ -336,8 +337,9 @@ static void lok_docview_class_init( LOKDocViewClass* pClass )
G_TYPE_BOOLEAN
);
}
static
void
lok_docview_init
(
LOKDocView
*
pDocView
)
static
void
lok_docview_init
(
GTypeInstance
*
,
gpointer
ptr
)
{
LOKDocView
*
pDocView
=
static_cast
<
LOKDocView
*>
(
ptr
);
// Gtk ScrolledWindow is apparently not fully initialised yet, we specifically
// have to set the [hv]adjustment to prevent GTK assertions from firing, see
// https://bugzilla.gnome.org/show_bug.cgi?id=438114 for more info.
...
...
@@ -878,7 +880,7 @@ static gboolean lok_docview_callback(gpointer pData)
}
break
;
default:
g_assert
(
0
);
g_assert
(
false
);
break
;
}
...
...
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