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
62fd44a5
Kaydet (Commit)
62fd44a5
authored
Ara 02, 2011
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
attach signals after activation of the control to avoid warnings
üst
53f89022
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
salprn-gtk.cxx
vcl/unx/gtk/gdi/salprn-gtk.cxx
+11
-8
No files found.
vcl/unx/gtk/gdi/salprn-gtk.cxx
Dosyayı görüntüle @
62fd44a5
...
@@ -641,6 +641,14 @@ GtkPrintDialog::impl_initCustomTab()
...
@@ -641,6 +641,14 @@ GtkPrintDialog::impl_initCustomTab()
continue
;
continue
;
else
else
{
{
// change handlers for all the controls set up in this block
// should be set _after_ the control has been made (in)active,
// because:
// 1. value of the property is _known_--we are using it to
// _set_ the control, right?--no need to change it back .-)
// 2. it may cause warning because the widget may not
// have been placed in m_aControlToPropertyMap yet
GtkWidget
*
pWidget
=
NULL
;
GtkWidget
*
pWidget
=
NULL
;
beans
::
PropertyValue
*
pVal
=
NULL
;
beans
::
PropertyValue
*
pVal
=
NULL
;
if
(
aCtrlType
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"Bool"
))
&&
pCurParent
)
if
(
aCtrlType
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"Bool"
))
&&
pCurParent
)
...
@@ -649,7 +657,6 @@ GtkPrintDialog::impl_initCustomTab()
...
@@ -649,7 +657,6 @@ GtkPrintDialog::impl_initCustomTab()
rtl
::
OUStringToOString
(
aText
,
RTL_TEXTENCODING_UTF8
).
getStr
());
rtl
::
OUStringToOString
(
aText
,
RTL_TEXTENCODING_UTF8
).
getStr
());
lcl_setHelpText
(
pWidget
,
aHelpTexts
,
0
);
lcl_setHelpText
(
pWidget
,
aHelpTexts
,
0
);
m_aControlToPropertyMap
[
pWidget
]
=
aPropertyName
;
m_aControlToPropertyMap
[
pWidget
]
=
aPropertyName
;
g_signal_connect
(
pWidget
,
"toggled"
,
G_CALLBACK
(
GtkPrintDialog
::
UIOption_CheckHdl
),
this
);
sal_Bool
bVal
=
sal_False
;
sal_Bool
bVal
=
sal_False
;
pVal
=
m_rController
.
getValue
(
aPropertyName
);
pVal
=
m_rController
.
getValue
(
aPropertyName
);
...
@@ -658,6 +665,7 @@ GtkPrintDialog::impl_initCustomTab()
...
@@ -658,6 +665,7 @@ GtkPrintDialog::impl_initCustomTab()
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
pWidget
),
bVal
);
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
pWidget
),
bVal
);
gtk_widget_set_sensitive
(
pWidget
,
gtk_widget_set_sensitive
(
pWidget
,
m_rController
.
isUIOptionEnabled
(
aPropertyName
)
&&
pVal
!=
NULL
);
m_rController
.
isUIOptionEnabled
(
aPropertyName
)
&&
pVal
!=
NULL
);
g_signal_connect
(
pWidget
,
"toggled"
,
G_CALLBACK
(
GtkPrintDialog
::
UIOption_CheckHdl
),
this
);
}
}
else
if
(
aCtrlType
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"Radio"
))
&&
pCurParent
)
else
if
(
aCtrlType
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"Radio"
))
&&
pCurParent
)
{
{
...
@@ -684,11 +692,11 @@ GtkPrintDialog::impl_initCustomTab()
...
@@ -684,11 +692,11 @@ GtkPrintDialog::impl_initCustomTab()
gtk_box_pack_start
(
GTK_BOX
(
pVbox
),
pRow
,
FALSE
,
FALSE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
pVbox
),
pRow
,
FALSE
,
FALSE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
pRow
),
pWidget
,
FALSE
,
FALSE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
pRow
),
pWidget
,
FALSE
,
FALSE
,
0
);
aPropertyToDependencyRowMap
[
aPropertyName
+
rtl
::
OUString
::
valueOf
(
m
)]
=
pRow
;
aPropertyToDependencyRowMap
[
aPropertyName
+
rtl
::
OUString
::
valueOf
(
m
)]
=
pRow
;
g_signal_connect
(
pWidget
,
"toggled"
,
G_CALLBACK
(
GtkPrintDialog
::
UIOption_RadioHdl
),
this
);
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
pWidget
),
m
==
nSelectVal
);
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
pWidget
),
m
==
nSelectVal
);
gtk_widget_set_sensitive
(
pWidget
,
gtk_widget_set_sensitive
(
pWidget
,
m_rController
.
isUIOptionEnabled
(
aPropertyName
)
&&
pVal
!=
NULL
);
m_rController
.
isUIOptionEnabled
(
aPropertyName
)
&&
pVal
!=
NULL
);
g_signal_connect
(
pWidget
,
"toggled"
,
G_CALLBACK
(
GtkPrintDialog
::
UIOption_RadioHdl
),
this
);
}
}
if
(
pGroup
)
if
(
pGroup
)
...
@@ -718,11 +726,6 @@ GtkPrintDialog::impl_initCustomTab()
...
@@ -718,11 +726,6 @@ GtkPrintDialog::impl_initCustomTab()
pVal
=
m_rController
.
getValue
(
aPropertyName
);
pVal
=
m_rController
.
getValue
(
aPropertyName
);
if
(
pVal
&&
pVal
->
Value
.
hasValue
())
if
(
pVal
&&
pVal
->
Value
.
hasValue
())
pVal
->
Value
>>=
nSelectVal
;
pVal
->
Value
>>=
nSelectVal
;
// set active value before attaching the change handler, because:
// 1. value of the property is _known_--we are using it to
// _set_ the control, right?--no need to change it back .-)
// 2. it would cause assertion because the widget has not
// been placed in m_aControlToPropertyMap yet
gtk_combo_box_set_active
(
GTK_COMBO_BOX
(
pWidget
),
nSelectVal
);
gtk_combo_box_set_active
(
GTK_COMBO_BOX
(
pWidget
),
nSelectVal
);
g_signal_connect
(
pWidget
,
"changed"
,
G_CALLBACK
(
GtkPrintDialog
::
UIOption_SelectHdl
),
this
);
g_signal_connect
(
pWidget
,
"changed"
,
G_CALLBACK
(
GtkPrintDialog
::
UIOption_SelectHdl
),
this
);
}
}
...
...
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