gtkmm-documentation - master - Tutorial - Swedish

← Back to actions


Uploaded file by Anders Jonsson on 2023-03-04 21:13:12+00:00
Uploaded file by Anders Jonsson on 2023-03-05 11:30:32+00:00
5#5#
6msgid ""6msgid ""
7msgstr ""7msgstr ""
8"Project-Id-Version: gtkmm-documentation master\n"8"Project-Id-Version: gtkmm-documentation master\n"
9"POT-Creation-Date: 2025-07-08 14:05+0000\n"9"POT-Creation-Date: 2025-07-08 14:05+0000\n"
n10"PO-Revision-Date: 2022-11-19 20:25+0100\n"n10"PO-Revision-Date: 2023-03-05 12:30+0100\n"
11"Last-Translator: Anders Jonsson <anders.jonsson@norsjovallen.se>\n"11"Last-Translator: Anders Jonsson <anders.jonsson@norsjovallen.se>\n"
12"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"12"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
13"Language: sv\n"13"Language: sv\n"
14"MIME-Version: 1.0\n"14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=UTF-8\n"15"Content-Type: text/plain; charset=UTF-8\n"
16"Content-Transfer-Encoding: 8bit\n"16"Content-Transfer-Encoding: 8bit\n"
17"Plural-Forms: nplurals=2; plural=(n != 1);\n"17"Plural-Forms: nplurals=2; plural=(n != 1);\n"
n18"X-Generator: Poedit 3.2\n"n18"X-Generator: Poedit 3.2.2\n"
1919
20#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR220#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
21msgctxt "_"21msgctxt "_"
22msgid "translator-credits"22msgid "translator-credits"
n23msgstr "Anders Jonsson <anders.jonsson@norsjovallen.se>, 2022"n23msgstr "Anders Jonsson <anders.jonsson@norsjovallen.se>, 2022, 2023"
2424
25#. (itstool) path: info/title25#. (itstool) path: info/title
26#: C/index-in.docbook:4626#: C/index-in.docbook:46
27msgid "Programming with <application>gtkmm</application> 4"27msgid "Programming with <application>gtkmm</application> 4"
28msgstr "Programmering med <application>gtkmm</application> 4"28msgstr "Programmering med <application>gtkmm</application> 4"
36"<personname><firstname>Murray</firstname><surname>Cumming</surname></"36"<personname><firstname>Murray</firstname><surname>Cumming</surname></"
37"personname>"37"personname>"
3838
39#. (itstool) path: authorgroup/author39#. (itstool) path: authorgroup/author
40#: C/index-in.docbook:5140#: C/index-in.docbook:51
n41#, fuzzyn
42msgid ""41msgid ""
43"<personname><firstname>Bernhard</firstname><surname>Rieder</surname></"42"<personname><firstname>Bernhard</firstname><surname>Rieder</surname></"
44"personname> <contrib>Chapter on \"Timeouts\".</contrib>"43"personname> <contrib>Chapter on \"Timeouts\".</contrib>"
45msgstr ""44msgstr ""
46"<personname><firstname>Bernhard</firstname><surname>Rieder</surname></"45"<personname><firstname>Bernhard</firstname><surname>Rieder</surname></"
717"du hämtat."716"du hämtat."
718717
719# TODO: root password for su, not sudo?718# TODO: root password for su, not sudo?
720#. (itstool) path: note/para719#. (itstool) path: note/para
721#: C/index-in.docbook:271720#: C/index-in.docbook:271
n722#, fuzzyn
723msgid ""721msgid ""
724"Remember that on a Unix or Linux operating system, you will probably need to "722"Remember that on a Unix or Linux operating system, you will probably need to "
725"be <literal>root</literal> to install software. The <command>su</command> or "723"be <literal>root</literal> to install software. The <command>su</command> or "
726"<command>sudo</command> command will allow you to enter the <literal>root</"724"<command>sudo</command> command will allow you to enter the <literal>root</"
727"literal> password and have <literal>root</literal> status temporarily."725"literal> password and have <literal>root</literal> status temporarily."
2048"kompatibilitet behölls. Om du aldrig använt <application>gtkmm</"2046"kompatibilitet behölls. Om du aldrig använt <application>gtkmm</"
2049"application>-2.4-API:t kan du lugnt ignorera detta kapitel."2047"application>-2.4-API:t kan du lugnt ignorera detta kapitel."
20502048
2051#. (itstool) path: chapter/para2049#. (itstool) path: chapter/para
2052#: C/index-in.docbook:6962050#: C/index-in.docbook:696
n2053#, fuzzyn
2054msgid ""2051msgid ""
2055"<application>gtkmm</application> 3's library is called "2052"<application>gtkmm</application> 3's library is called "
2056"<literal>libgtkmm-3.0</literal> rather than <literal>libgtkmm-2.4</literal> "2053"<literal>libgtkmm-3.0</literal> rather than <literal>libgtkmm-2.4</literal> "
2057"and installs its headers in a similarly-versioned directory, so your pkg-"2054"and installs its headers in a similarly-versioned directory, so your pkg-"
2058"config check should ask for <literal>gtkmm-3.0</literal> rather than "2055"config check should ask for <literal>gtkmm-3.0</literal> rather than "
2115"t som du troligen kommer stöta på när du porterar kod som använt "2112"t som du troligen kommer stöta på när du porterar kod som använt "
2116"<application>gtkmm</application>-2.4. Här är en kort lista:"2113"<application>gtkmm</application>-2.4. Här är en kort lista:"
21172114
2118#. (itstool) path: listitem/simpara2115#. (itstool) path: listitem/simpara
2119#: C/index-in.docbook:7112116#: C/index-in.docbook:711
n2120#, fuzzyn
2121msgid ""2117msgid ""
2122"<classname>Gtk::CellLayout</classname>, used by <classname>Gtk::IconView</"2118"<classname>Gtk::CellLayout</classname>, used by <classname>Gtk::IconView</"
2123"classname>, <classname>Gtk::TreeView::Column</classname> and <classname>Gtk::"2119"classname>, <classname>Gtk::TreeView::Column</classname> and <classname>Gtk::"
2124"ComboBox</classname>, now has a <classname>Gtk::CellArea</classname> which "2120"ComboBox</classname>, now has a <classname>Gtk::CellArea</classname> which "
2125"can be used to specify more details of how the <classname>CellRenderer</"2121"can be used to specify more details of how the <classname>CellRenderer</"
2131"classname> som kan användas för att ange mer detaljer på hur "2127"classname> som kan användas för att ange mer detaljer på hur "
2132"<classname>CellRenderer</classname>-renderarna arrangeras och justeras."2128"<classname>CellRenderer</classname>-renderarna arrangeras och justeras."
21332129
2134#. (itstool) path: listitem/simpara2130#. (itstool) path: listitem/simpara
2135#: C/index-in.docbook:7132131#: C/index-in.docbook:713
n2136#, fuzzyn
2137msgid ""2132msgid ""
2138"Gtk::ComboBox now derives from CellLayout, allowing easier layout and "2133"Gtk::ComboBox now derives from CellLayout, allowing easier layout and "
2139"alignment of its <classname>Gtk::CellRenderer</classname>s."2134"alignment of its <classname>Gtk::CellRenderer</classname>s."
2140msgstr ""2135msgstr ""
2141"Gtk::ComboBox härleds nu från CellLayout, vilket tillåter lättare layout och "2136"Gtk::ComboBox härleds nu från CellLayout, vilket tillåter lättare layout och "
2172"vilket låter deras orientering (vertikal eller horisontell) anges utan att "2167"vilket låter deras orientering (vertikal eller horisontell) anges utan att "
2173"kräva användningen av en härledd klass som <classname>Gtk::HBox</classname>."2168"kräva användningen av en härledd klass som <classname>Gtk::HBox</classname>."
21742169
2175#. (itstool) path: listitem/simpara2170#. (itstool) path: listitem/simpara
2176#: C/index-in.docbook:7202171#: C/index-in.docbook:720
n2177#, fuzzyn
2178msgid ""2172msgid ""
2179"<classname>Gtk::IconView</classname>, <classname>Gtk::TextView</classname>, "2173"<classname>Gtk::IconView</classname>, <classname>Gtk::TextView</classname>, "
2180"<classname>Gtk::TreeView</classname> and other widgets derive from "2174"<classname>Gtk::TreeView</classname> and other widgets derive from "
2181"Scrollable instead of having their own methods such as "2175"Scrollable instead of having their own methods such as "
2182"<methodname>get_vadjustment()</methodname> and instead of having their own "2176"<methodname>get_vadjustment()</methodname> and instead of having their own "
2188"<methodname>get_vadjustment()</methodname> och i stället för att ha sin egen "2182"<methodname>get_vadjustment()</methodname> och i stället för att ha sin egen "
2189"set_scroll_adjustments-signal."2183"set_scroll_adjustments-signal."
21902184
2191#. (itstool) path: listitem/simpara2185#. (itstool) path: listitem/simpara
2192#: C/index-in.docbook:7222186#: C/index-in.docbook:722
n2193#, fuzzyn
2194msgid ""2187msgid ""
2195"<classname>Gtk::Style</classname> and <classname>Gtk::Rc</classname> were "2188"<classname>Gtk::Style</classname> and <classname>Gtk::Rc</classname> were "
2196"removed, replaced by <classname>Gtk::StyleContext</classname>, and "2189"removed, replaced by <classname>Gtk::StyleContext</classname>, and "
2197"<classname>Gtk::StyleProvider</classname>s, such as <classname>Gtk::"2190"<classname>Gtk::StyleProvider</classname>s, such as <classname>Gtk::"
2198"CssProvider</classname>."2191"CssProvider</classname>."
2199msgstr ""2192msgstr ""
2200"<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs "2193"<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs "
2201"bort, ersatta av <classname>Gtk::StyleContext</classname> och olika "2194"bort, ersatta av <classname>Gtk::StyleContext</classname> och olika "
n2202"<classname>Gtk::StyleProvider</classname>, som <classname>Gtk::CssProvider</"n2195"<classname>Gtk::StyleProvider</classname>-klasser, som <classname>Gtk::"
2203"classname>."2196"CssProvider</classname>."
22042197
2205#. (itstool) path: listitem/simpara2198#. (itstool) path: listitem/simpara
2206#: C/index-in.docbook:7242199#: C/index-in.docbook:724
2207msgid ""2200msgid ""
2208"Widget::on_expose_event() was replaced by Widget::on_draw(), which assumes "2201"Widget::on_expose_event() was replaced by Widget::on_draw(), which assumes "
2215"classname> och kräver inte att du anropar <methodname>Cairo::Context::"2208"classname> och kräver inte att du anropar <methodname>Cairo::Context::"
2216"clip()</methodname>."2209"clip()</methodname>."
22172210
2218#. (itstool) path: listitem/simpara2211#. (itstool) path: listitem/simpara
2219#: C/index-in.docbook:7262212#: C/index-in.docbook:726
n2220#, fuzzyn
2221msgid ""2213msgid ""
2222"<classname>Gdk::RGBA</classname> replaces <classname>Color</classname>, "2214"<classname>Gdk::RGBA</classname> replaces <classname>Color</classname>, "
2223"adding an alpha component for opacity. <classname>Colormap</classname> was "2215"adding an alpha component for opacity. <classname>Colormap</classname> was "
2224"removed, along with its awkward use to allocate colors."2216"removed, along with its awkward use to allocate colors."
2225msgstr ""2217msgstr ""
2251"<classname>Gdk::Drawable</classname> togs bort, dess metoder har flyttat "2243"<classname>Gdk::Drawable</classname> togs bort, dess metoder har flyttat "
2252"till <classname>Gdk::Window</classname>."2244"till <classname>Gdk::Window</classname>."
22532245
2254#. (itstool) path: listitem/simpara2246#. (itstool) path: listitem/simpara
2255#: C/index-in.docbook:7322247#: C/index-in.docbook:732
n2256#, fuzzyn
2257msgid ""2248msgid ""
2258"We now use std::vector in several methods instead of the intermediate "2249"We now use std::vector in several methods instead of the intermediate "
2259"*Handle types to make the API clearer."2250"*Handle types to make the API clearer."
2260msgstr ""2251msgstr ""
2261"Vi använder nu std::vector i flera metoder i stället för mellanliggande "2252"Vi använder nu std::vector i flera metoder i stället för mellanliggande "
2272"nya föråldringar har gjorts i senare <application>gtkmm</application> 3.x-"2263"nya föråldringar har gjorts i senare <application>gtkmm</application> 3.x-"
2273"versioner."2264"versioner."
22742265
2275#. (itstool) path: chapter/para2266#. (itstool) path: chapter/para
2276#: C/index-in.docbook:7392267#: C/index-in.docbook:739
n2277#, fuzzyn
2278msgid ""2268msgid ""
2279"As a first step to porting your source code to <application>gtkmm</"2269"As a first step to porting your source code to <application>gtkmm</"
2280"application>-3.0 you should probably ensure that your application builds "2270"application>-3.0 you should probably ensure that your application builds "
2281"with the deprecated <application>gtkmm</application>-2.4 API disabled, by "2271"with the deprecated <application>gtkmm</application>-2.4 API disabled, by "
2282"defining macro such as GTKMM_DISABLE_DEPRECATED. There are some autotools "2272"defining macro such as GTKMM_DISABLE_DEPRECATED. There are some autotools "
2327"behölls. Om du aldrig använt <application>gtkmm</application>-3.0-API:t kan "2317"behölls. Om du aldrig använt <application>gtkmm</application>-3.0-API:t kan "
2328"du lugnt ignorera detta kapitel."2318"du lugnt ignorera detta kapitel."
23292319
2330#. (itstool) path: chapter/para2320#. (itstool) path: chapter/para
2331#: C/index-in.docbook:7542321#: C/index-in.docbook:754
n2332#, fuzzyn
2333msgid ""2322msgid ""
2334"<application>gtkmm</application> 4's library is called "2323"<application>gtkmm</application> 4's library is called "
2335"<literal>libgtkmm-4.0</literal> rather than <literal>libgtkmm-3.0</literal> "2324"<literal>libgtkmm-4.0</literal> rather than <literal>libgtkmm-3.0</literal> "
2336"and installs its headers in a similarly-versioned directory, so your "2325"and installs its headers in a similarly-versioned directory, so your "
2337"<application>pkg-config</application> check should ask for "2326"<application>pkg-config</application> check should ask for "
2344"<literal>gtkmm-4.0</literal> snarare än <literal>gtkmm-3.0</literal>."2333"<literal>gtkmm-4.0</literal> snarare än <literal>gtkmm-3.0</literal>."
23452334
2346#. (itstool) path: chapter/para2335#. (itstool) path: chapter/para
2347#: C/index-in.docbook:7602336#: C/index-in.docbook:760
2348#, fuzzy2337#, fuzzy
nn2338#| msgid ""
2339#| "<application>gtkmm</application>-4.0 is used in combination with "
2340#| "<application>glibmm-2.68</application>, which sets the global locale for "
2341#| "your program. The older <application>glibmm-2.4</application> does not do "
2342#| "that, and <application>gtkmm</application>-3.0 does it only to some "
2343#| "extent. What this means is briefly that if your <application>gtkmm</"
2344#| "application>-3.0 program contains a call to <function>std::locale::"
2345#| "global(std::locale(\"\"))</function>, you can probably remove it. If you "
2346#| "don't want <application>glibmm</application> or <application>gtkmm</"
2347#| "application> to set the global locale for you, you should add a call to "
2348#| "<function>Glib::set_init_to_users_preferred_locale(false)</function> "
2349#| "before any call to <function>Glib::init()</function> or <methodname>Gtk::"
2350#| "Application::create()</methodname>."
2349msgid ""2351msgid ""
2350"<application>gtkmm</application>-4.0 is used in combination with "2352"<application>gtkmm</application>-4.0 is used in combination with "
2351"<application>glibmm-2.68</application>, which sets the global locale for "2353"<application>glibmm-2.68</application>, which sets the global locale for "
2352"your program. The older <application>glibmm-2.4</application> does not do "2354"your program. The older <application>glibmm-2.4</application> does not do "
2353"that, and <application>gtkmm</application>-3.0 does it only to some extent. "2355"that, and <application>gtkmm</application>-3.0 does it only to some extent. "
2532"<classname>Gtk::FontButton</classname> implementerar gränssnittet "2534"<classname>Gtk::FontButton</classname> implementerar gränssnittet "
2533"<classname>Gtk::FontChooser</classname>."2535"<classname>Gtk::FontChooser</classname>."
25342536
2535#. (itstool) path: listitem/simpara2537#. (itstool) path: listitem/simpara
2536#: C/index-in.docbook:8222538#: C/index-in.docbook:822
n2537#, fuzzyn
2538msgid ""2539msgid ""
2539"<classname>Gtk::Widget</classname>: The <methodname>get_preferred_*_vfunc()</"2540"<classname>Gtk::Widget</classname>: The <methodname>get_preferred_*_vfunc()</"
2540"methodname>s have been replaced by <methodname>measure_vfunc()</methodname>. "2541"methodname>s have been replaced by <methodname>measure_vfunc()</methodname>. "
2541"This change only affects custom widgets."2542"This change only affects custom widgets."
2542msgstr ""2543msgstr ""
n2543"<classname>Gtk::Widget</classname>: De olika "n2544"<classname>Gtk::Widget</classname>: De olika metoderna "
2544"<methodname>get_preferred_*_vfunc()</methodname> har ersatts med "2545"<methodname>get_preferred_*_vfunc()</methodname> har ersatts med "
2545"<methodname>measure_vfunc()</methodname>. Denna ändring påverkar bara "2546"<methodname>measure_vfunc()</methodname>. Denna ändring påverkar bara "
2546"anpassade komponenter."2547"anpassade komponenter."
25472548
2548#. (itstool) path: listitem/simpara2549#. (itstool) path: listitem/simpara
2602msgid "<classname>Gtk::Container</classname> has been removed."2603msgid "<classname>Gtk::Container</classname> has been removed."
2603msgstr "<classname>Gtk::Container</classname> har tagits bort."2604msgstr "<classname>Gtk::Container</classname> har tagits bort."
26042605
2605#. (itstool) path: listitem/simpara2606#. (itstool) path: listitem/simpara
2606#: C/index-in.docbook:8332607#: C/index-in.docbook:833
n2607#, fuzzyn
2608#| msgid ""
2609#| "<methodname>Gtk::Widget::show_all()</methodname> has been removed. The "
2610#| "default value of <methodname>Gtk::Widget::property_visible()</"
2611#| "methodname>has been changed from <literal>false</literal> to "
2612#| "<literal>true</literal>."
2613msgid ""2608msgid ""
2614"<methodname>Gtk::Widget::show_all()</methodname> has been removed. The "2609"<methodname>Gtk::Widget::show_all()</methodname> has been removed. The "
2615"default value of <methodname>Gtk::Widget::property_visible()</methodname> "2610"default value of <methodname>Gtk::Widget::property_visible()</methodname> "
2616"has been changed from <literal>false</literal> to <literal>true</literal>."2611"has been changed from <literal>false</literal> to <literal>true</literal>."
2617msgstr ""2612msgstr ""
2704"föråldringar i framtida versioner."2699"föråldringar i framtida versioner."
27052700
2706# TODO: copy paste of wiki page?2701# TODO: copy paste of wiki page?
2707#. (itstool) path: chapter/para2702#. (itstool) path: chapter/para
2708#: C/index-in.docbook:8622703#: C/index-in.docbook:862
n2709#, fuzzyn
2710msgid ""2704msgid ""
2711"As a first step to porting your source code to <application>gtkmm</"2705"As a first step to porting your source code to <application>gtkmm</"
2712"application>-4.0 you should probably ensure that your application builds "2706"application>-4.0 you should probably ensure that your application builds "
2713"with the deprecated <application>gtkmm</application>-3.0 and "2707"with the deprecated <application>gtkmm</application>-3.0 and "
2714"<application>glibmm-2.4</application> API disabled, by defining the macros "2708"<application>glibmm-2.4</application> API disabled, by defining the macros "
2730"Projects/gtkmm/PortingToGtkmm3\">portering från gtkmm-2.4 till gtkmm-3.0</"2724"Projects/gtkmm/PortingToGtkmm3\">portering från gtkmm-2.4 till gtkmm-3.0</"
2731"link> för mer detaljer."2725"link> för mer detaljer."
27322726
2733#. (itstool) path: chapter/para2727#. (itstool) path: chapter/para
2734#: C/index-in.docbook:8692728#: C/index-in.docbook:869
n2735#, fuzzyn
2736#| msgid ""
2737#| "See also <link xlink:href=\"https://developer.gnome.org/gtk4/unstable/gtk-"
2738#| "migrating-3-to-4.html\"> Migrating from GTK 3.x to GTK 4</link>."
2739msgid ""2729msgid ""
2740"See also <link xlink:href=\"https://docs.gtk.org/gtk4/migrating-3to4.html\"> "2730"See also <link xlink:href=\"https://docs.gtk.org/gtk4/migrating-3to4.html\"> "
2741"Migrating from GTK 3.x to GTK 4</link>."2731"Migrating from GTK 3.x to GTK 4</link>."
2742msgstr ""2732msgstr ""
n2743"Se även <link xlink:href=\"https://developer.gnome.org/gtk4/unstable/gtk-"n2733"Se även <link xlink:href=\"https://docs.gtk.org/gtk4/migrating-3to4.html\"> "
2744"migrating-3-to-4.html\"> Migrera från GTK 3.x till GTK 4</link>."2734"Migrera från GTK 3.x till GTK 4</link>."
27452735
2746#. (itstool) path: section/title2736#. (itstool) path: section/title
2747#: C/index-in.docbook:8732737#: C/index-in.docbook:873
n2748#, fuzzyn
2749#| msgid "Changes in <application>gtkmm</application> 3"
2750msgid "Deprecations in <application>gtkmm</application> 4.10"2738msgid "Deprecations in <application>gtkmm</application> 4.10"
n2751msgstr "Ändringar i <application>gtkmm</application> 3"n2739msgstr "Föråldringar i <application>gtkmm</application> 4.10"
27522740
2753#. (itstool) path: section/para2741#. (itstool) path: section/para
2754#: C/index-in.docbook:8742742#: C/index-in.docbook:874
2755msgid ""2743msgid ""
2756"Many classes are deprecated since <application>gtkmm</application> 4.10. "2744"Many classes are deprecated since <application>gtkmm</application> 4.10. "
2760"4.10, which replace some of the deprecated classes. Some example programs in "2748"4.10, which replace some of the deprecated classes. Some example programs in "
2761"this tutorial use classes deprecated since <application>gtkmm</application> "2749"this tutorial use classes deprecated since <application>gtkmm</application> "
2762"4.10. Some other programs use classes available since <application>gtkmm</"2750"4.10. Some other programs use classes available since <application>gtkmm</"
2763"application> 4.10."2751"application> 4.10."
2764msgstr ""2752msgstr ""
nn2753"Många klasser har föråldrats sedan <application>gtkmm</application> 4.10. De "
2754"kan fortfarande användas i <application>gtkmm</application>4-program, "
2755"förutsatt att GTKMM_DISABLE_DEPRECATED och GDKMM_DISABLE_DEPRECATED inte har "
2756"definierats. Det finns också många nya klasser i <application>gtkmm</"
2757"application> 4.10, vilka ersätter några av de föråldrade klasserna. Några "
2758"exempelprogram i denna handledning använder klasser som föråldrats sedan "
2759"<application>gtkmm</application> 4.10. Några andra program använder klasser "
2760"som är tillgängliga sedan <application>gtkmm</application> 4.10."
27652761
2766#. (itstool) path: section/para2762#. (itstool) path: section/para
2767#: C/index-in.docbook:8802763#: C/index-in.docbook:880
nn2764#, fuzzy
2768msgid ""2765msgid ""
2769"Deprecated classes: AppChooser, AppChooserButton, AppChooserDialog, "2766"Deprecated classes: AppChooser, AppChooserButton, AppChooserDialog, "
2770"AppChooserWidget, CellArea, CellAreaBox, CellAreaContext, CellLayout, "2767"AppChooserWidget, CellArea, CellAreaBox, CellAreaContext, CellLayout, "
2771"CellRenderer, CellRendererAccel, CellRendererCombo, CellRendererPixbuf, "2768"CellRenderer, CellRendererAccel, CellRendererCombo, CellRendererPixbuf, "
2772"CellRendererProgress, CellRendererSpin, CellRendererSpinner, "2769"CellRendererProgress, CellRendererSpin, CellRendererSpinner, "
2780"FileChooserNative, FileChooserWidget, FontButton, FontChooser, "2777"FileChooserNative, FileChooserWidget, FontButton, FontChooser, "
2781"FontChooserDialog, FontChooserWidget, MessageDialog, TreeModelColumn, "2778"FontChooserDialog, FontChooserWidget, MessageDialog, TreeModelColumn, "
2782"TreeModelColumnRecord, InfoBar, Assistant, AssistantPage, LockButton, "2779"TreeModelColumnRecord, InfoBar, Assistant, AssistantPage, LockButton, "
2783"Statusbar, VolumeButton."2780"Statusbar, VolumeButton."
2784msgstr ""2781msgstr ""
nn2782"Föråldrade klasser: AppChooser, AppChooserButton, AppChooserDialog, "
2783"AppChooserWidget, CellArea, CellAreaBox, CellAreaContext, CellLayout, "
2784"CellRenderer, CellRendererAccel, CellRendererCombo, CellRendererPixbuf, "
2785"CellRendererProgress, CellRendererSpin, CellRendererSpinner, "
2786"CellRendererText, CellRendererToggle, CellView, ComboBox, ComboBoxText, "
2787"EntryCompletion, IconView, ListStore, ListViewText, StyleContext, "
2788"TreeDragDest, TreeDragSource, TreeIter och andra klasser i treeiter.h, "
2789"TreeModel, TreeModelFilter, TreeModelSort, TreePath, TreeRowReference, "
2790"TreeSelection, TreeSortable, TreeStore, TreeView, TreeViewColumn, namnrymden "
2791"CellRenderer_Generation, namnrymden TreeView_Private, ColorButton, "
2792"ColorChooser, ColorChooserDialog, FileChooser, FileChooserDialog, "
2793"FileChooserNative, FileChooserWidget, FontButton, FontChooser, "
2794"FontChooserDialog, FontChooserWidget, MessageDialog, TreeModelColumn, "
2795"TreeModelColumnRecord, InfoBar."
27852796
2786#. (itstool) path: section/para2797#. (itstool) path: section/para
2787#: C/index-in.docbook:8982798#: C/index-in.docbook:898
nn2799#, fuzzy
2788msgid ""2800msgid ""
2789"New classes and enums: AlertDialog, ColorDialog, ColorDialogButton, "2801"New classes and enums: AlertDialog, ColorDialog, ColorDialogButton, "
2790"ColumnViewSorter, FileDialog, FontDialog, FontDialogButton, FileLauncher, "2802"ColumnViewSorter, FileDialog, FontDialog, FontDialogButton, FileLauncher, "
2791"UriLauncher, ATContext, enums DialogError, FontLevel, Collation."2803"UriLauncher, ATContext, enums DialogError, FontLevel, Collation."
2792msgstr ""2804msgstr ""
nn2805"Nya klasser och enum-uppräkningar: AlertDialog, ColorDialog, "
2806"ColorDialogButton, ColumnViewSorter, FileDialog, FontDialog, "
2807"FontDialogButton, enum: DialogError, FontLevel."
27932808
2794#. (itstool) path: section/para2809#. (itstool) path: section/para
2795#: C/index-in.docbook:9032810#: C/index-in.docbook:903
2796msgid ""2811msgid ""
2797"In most cases there are replacements for the deprecated classes. See the "2812"In most cases there are replacements for the deprecated classes. See the "
2798"reference documentation."2813"reference documentation."
2799msgstr ""2814msgstr ""
nn2815"I de flesta fall finns det ersättningar för de föråldrade klasserna. Se "
2816"referensdokumentationen."
28002817
2801#. (itstool) path: chapter/title2818#. (itstool) path: chapter/title
2802#: C/index-in.docbook:9112819#: C/index-in.docbook:911
2803msgid "Buttons"2820msgid "Buttons"
2804msgstr "Knappar"2821msgstr "Knappar"
2815msgid "Push buttons"2832msgid "Push buttons"
2816msgstr "Tryckknappar"2833msgstr "Tryckknappar"
28172834
2818#. (itstool) path: listitem/para2835#. (itstool) path: listitem/para
2819#: C/index-in.docbook:9222836#: C/index-in.docbook:922
n2820#, fuzzyn
2821msgid ""2837msgid ""
2822"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"2838"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2823"classGtk_1_1Button.html\"><classname>Gtk::Button</classname></link>. "2839"classGtk_1_1Button.html\"><classname>Gtk::Button</classname></link>. "
2824"Standard buttons, usually marked with a label or picture. Pushing one "2840"Standard buttons, usually marked with a label or picture. Pushing one "
2825"triggers an action. See the <link linkend=\"sec-pushbuttons\">Button</link> "2841"triggers an action. See the <link linkend=\"sec-pushbuttons\">Button</link> "
2858msgid "Check buttons"2874msgid "Check buttons"
2859msgstr "Kryssrutor"2875msgstr "Kryssrutor"
28602876
2861#. (itstool) path: listitem/para2877#. (itstool) path: listitem/para
2862#: C/index-in.docbook:9412878#: C/index-in.docbook:941
n2863#, fuzzyn
2864msgid ""2879msgid ""
2865"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"2880"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2866"classGtk_1_1CheckButton.html\"><classname>Gtk::CheckButton</classname></"2881"classGtk_1_1CheckButton.html\"><classname>Gtk::CheckButton</classname></"
2867"link>. These act like ToggleButtons, but show their state in small squares, "2882"link>. These act like ToggleButtons, but show their state in small squares, "
2868"with their label at the side. They should be used in most situations which "2883"with their label at the side. They should be used in most situations which "
3774msgid "Entry Completion"3789msgid "Entry Completion"
3775msgstr "Inmatningskomplettering"3790msgstr "Inmatningskomplettering"
37763791
3777#. (itstool) path: note/para3792#. (itstool) path: note/para
3778#: C/index-in.docbook:13813793#: C/index-in.docbook:1381
n3779#, fuzzyn
3780#| msgid ""
3781#| "Some new classes were added in <application>gtkmm</application> 4 and "
3782#| "<application>glibmm</application> 2.68:"
3783msgid ""3794msgid ""
3784"<classname>Gtk::EntryCompletion</classname> is deprecated since "3795"<classname>Gtk::EntryCompletion</classname> is deprecated since "
3785"<application>gtkmm</application> 4.10. There is no replacement in "3796"<application>gtkmm</application> 4.10. There is no replacement in "
3786"<application>gtkmm</application>."3797"<application>gtkmm</application>."
3787msgstr ""3798msgstr ""
n3788"Några nya klasser lades till i <application>gtkmm</application> 4 och "n3799"<classname>Gtk::EntryCompletion</classname> är föråldrad sedan "
3800"<application>gtkmm</application> 4.10. Det finns ingen ersättning i "
3789"<application>glibmm</application> 2.68:"3801"<application>gtkmm</application>."
37903802
3791#. (itstool) path: section/para3803#. (itstool) path: section/para
3792#: C/index-in.docbook:13853804#: C/index-in.docbook:1385
3793msgid ""3805msgid ""
3794"An <classname>Entry</classname> widget can offer a drop-down list of pre-"3806"An <classname>Entry</classname> widget can offer a drop-down list of pre-"
3899msgid "Entry Icons"3911msgid "Entry Icons"
3900msgstr "Inmatningsikoner"3912msgstr "Inmatningsikoner"
39013913
3902#. (itstool) path: section/para3914#. (itstool) path: section/para
3903#: C/index-in.docbook:14333915#: C/index-in.docbook:1433
n3904#, fuzzyn
3905#| msgid ""
3906#| "An <classname>Entry</classname> widget can show an icon at the start or "
3907#| "end of the text area. The icon can be specifed by methods such as "
3908#| "<methodname>set_icon_from_paintable()</methodname> or "
3909#| "<methodname>set_icon_from_icon_name()</methodname>. An application can "
3910#| "respond to the user pressing the icon by handling the "
3911#| "<methodname>signal_icon_press</methodname> signal."
3912msgid ""3916msgid ""
3913"An <classname>Entry</classname> widget can show an icon at the start or end "3917"An <classname>Entry</classname> widget can show an icon at the start or end "
3914"of the text area. The icon can be specified by methods such as "3918"of the text area. The icon can be specified by methods such as "
3915"<methodname>set_icon_from_paintable()</methodname> or "3919"<methodname>set_icon_from_paintable()</methodname> or "
3916"<methodname>set_icon_from_icon_name()</methodname>. An application can "3920"<methodname>set_icon_from_icon_name()</methodname>. An application can "
4176"behöver ange en <classname>Gtk::SpinType</classname> för att ange riktningen "4180"behöver ange en <classname>Gtk::SpinType</classname> för att ange riktningen "
4177"eller ny position."4181"eller ny position."
41784182
4179#. (itstool) path: section/para4183#. (itstool) path: section/para
4180#: C/index-in.docbook:15854184#: C/index-in.docbook:1585
n4181#, fuzzyn
4182msgid ""4185msgid ""
4183"To prevent the user from typing non-numeric characters into the entry box, "4186"To prevent the user from typing non-numeric characters into the entry box, "
4184"pass <literal>true</literal> to the <methodname>set_numeric()</methodname> "4187"pass <literal>true</literal> to the <methodname>set_numeric()</methodname> "
4185"method."4188"method."
4186msgstr ""4189msgstr ""
4187"För att hindra användaren från att mata in icke-numeriska tecken i "4190"För att hindra användaren från att mata in icke-numeriska tecken i "
n4188"inmatningsfältet sätter du metoden <methodname>set_numeric()</methodname> "n4191"inmatningsfältet skickar du <literal>true</literal> till metoden "
4189"till <literal>true</literal>."4192"<methodname>set_numeric()</methodname>."
41904193
4191#. (itstool) path: section/para4194#. (itstool) path: section/para
4192#: C/index-in.docbook:15904195#: C/index-in.docbook:1590
4193#, fuzzy4196#, fuzzy
4194msgid ""4197msgid ""
4399"The <classname>InfoBar</classname> widget is deprecated since "4402"The <classname>InfoBar</classname> widget is deprecated since "
4400"<application>gtkmm</application> 4.10. The example shows an info bar "4403"<application>gtkmm</application> 4.10. The example shows an info bar "
4401"consisting of a <classname>Box</classname> with a <classname>Label</"4404"consisting of a <classname>Box</classname> with a <classname>Label</"
4402"classname> and a <classname>Button</classname>."4405"classname> and a <classname>Button</classname>."
4403msgstr ""4406msgstr ""
nn4407"<classname>InfoBar</classname>-komponenten är föråldrad sedan "
4408"<application>gtkmm</application> 4.10. Exemplen visar en inforad som består "
4409"av en <classname>Box</classname> med en <classname>Label</classname> och en "
4410"<classname>Button</classname>."
44044411
4405#. (itstool) path: imageobject/imagedata4412#. (itstool) path: imageobject/imagedata
4406#. This is a reference to an external file such as an image or video. When4413#. This is a reference to an external file such as an image or video. When
4407#. the file changes, the md5 hash will change to let you know you need to4414#. the file changes, the md5 hash will change to let you know you need to
4408#. update your localized copy. The msgstr is not used at all. Set it to4415#. update your localized copy. The msgstr is not used at all. Set it to
5598"<application>gtkmm</application> 4.10. There is no replacement in "5605"<application>gtkmm</application> 4.10. There is no replacement in "
5599"<application>gtkmm</application>. libadwaita (a C library) has replacement "5606"<application>gtkmm</application>. libadwaita (a C library) has replacement "
5600"parts (like AdwCarousel). In some cases, a <classname>Gtk::Notebook</"5607"parts (like AdwCarousel). In some cases, a <classname>Gtk::Notebook</"
5601"classname> might be an acceptable replacement."5608"classname> might be an acceptable replacement."
5602msgstr ""5609msgstr ""
nn5610"<classname>Gtk::Assistant</classname> är föråldrad sedan <application>gtkmm</"
5611"application> 4.10. Det finns ingen ersättning i <application>gtkmm</"
5612"application>. libadwaita (ett C-bibliotek) har ersättningsdelar (som "
5613"AdwCarousel). I vissa fall kan en <classname>Gtk::Notebook</classname> vara "
5614"en acceptabel ersättning."
56035615
5604#. (itstool) path: section/para5616#. (itstool) path: section/para
5605#: C/index-in.docbook:22975617#: C/index-in.docbook:2297
5606#, fuzzy5618#, fuzzy
5607msgid ""5619msgid ""
5726"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5738"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
5727"master/examples/book/actionbar\">Källkod, ActionBar</link>"5739"master/examples/book/actionbar\">Källkod, ActionBar</link>"
57285740
5729#. (itstool) path: section/para5741#. (itstool) path: section/para
5730#: C/index-in.docbook:23455742#: C/index-in.docbook:2345
n5731#, fuzzyn
5732#| msgid ""
5733#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
5734#| "tree/master/examples/book/flowbox\">Source Code, FlowBox</link>"
5735msgid ""5743msgid ""
5736"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5744"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
5737"master/examples/book/listbox_flowbox/flowbox\">Source Code, FlowBox</link>"5745"master/examples/book/listbox_flowbox/flowbox\">Source Code, FlowBox</link>"
5738msgstr ""5746msgstr ""
5739"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5747"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n5740"master/examples/book/flowbox\">Källkod, FlowBox</link>"n5748"master/examples/book/listbox_flowbox/flowbox\">Källkod, FlowBox</link>"
57415749
5742#. (itstool) path: chapter/title5750#. (itstool) path: chapter/title
5743#: C/index-in.docbook:23525751#: C/index-in.docbook:2352
5744msgid "ListView, GridView, ColumnView"5752msgid "ListView, GridView, ColumnView"
5745msgstr ""5753msgstr ""
5794"link> i <application>gtkmm-documentation</application>s exempel."5802"link> i <application>gtkmm-documentation</application>s exempel."
57955803
5796#. (itstool) path: section/title5804#. (itstool) path: section/title
5797#: C/index-in.docbook:23775805#: C/index-in.docbook:2377
5798#, fuzzy5806#, fuzzy
nn5807#| msgid "The Model"
5799msgid "The Data Model"5808msgid "The Data Model"
5800msgstr "Modellen"5809msgstr "Modellen"
58015810
5802#. (itstool) path: section/para5811#. (itstool) path: section/para
5803#: C/index-in.docbook:23795812#: C/index-in.docbook:2379
5811msgstr ""5820msgstr ""
58125821
5813#. (itstool) path: section/para5822#. (itstool) path: section/para
5814#: C/index-in.docbook:23875823#: C/index-in.docbook:2387
5815#, fuzzy5824#, fuzzy
n5816#| msgid ""n
5817#| "The model for a ComboBox can be defined and filled exactly as for a "
5818#| "<classname>TreeView</classname>. For instance, you might derive a "
5819#| "ComboBox class with one integer and one text column, like so:"
5820msgid ""5825msgid ""
5821"The elements in a model are called <emphasis>items</emphasis>. All items are "5826"The elements in a model are called <emphasis>items</emphasis>. All items are "
5822"instances of a subclass of <classname>Glib::Object</classname>. For "5827"instances of a subclass of <classname>Glib::Object</classname>. For "
5823"instance, you might have a <classname>ColumnView</classname> with one "5828"instance, you might have a <classname>ColumnView</classname> with one "
5824"integer and one text column, like so:"5829"integer and one text column, like so:"
5825msgstr ""5830msgstr ""
n5826"Modellen för en ComboBox kan definieras och fyllas i exakt som för en "n5831"Modellen för en <classname>DropDown</classname> kan definieras och fyllas i "
5827"<classname>TreeView</classname>. Exempelvis kan du härleda en ComboBox med "5832"exakt som för en <classname>ListView</classname> eller en "
5828"ett heltal och en textkolumn, så här:"5833"<classname>ColumnView</classname>. Den måste vara en underklass till "
5834"<classname>Glib::Object</classname>. Exempelvis kan du ha en "
5835"<classname>DropDown</classname> med ett heltal och en textkolumn, så här:"
58295836
5830#. (itstool) path: section/programlisting5837#. (itstool) path: section/programlisting
5831#: C/index-in.docbook:2393 C/index-in.docbook:33915838#: C/index-in.docbook:2393 C/index-in.docbook:3391
n5832#, no-wrapn5839#, fuzzy, no-wrap
5840#| msgid ""
5841#| "class ModelColumns : public Glib::Object\n"
5842#| "{\n"
5843#| "public:\n"
5844#| "  int m_col_id;\n"
5845#| "  Glib::ustring m_col_name;\n"
5846#| "\n"
5847#| "  static Glib::RefPtr&lt;ModelColumns&gt; create(\n"
5848#| "    int col_id, const Glib::ustring&amp; col_name)\n"
5849#| "  {\n"
5850#| "    return Glib::make_refptr_for_instance&lt;ModelColumns&gt;(\n"
5851#| "      new ModelColumns(col_id, col_name));\n"
5852#| "  }\n"
5853#| "\n"
5854#| "protected:\n"
5855#| "  ModelColumns(int col_id, const Glib::ustring&amp; col_name)\n"
5856#| "  : m_col_id(col_id), m_col_name(col_name)\n"
5857#| "  {}\n"
5858#| "};\n"
5859#| "\n"
5860#| "Glib::RefPtr&lt;Gio::ListStore&lt;ModelColumns&gt;&gt; m_ListStore;\n"
5833msgid ""5861msgid ""
5834"<code>class ModelColumns : public Glib::Object\n"5862"<code>class ModelColumns : public Glib::Object\n"
5835"{\n"5863"{\n"
5836"public:\n"5864"public:\n"
5837"  int m_col_id;\n"5865"  int m_col_id;\n"
5851"};\n"5879"};\n"
5852"\n"5880"\n"
5853"Glib::RefPtr&lt;Gio::ListStore&lt;ModelColumns&gt;&gt; m_ListStore;\n"5881"Glib::RefPtr&lt;Gio::ListStore&lt;ModelColumns&gt;&gt; m_ListStore;\n"
5854"</code>"5882"</code>"
5855msgstr ""5883msgstr ""
nn5884"class ModelColumns : public Glib::Object\n"
5885"{\n"
5886"public:\n"
5887"  int m_col_id;\n"
5888"  Glib::ustring m_col_name;\n"
5889"\n"
5890"  static Glib::RefPtr&lt;ModelColumns&gt; create(\n"
5891"    int col_id, const Glib::ustring&amp; col_name)\n"
5892"  {\n"
5893"    return Glib::make_refptr_for_instance&lt;ModelColumns&gt;(\n"
5894"      new ModelColumns(col_id, col_name));\n"
5895"  }\n"
5896"\n"
5897"protected:\n"
5898"  ModelColumns(int col_id, const Glib::ustring&amp; col_name)\n"
5899"  : m_col_id(col_id), m_col_name(col_name)\n"
5900"  {}\n"
5901"};\n"
5902"\n"
5903"Glib::RefPtr&lt;Gio::ListStore&lt;ModelColumns&gt;&gt; m_ListStore;\n"
58565904
5857#. (itstool) path: section/para5905#. (itstool) path: section/para
5858#: C/index-in.docbook:24155906#: C/index-in.docbook:2415
5859msgid ""5907msgid ""
5860"Every item in a model has a position which is the unsigned integer that "5908"Every item in a model has a position which is the unsigned integer that "
6082#. (itstool) path: section/para6130#. (itstool) path: section/para
6083#: C/index-in.docbook:24906131#: C/index-in.docbook:2490
6084#, fuzzy6132#, fuzzy
6085#| msgid ""6133#| msgid ""
6086#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"6134#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
n6087#| "tree/master/examples/book/treeview/list/\">Source Code</link>"n6135#| "tree/master/examples/book/listmodelviews/gridview\">Source Code"
6136#| "GridView</link>"
6088msgid ""6137msgid ""
6089"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6138"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6090"master/examples/book/listmodelviews/list_listview\">Source Code</link>"6139"master/examples/book/listmodelviews/list_listview\">Source Code</link>"
6091msgstr ""6140msgstr ""
6092"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6141"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6093"master/examples/book/treeview/list/\">Källkod</link>"n6142"master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>"
60946143
6095#. (itstool) path: section/title6144#. (itstool) path: section/title
6096#. (itstool) path: figure/title6145#. (itstool) path: figure/title
6097#: C/index-in.docbook:2496 C/index-in.docbook:25086146#: C/index-in.docbook:2496 C/index-in.docbook:2508
6098#, fuzzy6147#, fuzzy
6138#. (itstool) path: section/para6187#. (itstool) path: section/para
6139#: C/index-in.docbook:25146188#: C/index-in.docbook:2514
6140#, fuzzy6189#, fuzzy
6141#| msgid ""6190#| msgid ""
6142#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"6191#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
n6143#| "tree/master/examples/book/textview/\">Source Code</link>"n6192#| "tree/master/examples/book/listmodelviews/gridview\">Source Code"
6193#| "GridView</link>"
6144msgid ""6194msgid ""
6145"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6195"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6146"master/examples/book/listmodelviews/gridview\">Source Code</link>"6196"master/examples/book/listmodelviews/gridview\">Source Code</link>"
6147msgstr ""6197msgstr ""
6148"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6198"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6149"master/examples/book/textview/\">Källkod</link>"n6199"master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>"
61506200
6151#. (itstool) path: section/title6201#. (itstool) path: section/title
6152#. (itstool) path: figure/title6202#. (itstool) path: figure/title
6153#: C/index-in.docbook:2520 C/index-in.docbook:25326203#: C/index-in.docbook:2520 C/index-in.docbook:2532
6154msgid "ColumnView"6204msgid "ColumnView"
6197#. (itstool) path: section/para6247#. (itstool) path: section/para
6198#: C/index-in.docbook:25386248#: C/index-in.docbook:2538
6199#, fuzzy6249#, fuzzy
6200#| msgid ""6250#| msgid ""
6201#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"6251#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
n6202#| "tree/master/examples/book/treeview/list/\">Source Code</link>"n6252#| "tree/master/examples/book/listmodelviews/gridview\">Source Code"
6253#| "GridView</link>"
6203msgid ""6254msgid ""
6204"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6255"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6205"master/examples/book/listmodelviews/list_columnview\">Source Code</link>"6256"master/examples/book/listmodelviews/list_columnview\">Source Code</link>"
6206msgstr ""6257msgstr ""
6207"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6258"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6208"master/examples/book/treeview/list/\">Källkod</link>"n6259"master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>"
62096260
6210#. (itstool) path: section/title6261#. (itstool) path: section/title
6211#: C/index-in.docbook:2545 C/index-in.docbook:31396262#: C/index-in.docbook:2545 C/index-in.docbook:3139
6212msgid "Sorting"6263msgid "Sorting"
6213msgstr "Sortering"6264msgstr "Sortering"
6325msgstr "Filtrera filer"6376msgstr "Filtrera filer"
63266377
6327#. (itstool) path: section/para6378#. (itstool) path: section/para
6328#: C/index-in.docbook:25846379#: C/index-in.docbook:2584
6329#, fuzzy6380#, fuzzy
nn6381#| msgid ""
6382#| "<classname>Gtk::Style</classname> and <classname>Gtk::Rc</classname> were "
6383#| "removed, replaced by <classname>Gtk::StyleContext</classname>, and "
6384#| "<classname>Gtk::StyleProvider</classname>s, such as <classname>Gtk::"
6385#| "CssProvider</classname>."
6330msgid ""6386msgid ""
6331"The list can be filtered by wrapping it in a <classname>FilterListModel</"6387"The list can be filtered by wrapping it in a <classname>FilterListModel</"
6332"classname>. Set a <classname>Filter</classname> such as a "6388"classname>. Set a <classname>Filter</classname> such as a "
6333"<classname>StringFilter</classname> or a <classname>BoolFilter</classname> "6389"<classname>StringFilter</classname> or a <classname>BoolFilter</classname> "
6334"to the <classname>FilterListModel</classname>."6390"to the <classname>FilterListModel</classname>."
6335msgstr ""6391msgstr ""
6336"<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs "6392"<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs "
6337"bort, ersatta av <classname>Gtk::StyleContext</classname> och olika "6393"bort, ersatta av <classname>Gtk::StyleContext</classname> och olika "
n6338"<classname>Gtk::StyleProvider</classname>, som <classname>Gtk::CssProvider</"n6394"<classname>Gtk::StyleProvider</classname>-klasser, som <classname>Gtk::"
6339"classname>."6395"CssProvider</classname>."
63406396
6341#. (itstool) path: section/para6397#. (itstool) path: section/para
6342#: C/index-in.docbook:25906398#: C/index-in.docbook:2590
6343#, fuzzy6399#, fuzzy
6344#| msgid ""6400#| msgid ""
6345#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6401#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6346#| "classGtk_1_1Dialog.html\">Reference</link>"n6402#| "classGtk_1_1FileDialog.html\">FileDialog Reference</link>"
6347msgid ""6403msgid ""
6348"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6404"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6349"classGtk_1_1FilterListModel.html\">FilterListModel Reference</link>"6405"classGtk_1_1FilterListModel.html\">FilterListModel Reference</link>"
6350msgstr ""6406msgstr ""
6351"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6407"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6352"classGtk_1_1Dialog.html\">Referens</link>"n6408"classGtk_1_1FileDialog.html\">FileDialog-referens</link>"
63536409
6354#. (itstool) path: section/para6410#. (itstool) path: section/para
6355#: C/index-in.docbook:25916411#: C/index-in.docbook:2591
6356#, fuzzy6412#, fuzzy
6357#| msgid ""6413#| msgid ""
6456"classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>"6512"classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>"
64576513
6458#. (itstool) path: figure/title6514#. (itstool) path: figure/title
6459#: C/index-in.docbook:26296515#: C/index-in.docbook:2629
6460#, fuzzy6516#, fuzzy
nn6517#| msgid "The Model"
6461msgid "TreeListModel"6518msgid "TreeListModel"
6462msgstr "Modellen"6519msgstr "Modellen"
64636520
6464#. (itstool) path: imageobject/imagedata6521#. (itstool) path: imageobject/imagedata
6465#. This is a reference to an external file such as an image or video. When6522#. This is a reference to an external file such as an image or video. When
6478#. (itstool) path: section/para6535#. (itstool) path: section/para
6479#: C/index-in.docbook:26356536#: C/index-in.docbook:2635
6480#, fuzzy6537#, fuzzy
6481#| msgid ""6538#| msgid ""
6482#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"6539#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
n6483#| "tree/master/examples/book/treeview/tree/\">Source Code</link>"n6540#| "tree/master/examples/book/listmodelviews/gridview\">Source Code"
6541#| "GridView</link>"
6484msgid ""6542msgid ""
6485"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6543"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6486"master/examples/book/listmodelviews/tree_columnview\">Source Code</link>"6544"master/examples/book/listmodelviews/tree_columnview\">Source Code</link>"
6487msgstr ""6545msgstr ""
6488"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6546"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6489"master/examples/book/treeview/tree/\">Källkod</link>"n6547"master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>"
64906548
6491#. (itstool) path: chapter/title6549#. (itstool) path: chapter/title
6492#: C/index-in.docbook:26436550#: C/index-in.docbook:2643
6493msgid "The TreeView widget"6551msgid "The TreeView widget"
6494msgstr "TreeView-komponenten"6552msgstr "TreeView-komponenten"
64956553
6496#. (itstool) path: note/para6554#. (itstool) path: note/para
6497#: C/index-in.docbook:26456555#: C/index-in.docbook:2645
n6498#, fuzzyn
6499#| msgid ""
6500#| "<classname>Gdk::DragContext</classname> has been split into "
6501#| "<classname>Gdk::Drag</classname> and <classname>Gdk::Drop</classname>."
6502msgid ""6556msgid ""
6503"<classname>Gtk::TreeView</classname> is deprecated since <application>gtkmm</"6557"<classname>Gtk::TreeView</classname> is deprecated since <application>gtkmm</"
6504"application> 4.10. In new code, use <classname>Gtk::ListView</classname> for "6558"application> 4.10. In new code, use <classname>Gtk::ListView</classname> for "
6505"lists and <classname>Gtk::ColumnView</classname> for tabular lists."6559"lists and <classname>Gtk::ColumnView</classname> for tabular lists."
6506msgstr ""6560msgstr ""
n6507"<classname>Gdk::DragContext</classname> har delats upp i <classname>Gdk::"n6561"<classname>Gtk::TreeView</classname> är föråldrad sedan <application>gtkmm</"
6508"Drag</classname> och <classname>Gdk::Drop</classname>."6562"application> 4.10. Använd i ny kod <classname>Gtk::ListView</classname> för "
6563"listor och <classname>Gtk::ColumnView</classname> för tabellistor."
65096564
6510#. (itstool) path: chapter/para6565#. (itstool) path: chapter/para
6511#: C/index-in.docbook:26506566#: C/index-in.docbook:2650
6512msgid ""6567msgid ""
6513"The <classname>Gtk::TreeView</classname> widget can contain lists or trees "6568"The <classname>Gtk::TreeView</classname> widget can contain lists or trees "
6516"Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller "6571"Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller "
6517"träd med data i kolumner."6572"träd med data i kolumner."
65186573
6519#. (itstool) path: section/title6574#. (itstool) path: section/title
6520#: C/index-in.docbook:26566575#: C/index-in.docbook:2656
n6521#, fuzzyn
6522msgid "The Model"6576msgid "The Model"
6523msgstr "Modellen"6577msgstr "Modellen"
65246578
6525#. (itstool) path: section/para6579#. (itstool) path: section/para
6526#: C/index-in.docbook:26586580#: C/index-in.docbook:2658
7912"tillåta eller förbjuda dragning eller släppning genom att returnera "7966"tillåta eller förbjuda dragning eller släppning genom att returnera "
7913"<literal>true</literal> eller <literal>false</literal>."7967"<literal>true</literal> eller <literal>false</literal>."
79147968
7915#. (itstool) path: section/para7969#. (itstool) path: section/para
7916#: C/index-in.docbook:32207970#: C/index-in.docbook:3220
n7917#, fuzzyn
7918msgid "This is demonstrated in the drag_and_drop example."7971msgid "This is demonstrated in the drag_and_drop example."
7919msgstr "Detta demonstreras i dra-och-släpp-exemplet."7972msgstr "Detta demonstreras i dra-och-släpp-exemplet."
79207973
7921#. (itstool) path: section/title7974#. (itstool) path: section/title
7922#: C/index-in.docbook:3226 C/index-in.docbook:33367975#: C/index-in.docbook:3226 C/index-in.docbook:3336
8166"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8219"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8167"master/examples/book/treeview/popup/\">Källkod</link>"8220"master/examples/book/treeview/popup/\">Källkod</link>"
81688221
8169#. (itstool) path: chapter/title8222#. (itstool) path: chapter/title
8170#: C/index-in.docbook:33598223#: C/index-in.docbook:3359
n8171#, fuzzyn
8172#| msgid "The DrawingArea Widget"
8173msgid "The DropDown Widget"8224msgid "The DropDown Widget"
n8174msgstr "DrawingArea-komponenten"n8225msgstr "DropDown-komponenten"
81758226
8176#. (itstool) path: chapter/para8227#. (itstool) path: chapter/para
8177#: C/index-in.docbook:33618228#: C/index-in.docbook:3361
8178msgid ""8229msgid ""
8179"The <classname>DropDown</classname> widget is an alternative to the "8230"The <classname>DropDown</classname> widget is an alternative to the "
8180"deprecated <classname>ComboBox</classname>. It uses list models instead of "8231"deprecated <classname>ComboBox</classname>. It uses list models instead of "
8181"tree models, and the content is displayed using widgets instead of cell "8232"tree models, and the content is displayed using widgets instead of cell "
8182"renderers."8233"renderers."
8183msgstr ""8234msgstr ""
nn8235"Komponenten <classname>DropDown</classname> är ett alternativ till den "
8236"föråldrade <classname>ComboBox</classname>. Den använder listmodeller i "
8237"stället för trädmodeller, och innehållet visas med komponenter i stället för "
8238"cellrenderare."
81848239
8185#. (itstool) path: chapter/para8240#. (itstool) path: chapter/para
8186#: C/index-in.docbook:33668241#: C/index-in.docbook:3366
8187#, fuzzy8242#, fuzzy
8188#| msgid ""8243#| msgid ""
8217"signal handlers connected to a <classname>SignalListItemFactory</classname>. "8272"signal handlers connected to a <classname>SignalListItemFactory</classname>. "
8218"This provides flexibility, but the <classname>StringList</classname> class "8273"This provides flexibility, but the <classname>StringList</classname> class "
8219"provides a simpler text-based specialization in case that flexibility is not "8274"provides a simpler text-based specialization in case that flexibility is not "
8220"required."8275"required."
8221msgstr ""8276msgstr ""
n8222"Listan tillhandahålls via en <classname>TreeModel</classname>, och kolumner "n8277"Listan tillhandahålls via en <classname>Gio::ListModel</classname>, och data "
8223"från denna modell läggs till vyn för ComboBox-komponenten med metoden "8278"från denna modell läggs till vyn för <classname>DropDown</classname>-"
8224"<methodname>ComboBox::pack_start()</methodname>. Detta tillhandahåller "8279"komponenten med signalhanterare anslutna till en "
8225"flexibilitet och typsäkerhet under kompilering, men <classname>ComboBoxText</"8280"<classname>SignalListItemFactory</classname>. Detta tillhandahåller "
8226"classname>-klassen tillhandahåller en enklare textbaserad specialisering om "8281"flexibilitet, men <classname>StringList</classname>-klassen tillhandahåller "
8227"den flexibiliteten inte behövs."8282"en enklare textbaserad specialisering om den flexibiliteten inte behövs."
82288283
8229#. (itstool) path: chapter/para8284#. (itstool) path: chapter/para
8230#: C/index-in.docbook:33808285#: C/index-in.docbook:3380
n8231#, fuzzyn
8232#| msgid ""
8233#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
8234#| "classGtk_1_1Box.html\">Reference</link>"
8235msgid ""8286msgid ""
8236"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"8287"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
8237"classGtk_1_1DropDown.html\">Reference</link>"8288"classGtk_1_1DropDown.html\">Reference</link>"
8238msgstr ""8289msgstr ""
8239"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"8290"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n8240"classGtk_1_1Box.html\">Referens</link>"n8291"classGtk_1_1DropDown.html\">Referens</link>"
82418292
8242#. (itstool) path: section/title8293#. (itstool) path: section/title
8243#: C/index-in.docbook:3383 C/index-in.docbook:35588294#: C/index-in.docbook:3383 C/index-in.docbook:3558
n8244#, fuzzyn
8245msgid "The model"8295msgid "The model"
8246msgstr "Modellen"8296msgstr "Modellen"
82478297
8248#. (itstool) path: section/para8298#. (itstool) path: section/para
8249#: C/index-in.docbook:33858299#: C/index-in.docbook:3385
8250#, fuzzy8300#, fuzzy
n8251#| msgid ""n
8252#| "The model for a ComboBox can be defined and filled exactly as for a "
8253#| "<classname>TreeView</classname>. For instance, you might derive a "
8254#| "ComboBox class with one integer and one text column, like so:"
8255msgid ""8301msgid ""
8256"The model for a <classname>DropDown</classname> can be defined and filled "8302"The model for a <classname>DropDown</classname> can be defined and filled "
8257"exactly as for a <classname>ListView</classname> or a <classname>ColumnView</"8303"exactly as for a <classname>ListView</classname> or a <classname>ColumnView</"
8258"classname>. It must be a subclass of <classname>Glib::Object</classname>. "8304"classname>. It must be a subclass of <classname>Glib::Object</classname>. "
8259"For instance, you might have a <classname>DropDown</classname> with one "8305"For instance, you might have a <classname>DropDown</classname> with one "
8260"integer and one text column, like so:"8306"integer and one text column, like so:"
8261msgstr ""8307msgstr ""
n8262"Modellen för en ComboBox kan definieras och fyllas i exakt som för en "n8308"Modellen för en <classname>DropDown</classname> kan definieras och fyllas i "
8263"<classname>TreeView</classname>. Exempelvis kan du härleda en ComboBox med "8309"exakt som för en <classname>ListView</classname> eller en "
8264"ett heltal och en textkolumn, så här:"8310"<classname>ColumnView</classname>. Den måste vara en underklass till "
8311"<classname>Glib::Object</classname>. Exempelvis kan du ha en "
8312"<classname>DropDown</classname> med ett heltal och en textkolumn, så här:"
82658313
8266#. (itstool) path: section/para8314#. (itstool) path: section/para
8267#: C/index-in.docbook:34138315#: C/index-in.docbook:3413
nn8316#, fuzzy
8268msgid ""8317msgid ""
8269"After appending rows to this model, you should provide the model to the "8318"After appending rows to this model, you should provide the model to the "
8270"<classname>DropDown</classname> with the <methodname>set_model()</"8319"<classname>DropDown</classname> with the <methodname>set_model()</"
8271"methodname> method. Unless you use the <classname>StringList</classname> "8320"methodname> method. Unless you use the <classname>StringList</classname> "
8272"model, you also need to set a <classname>ListItemFactory</classname> with "8321"model, you also need to set a <classname>ListItemFactory</classname> with "
8274"dropdown menu to look different from the item in the <classname>DropDown</"8323"dropdown menu to look different from the item in the <classname>DropDown</"
8275"classname> widget, you also need to set a separate "8324"classname> widget, you also need to set a separate "
8276"<classname>ListItemFactory</classname> with <methodname>set_list_factory()</"8325"<classname>ListItemFactory</classname> with <methodname>set_list_factory()</"
8277"methodname>."8326"methodname>."
8278msgstr ""8327msgstr ""
nn8328"Efter att ha lagt till rader till denna modell bör du tillhandahålla "
8329"modellen till vår <classname>DropDown</classname> med metoden "
8330"<methodname>set_model()</methodname>. Om du inte använder modellen "
8331"<classname>StringList</classname> så kommer du också behöva ställa in en "
8332"<classname>ListItemFactory</classname> med <methodname>set_factory()</"
8333"methodname>. Om du vill att objekten i rullgardinsmenyn ska se annorlunda "
8334"från objektet i <classname>DropDown</classname>-komponenten så behöver du "
8335"också ställa in en separat <classname>ListItemFactory</classname> med "
8336"<methodname>set_list_factory()</methodname>."
82798337
8280#. (itstool) path: section/title8338#. (itstool) path: section/title
8281#: C/index-in.docbook:34248339#: C/index-in.docbook:3424
n8282#, fuzzyn
8283msgid "The selected item"8340msgid "The selected item"
n8284msgstr "De markerade raderna"n8341msgstr "Det valda objektet"
82858342
8286#. (itstool) path: section/para8343#. (itstool) path: section/para
8287#: C/index-in.docbook:34268344#: C/index-in.docbook:3426
8288#, fuzzy8345#, fuzzy
8289msgid ""8346msgid ""
8293"get the selected data from the model. For instance, you might read an "8350"get the selected data from the model. For instance, you might read an "
8294"integer ID value from the model, even though you have chosen only to show "8351"integer ID value from the model, even though you have chosen only to show "
8295"the human-readable description in the <classname>DropDown</classname>. For "8352"the human-readable description in the <classname>DropDown</classname>. For "
8296"instance:"8353"instance:"
8297msgstr ""8354msgstr ""
n8298"För att upptäcka vilket objekt, om något, som användaren har valt från en "n8355"För att upptäcka vilket objekt, om något, som användaren har valt från vår "
8299"ComboBox, anropa <methodname>ComboBox::get_active()</methodname>. "8356"<classname>DropDown</classname>, anropa <methodname>DropDown::"
8300"Detta<classname>TreeModel::iterator</classname> returnerar en som du kan "8357"get_selected()</methodname>. Detta returnerar en <type>unsigned int</type> "
8301"dereferera till en <classname>Row</classname> för att läsa värdena i dina "8358"som du kan använda för att få valda data från modellen. Exempelvis kanske du "
8302"kolumner. Exempelvis kanske du läser ett heltals-ID-värde från modellen, "8359"läser ett heltals-ID-värde från modellen, även om du valt att bara visa den "
8303"även om du valt att bara visa den mänskligt läsbara beskrivningen i vår "8360"mänskligt läsbara beskrivningen i vår <classname>DropDown</classname>. Till "
8304"ComboBox. Till exempel:"8361"exempel:"
83058362
8306#. (itstool) path: section/programlisting8363#. (itstool) path: section/programlisting
8307#: C/index-in.docbook:34338364#: C/index-in.docbook:3433
8308#, fuzzy, no-wrap8365#, fuzzy, no-wrap
8309msgid ""8366msgid ""
8316"}\n"8373"}\n"
8317"else\n"8374"else\n"
8318"  set_nothing_chosen(); // Your own function.\n"8375"  set_nothing_chosen(); // Your own function.\n"
8319"</code>"8376"</code>"
8320msgstr ""8377msgstr ""
n8321"Gtk::TreeModel::iterator iter = m_Combo.get_active();\n"n8378"unsigned int sel = m_DropDown.get_selected();\n"
8322"if(iter)\n"8379"if (sel != GTK_INVALID_LIST_POSITION)\n"
8323"{\n"8380"{\n"
n8324"  auto row = *iter;\n"n
8325"\n"
8326"  //Få data för markerad rad, med vår kunskap\n"8381"  // Få data för markerad rad, med vår kunskap om listmodellen:\n"
8327"  //om trädmodellen:\n"8382"  auto id = m_ListStore-&gt;get_item(sel).m_col_id;\n"
8328"  auto id = row[m_Columns.m_col_id];\n"
8329"  set_something_id_chosen(id); //Din egen funktion.\n"8383"  set_some_id_chosen(id); // Din egen funktion.\n"
8330"}\n"8384"}\n"
8331"else\n"8385"else\n"
n8332"  set_nothing_chosen(); //Din egen funktion."n8386"  set_nothing_chosen(); // Din egen funktion.\n"
83338387
8334#. (itstool) path: section/title8388#. (itstool) path: section/title
8335#: C/index-in.docbook:3446 C/index-in.docbook:3597 C/index-in.docbook:36588389#: C/index-in.docbook:3446 C/index-in.docbook:3597 C/index-in.docbook:3658
8336msgid "Responding to changes"8390msgid "Responding to changes"
8337msgstr "Svara på ändringar"8391msgstr "Svara på ändringar"
8343"You might need to react to every change of selection in the "8397"You might need to react to every change of selection in the "
8344"<classname>DropDown</classname>, for instance to update other widgets. To do "8398"<classname>DropDown</classname>, for instance to update other widgets. To do "
8345"so, you should connect to <methodname>property_selected().signal_changed()</"8399"so, you should connect to <methodname>property_selected().signal_changed()</"
8346"methodname>. For instance:"8400"methodname>. For instance:"
8347msgstr ""8401msgstr ""
n8348"Du behöver reagera på varje ändring av val i vår ComboBox, till exempel för "n8402"Du kan behöva reagera på varje ändring av val i vår <classname>DropDown</"
8349"att uppdatera andra komponenter. För att göra så bör du hantera signalen "8403"classname>, till exempel för att uppdatera andra komponenter. För att göra "
8350"<literal>changed</literal>. Till exempel:"8404"så bör du ansluta till <methodname>property_selected().signal_changed()</"
8405"methodname>. Till exempel:"
83518406
8352#. (itstool) path: section/programlisting8407#. (itstool) path: section/programlisting
8353#: C/index-in.docbook:34528408#: C/index-in.docbook:3452
8354#, fuzzy, no-wrap8409#, fuzzy, no-wrap
8355#| msgid ""8410#| msgid ""
n8356#| "m_combo.signal_changed().connect( sigc::mem_fun(*this,\n"n8411#| "m_DropDown.property_selected().signal_changed().connect(\n"
8357#| "      &amp;ExampleWindow::on_combo_changed) );"8412#| "  sigc::mem_fun(*this, &amp;ExampleWindow::on_dropdown_changed));\n"
8358msgid ""8413msgid ""
8359"<code>m_DropDown.property_selected().signal_changed().connect(\n"8414"<code>m_DropDown.property_selected().signal_changed().connect(\n"
8360"  sigc::mem_fun(*this, &amp;ExampleWindow::on_dropdown_changed));\n"8415"  sigc::mem_fun(*this, &amp;ExampleWindow::on_dropdown_changed));\n"
8361"</code>"8416"</code>"
8362msgstr ""8417msgstr ""
n8363"m_combo.signal_changed().connect( sigc::mem_fun(*this,\n"n8418"m_DropDown.property_selected().signal_changed().connect(\n"
8364"      &amp;ExampleWindow::on_combo_changed) );"8419"  sigc::mem_fun(*this, &amp;ExampleWindow::on_dropdown_changed));\n"
83658420
8366#. (itstool) path: section/title8421#. (itstool) path: section/title
8367#: C/index-in.docbook:34588422#: C/index-in.docbook:3458
n8368#, fuzzyn
8369msgid "Simple String Example"8423msgid "Simple String Example"
n8370msgstr "Enkelt inmatningsexempel"n8424msgstr "Enkelt stngexempel"
83718425
8372#. (itstool) path: figure/title8426#. (itstool) path: figure/title
8373#: C/index-in.docbook:34618427#: C/index-in.docbook:3461
8374msgid "Simple DropDown"8428msgid "Simple DropDown"
n8375msgstr ""n8429msgstr "Enkel DropDown"
83768430
8377#. (itstool) path: imageobject/imagedata8431#. (itstool) path: imageobject/imagedata
8378#. This is a reference to an external file such as an image or video. When8432#. This is a reference to an external file such as an image or video. When
8379#. the file changes, the md5 hash will change to let you know you need to8433#. the file changes, the md5 hash will change to let you know you need to
8380#. update your localized copy. The msgstr is not used at all. Set it to8434#. update your localized copy. The msgstr is not used at all. Set it to
8384msgctxt "_"8438msgctxt "_"
8385msgid ""8439msgid ""
8386"external ref='figures/dropdown_string.png' "8440"external ref='figures/dropdown_string.png' "
8387"md5='b1689605c645e1ada3040f6df3335c56'"8441"md5='b1689605c645e1ada3040f6df3335c56'"
8388msgstr ""8442msgstr ""
n8389"external ref='figures/printing.png' md5='d4565328475ec89edf5f2230cb3fc5d0'"n8443"external ref='figures/dropdown_string.png' "
8444"md5='b1689605c645e1ada3040f6df3335c56'"
83908445
8391#. (itstool) path: section/para8446#. (itstool) path: section/para
8392#: C/index-in.docbook:34678447#: C/index-in.docbook:3467
n8393#, fuzzyn
8394#| msgid ""
8395#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
8396#| "tree/master/examples/book/entry/icon\">Source Code</link>"
8397msgid ""8448msgid ""
8398"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8449"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8399"master/examples/book/dropdown/string\">Source Code</link>"8450"master/examples/book/dropdown/string\">Source Code</link>"
8400msgstr ""8451msgstr ""
8401"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8452"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n8402"master/examples/book/entry/icon\">Källkod</link>"n8453"master/examples/book/dropdown/string\">Källkod</link>"
84038454
8404#. (itstool) path: section/title8455#. (itstool) path: section/title
8405#: C/index-in.docbook:34718456#: C/index-in.docbook:3471
8406msgid "Examples with a Search Entry"8457msgid "Examples with a Search Entry"
n8407msgstr ""n8458msgstr "Exempel med ett sökfält"
84088459
8409#. (itstool) path: section/para8460#. (itstool) path: section/para
8410#: C/index-in.docbook:34738461#: C/index-in.docbook:3473
n8411#, fuzzyn
8412#| msgid ""
8413#| "<classname>Gtk::Grid</classname> arranges its child widgets in rows and "
8414#| "columns. Use <methodname>attach()</methodname> and "
8415#| "<methodname>attach_next_to()</methodname> to insert child widgets."
8416msgid ""8462msgid ""
8417"The dropdown menu may contain an <classname>Entry</classname> that allows to "8463"The dropdown menu may contain an <classname>Entry</classname> that allows to "
8418"search for items in the list. Call <methodname>set_enable_search()</"8464"search for items in the list. Call <methodname>set_enable_search()</"
8419"methodname> and <methodname>set_expression()</methodname>. For instance:"8465"methodname> and <methodname>set_expression()</methodname>. For instance:"
8420msgstr ""8466msgstr ""
n8421"<classname>Gtk::Grid</classname> arrangerar sina underordnade komponenter i "n8467"Rullgardinsmeny kan innehålla ett <classname>Entry</classname> som tillåter "
8422"rader och kolumner. Använd <methodname>attach()</methodname> och "8468"sökning efter objekt i listan. Anropa <methodname>set_enable_search()</"
8423"<methodname>attach_next_to()</methodname> för att infoga underordnade "8469"methodname> och <methodname>set_expression()</methodname>. Till exempel:"
8424"komponenter."
84258470
8426#. (itstool) path: section/programlisting8471#. (itstool) path: section/programlisting
8427#: C/index-in.docbook:34778472#: C/index-in.docbook:3477
n8428#, no-wrapn8473#, fuzzy, no-wrap
8474#| msgid ""
8475#| "m_DropDown.set_enable_search(true);\n"
8476#| "auto expression = Gtk::ClosureExpression&lt;Glib::ustring&gt;::create(\n"
8477#| "  sigc::mem_fun(*this, &amp;ExampleWindow::get_col_name));\n"
8478#| "m_DropDown.set_expression(expression);\n"
8479#| "\n"
8480#| "//-------\n"
8481#| "Glib::ustring ExampleWindow::get_col_name(const Glib::RefPtr&lt;Glib::Object
 >Base&gt;&amp; item)\n"
8482#| "{\n"
8483#| "  const auto col = std::dynamic_pointer_cast&lt;ModelColumns&gt;(item);\n"
8484#| "  return col ? col-&gt;m_col_name : \"\";\n"
8485#| "}\n"
8429msgid ""8486msgid ""
8430"<code>m_DropDown.set_enable_search(true);\n"8487"<code>m_DropDown.set_enable_search(true);\n"
8431"auto expression = Gtk::ClosureExpression&lt;Glib::ustring&gt;::create(\n"8488"auto expression = Gtk::ClosureExpression&lt;Glib::ustring&gt;::create(\n"
8432"  sigc::mem_fun(*this, &amp;ExampleWindow::get_col_name));\n"8489"  sigc::mem_fun(*this, &amp;ExampleWindow::get_col_name));\n"
8433"m_DropDown.set_expression(expression);\n"8490"m_DropDown.set_expression(expression);\n"
8438"  const auto col = std::dynamic_pointer_cast&lt;ModelColumns&gt;(item);\n"8495"  const auto col = std::dynamic_pointer_cast&lt;ModelColumns&gt;(item);\n"
8439"  return col ? col-&gt;m_col_name : \"\";\n"8496"  return col ? col-&gt;m_col_name : \"\";\n"
8440"}\n"8497"}\n"
8441"</code>"8498"</code>"
8442msgstr ""8499msgstr ""
nn8500"m_DropDown.set_enable_search(true);\n"
8501"auto expression = Gtk::ClosureExpression&lt;Glib::ustring&gt;::create(\n"
8502"  sigc::mem_fun(*this, &amp;ExampleWindow::get_col_name));\n"
8503"m_DropDown.set_expression(expression);\n"
8504"\n"
8505"//-------\n"
8506"Glib::ustring ExampleWindow::get_col_name(const Glib::RefPtr&lt;Glib::ObjectBas
 >e&gt;&amp; item)\n"
8507"{\n"
8508"  const auto col = std::dynamic_pointer_cast&lt;ModelColumns&gt;(item);\n"
8509"  return col ? col-&gt;m_col_name : \"\";\n"
8510"}\n"
84438511
8444#. (itstool) path: section/title8512#. (itstool) path: section/title
8445#: C/index-in.docbook:34918513#: C/index-in.docbook:3491
n8446#, fuzzyn
8447#| msgid "Simple Example"
8448msgid "String Example"8514msgid "String Example"
n8449msgstr "Enkelt exempel"n8515msgstr "Strängexempel"
84508516
8451#. (itstool) path: figure/title8517#. (itstool) path: figure/title
8452#: C/index-in.docbook:34948518#: C/index-in.docbook:3494
8453msgid "Search String"8519msgid "Search String"
n8454msgstr ""n8520msgstr "Sök sträng"
84558521
8456#. (itstool) path: imageobject/imagedata8522#. (itstool) path: imageobject/imagedata
8457#. This is a reference to an external file such as an image or video. When8523#. This is a reference to an external file such as an image or video. When
8458#. the file changes, the md5 hash will change to let you know you need to8524#. the file changes, the md5 hash will change to let you know you need to
8459#. update your localized copy. The msgstr is not used at all. Set it to8525#. update your localized copy. The msgstr is not used at all. Set it to
8467msgctxt "_"8533msgctxt "_"
8468msgid ""8534msgid ""
8469"external ref='figures/dropdown_search_string.png' "8535"external ref='figures/dropdown_search_string.png' "
8470"md5='e130e644e7cfb13a5b90ab1372b17503'"8536"md5='e130e644e7cfb13a5b90ab1372b17503'"
8471msgstr ""8537msgstr ""
n8472"external ref='figures/drawingarea_arcs.png' "n8538"external ref='figures/dropdown_search_string.png' "
8473"md5='d94b40e33b9fab7ea9e2c870b97fcf0c'"8539"md5='e130e644e7cfb13a5b90ab1372b17503'"
84748540
8475#. (itstool) path: section/para8541#. (itstool) path: section/para
8476#: C/index-in.docbook:35008542#: C/index-in.docbook:3500
n8477#, fuzzyn
8478#| msgid ""
8479#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
8480#| "tree/master/examples/book/drawingarea/arcs\">Source Code</link>"
8481msgid ""8543msgid ""
8482"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8544"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8483"master/examples/book/dropdown/search_string\">Source Code</link>"8545"master/examples/book/dropdown/search_string\">Source Code</link>"
8484msgstr ""8546msgstr ""
8485"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8547"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n8486"master/examples/book/drawingarea/arcs\">Källkod</link>"n8548"master/examples/book/dropdown/search_string\">Källkod</link>"
84878549
8488#. (itstool) path: section/title8550#. (itstool) path: section/title
8489#: C/index-in.docbook:35048551#: C/index-in.docbook:3504
n8490#, fuzzyn
8491#| msgid "Full Example"
8492msgid "Font Example"8552msgid "Font Example"
n8493msgstr "Fullständigt exempel"n8553msgstr "Typsnittsexempel"
84948554
8495#. (itstool) path: section/para8555#. (itstool) path: section/para
8496#: C/index-in.docbook:35068556#: C/index-in.docbook:3506
n8497#, fuzzyn
8498#| msgid ""
8499#| "<classname>Gtk::Button</classname>, <classname>Gtk::ToolButton</"
8500#| "classname>, <classname>Gtk::MenuItem</classname> and <classname>Gtk::"
8501#| "Switch</classname> implement the <classname>Gtk::Actionable</classname> "
8502#| "interface instead of the removed <classname>Gtk::Activatable</classname> "
8503#| "interface."
8504msgid ""8557msgid ""
8505"This example uses a <classname>Pango::FontMap</classname> as its model. This "8558"This example uses a <classname>Pango::FontMap</classname> as its model. This "
8506"is possible because <classname>Pango::FontMap</classname> implements the "8559"is possible because <classname>Pango::FontMap</classname> implements the "
8507"<classname>Gio::ListModel</classname> interface. Of course you can use a "8560"<classname>Gio::ListModel</classname> interface. Of course you can use a "
8508"<classname>FontDialogButton</classname> instead."8561"<classname>FontDialogButton</classname> instead."
8509msgstr ""8562msgstr ""
n8510"<classname>Gtk::Button</classname>, <classname>Gtk::ToolButton</classname>, "n8563"Detta exempel använder en <classname>Pango::FontMap</classname> som sin "
8511"<classname>Gtk::MenuItem</classname> och <classname>Gtk::Switch</classname> "8564"modell. Detta är möjligt för att <classname>Pango::FontMap</classname> "
8512"implementerar <classname>Gtk::Actionable</classname>-gränssnittet i stället "8565"implementerar <classname>Gio::ListModel</classname>-gränssnittet. Du kan "
8513"för det borttagna <classname>Gtk::Activatable</classname>-gränssnittet."8566"förstås använda en <classname>FontDialogButton</classname> i stället."
85148567
8515#. (itstool) path: figure/title8568#. (itstool) path: figure/title
8516#: C/index-in.docbook:3513 C/index-in.docbook:35328569#: C/index-in.docbook:3513 C/index-in.docbook:3532
8517msgid "Search Font"8570msgid "Search Font"
n8518msgstr ""n8571msgstr "Sök typsnitt"
85198572
8520#. (itstool) path: imageobject/imagedata8573#. (itstool) path: imageobject/imagedata
8521#. This is a reference to an external file such as an image or video. When8574#. This is a reference to an external file such as an image or video. When
8522#. the file changes, the md5 hash will change to let you know you need to8575#. the file changes, the md5 hash will change to let you know you need to
8523#. update your localized copy. The msgstr is not used at all. Set it to8576#. update your localized copy. The msgstr is not used at all. Set it to
8527msgctxt "_"8580msgctxt "_"
8528msgid ""8581msgid ""
8529"external ref='figures/dropdown_search_font.png' "8582"external ref='figures/dropdown_search_font.png' "
8530"md5='1733e29c88c19dc6c4cbd1114446ac18'"8583"md5='1733e29c88c19dc6c4cbd1114446ac18'"
8531msgstr ""8584msgstr ""
n8532"external ref='figures/drawingarea_pango_text.png' "n8585"external ref='figures/dropdown_search_font.png' "
8533"md5='07c39668c9dda2ac1f9455caf6e4d16a'"8586"md5='1733e29c88c19dc6c4cbd1114446ac18'"
85348587
8535#. (itstool) path: section/para8588#. (itstool) path: section/para
8536#: C/index-in.docbook:35198589#: C/index-in.docbook:3519
n8537#, fuzzyn
8538#| msgid ""
8539#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
8540#| "tree/master/examples/book/paned\">Source Code</link>"
8541msgid ""8590msgid ""
8542"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8591"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8543"master/examples/book/dropdown/search_font\">Source Code</link>"8592"master/examples/book/dropdown/search_font\">Source Code</link>"
8544msgstr ""8593msgstr ""
8545"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8594"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n8546"master/examples/book/paned\">Källkod</link>"n8595"master/examples/book/dropdown/search_font\">Källkod</link>"
85478596
8548#. (itstool) path: section/title8597#. (itstool) path: section/title
8549#: C/index-in.docbook:35248598#: C/index-in.docbook:3524
n8550#, fuzzyn
8551#| msgid "Simple Example"
8552msgid "Complex Example"8599msgid "Complex Example"
n8553msgstr "Enkelt exempel"n8600msgstr "Komplext exempel"
85548601
8555#. (itstool) path: section/para8602#. (itstool) path: section/para
8556#: C/index-in.docbook:35268603#: C/index-in.docbook:3526
8557msgid ""8604msgid ""
8558"This is a more complex example with two <classname>SignalListItemFactory</"8605"This is a more complex example with two <classname>SignalListItemFactory</"
8559"classname> objects and their signal handlers. This example would be simpler "8606"classname> objects and their signal handlers. This example would be simpler "
8560"without the checkmark in the dropdown menu."8607"without the checkmark in the dropdown menu."
8561msgstr ""8608msgstr ""
nn8609"Detta är ett mer komplext exempel med två <classname>SignalListItemFactory</"
8610"classname>-objekt och deras signalhanterare. Detta exempel skulle vara "
8611"enklare utan bocken i rullgardinsmenyn."
85628612
8563#. (itstool) path: imageobject/imagedata8613#. (itstool) path: imageobject/imagedata
8564#. This is a reference to an external file such as an image or video. When8614#. This is a reference to an external file such as an image or video. When
8565#. the file changes, the md5 hash will change to let you know you need to8615#. the file changes, the md5 hash will change to let you know you need to
8566#. update your localized copy. The msgstr is not used at all. Set it to8616#. update your localized copy. The msgstr is not used at all. Set it to
8570msgctxt "_"8620msgctxt "_"
8571msgid ""8621msgid ""
8572"external ref='figures/dropdown_complex.png' "8622"external ref='figures/dropdown_complex.png' "
8573"md5='2167fb44e42653aa7fd855604c4c1e65'"8623"md5='2167fb44e42653aa7fd855604c4c1e65'"
8574msgstr ""8624msgstr ""
n8575"external ref='figures/combobox_complex.png' "n8625"external ref='figures/dropdown_complex.png' "
8576"md5='ec96e29fe85caef072868284443e413e'"8626"md5='2167fb44e42653aa7fd855604c4c1e65'"
85778627
8578#. (itstool) path: section/para8628#. (itstool) path: section/para
8579#: C/index-in.docbook:35388629#: C/index-in.docbook:3538
n8580#, fuzzyn
8581#| msgid ""
8582#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
8583#| "tree/master/examples/book/combobox/complex\">Source Code</link>"
8584msgid ""8630msgid ""
8585"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8631"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8586"master/examples/book/dropdown/complex\">Source Code</link>"8632"master/examples/book/dropdown/complex\">Source Code</link>"
8587msgstr ""8633msgstr ""
8588"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8634"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n8589"master/examples/book/combobox/complex\">Källkod</link>"n8635"master/examples/book/dropdown/complex\">Källkod</link>"
85908636
8591#. (itstool) path: chapter/title8637#. (itstool) path: chapter/title
8592#: C/index-in.docbook:35438638#: C/index-in.docbook:3543
8593msgid "Combo Boxes"8639msgid "Combo Boxes"
8594msgstr "Kombinationsrutor"8640msgstr "Kombinationsrutor"
85958641
8596#. (itstool) path: note/para8642#. (itstool) path: note/para
8597#: C/index-in.docbook:35458643#: C/index-in.docbook:3545
n8598#, fuzzyn
8599#| msgid ""
8600#| "<classname>Gdk::DrawContext</classname> and <classname>Gdk::CairoContext</"
8601#| "classname> are new. <classname>Gdk::DrawingContext</classname> has been "
8602#| "removed."
8603msgid ""8644msgid ""
8604"<classname>Gtk::ComboBox</classname> and <classname>Gtk::ComboBoxText</"8645"<classname>Gtk::ComboBox</classname> and <classname>Gtk::ComboBoxText</"
8605"classname> are deprecated since <application>gtkmm</application> 4.10. Use "8646"classname> are deprecated since <application>gtkmm</application> 4.10. Use "
8606"<classname>Gtk::DropDown</classname> in new code."8647"<classname>Gtk::DropDown</classname> in new code."
8607msgstr ""8648msgstr ""
n8608"<classname>Gdk::DrawContext</classname> och <classname>Gdk::CairoContext</"n8649"<classname>Gtk::ComboBox</classname> och <classname>Gtk::ComboBoxText</"
8609"classname> är nya. <classname>Gdk::DrawingContext</classname> har tagits "8650"classname> är föråldrade sedan <application>gtkmm</application> 4.10. Använd "
8610"bort."8651"<classname>Gtk::DropDown</classname> i ny kod."
86118652
8612#. (itstool) path: chapter/para8653#. (itstool) path: chapter/para
8613#: C/index-in.docbook:35498654#: C/index-in.docbook:3549
8614msgid ""8655msgid ""
8615"The <classname>ComboBox</classname> widget offers a list (or tree) of "8656"The <classname>ComboBox</classname> widget offers a list (or tree) of "
10668"used in <application>gtkmm</application>4 applications, provided "10709"used in <application>gtkmm</application>4 applications, provided "
10669"GTKMM_DISABLE_DEPRECATED and GDKMM_DISABLE_DEPRECATED are not defined. Some "10710"GTKMM_DISABLE_DEPRECATED and GDKMM_DISABLE_DEPRECATED are not defined. Some "
10670"of the dialog classes are replaced by classes that are available since "10711"of the dialog classes are replaced by classes that are available since "
10671"<application>gtkmm</application> 4.10."10712"<application>gtkmm</application> 4.10."
10672msgstr ""10713msgstr ""
nn10714"<classname>Gtk::Dialog</classname> och klasserna som härleds från den är "
10715"föråldrade sedan <application>gtkmm</application> 4.10. De kan fortfarande "
10716"användas i <application>gtkmm</application>4-program, förutsatt att "
10717"GTKMM_DISABLE_DEPRECATED och GDKMM_DISABLE_DEPRECATED inte har definierats. "
10718"Några av dialogklasserna ersätts av klasser som finns tillgängliga sedan "
10719"<application>gtkmm</application> 4.10."
1067310720
10674#. (itstool) path: note/para10721#. (itstool) path: note/para
10675#: C/index-in.docbook:446410722#: C/index-in.docbook:4464
10676msgid ""10723msgid ""
10677"The examples in this chapter use classes that are available since "10724"The examples in this chapter use classes that are available since "
10678"<application>gtkmm</application> 4.10. Similar examples with the deprecated "10725"<application>gtkmm</application> 4.10. Similar examples with the deprecated "
10679"classes are available in the <link xlink:href=\"https://gitlab.gnome.org/"10726"classes are available in the <link xlink:href=\"https://gitlab.gnome.org/"
10680"GNOME/gtkmm-documentation/tree/gtkmm-4-0/examples/book/dialogs/\"> gtkmm-4-0 "10727"GNOME/gtkmm-documentation/tree/gtkmm-4-0/examples/book/dialogs/\"> gtkmm-4-0 "
10681"branch</link> in the git repository."10728"branch</link> in the git repository."
10682msgstr ""10729msgstr ""
nn10730"Exemplen i detta kapitel använder klasser som finns tillgängliga sedan "
10731"<application>gtkmm</application> 4.10. Liknande exempel med de föråldrade "
10732"klasserna finns tillgängliga i <link xlink:href=\"https://gitlab.gnome.org/"
10733"GNOME/gtkmm-documentation/tree/gtkmm-4-0/examples/book/dialogs/\"> grenen "
10734"gtkmm-4-0</link> i git-arkivet."
1068310735
10684#. (itstool) path: chapter/para10736#. (itstool) path: chapter/para
10685#: C/index-in.docbook:447010737#: C/index-in.docbook:4470
10686#, fuzzy10738#, fuzzy
10687msgid ""10739msgid ""
10741"kunde det vara det anpassade svarsvärdet som du angivit när du använt "10793"kunde det vara det anpassade svarsvärdet som du angivit när du använt "
10742"<methodname>add_button()</methodname>."10794"<methodname>add_button()</methodname>."
1074310795
10744#. (itstool) path: chapter/para10796#. (itstool) path: chapter/para
10745#: C/index-in.docbook:449910797#: C/index-in.docbook:4499
n10746#, fuzzyn
10747msgid ""10798msgid ""
10748"To show the dialog, call <methodname>set_visible(true)</methodname>. If the "10799"To show the dialog, call <methodname>set_visible(true)</methodname>. If the "
10749"same dialog instance will be shown several times, you must also call "10800"same dialog instance will be shown several times, you must also call "
10750"<methodname>set_hide_on_close()</methodname>, or else the dialog will be "10801"<methodname>set_hide_on_close()</methodname>, or else the dialog will be "
10751"destroyed when it's closed. Connect to the <literal>response</literal> "10802"destroyed when it's closed. Connect to the <literal>response</literal> "
10752"signal, if you want to know which button was pressed. The <literal>response</"10803"signal, if you want to know which button was pressed. The <literal>response</"
10753"literal> signal handler is also where you should hide the dialog."10804"literal> signal handler is also where you should hide the dialog."
10754msgstr ""10805msgstr ""
n10755"För att visa dialogrutan, anropa <methodname>show()</methodname>. Om samma "n10806"För att visa dialogrutan, anropa <methodname>set_visible(true)</methodname>. "
10756"dialoginstans kommer visas flera gånger måste du också anropa "10807"Om samma dialoginstans kommer visas flera gånger måste du också anropa "
10757"<methodname>set_hide_on_close()</methodname>, annars kommer dialogrutan "10808"<methodname>set_hide_on_close()</methodname>, annars kommer dialogrutan "
10758"förstöras då den stängs. Anslut till <literal>response</literal>-signalen om "10809"förstöras då den stängs. Anslut till <literal>response</literal>-signalen om "
10759"du vill veta vilken knapp som trycktes på. <literal>response</literal>-"10810"du vill veta vilken knapp som trycktes på. <literal>response</literal>-"
10760"signalhanteraren är också var du ska dölja dialogrutan."10811"signalhanteraren är också var du ska dölja dialogrutan."
1076110812
10768"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10819"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10769"classGtk_1_1Dialog.html\">Referens</link>"10820"classGtk_1_1Dialog.html\">Referens</link>"
1077010821
10771#. (itstool) path: section/title10822#. (itstool) path: section/title
10772#: C/index-in.docbook:451110823#: C/index-in.docbook:4511
n10773#, fuzzyn
10774#| msgid "MessageDialog"
10775msgid "AlertDialog and MessageDialog"10824msgid "AlertDialog and MessageDialog"
n10776msgstr "MessageDialog"n10825msgstr "AlertDialog och MessageDialog"
1077710826
10778#. (itstool) path: section/para10827#. (itstool) path: section/para
10779#: C/index-in.docbook:451210828#: C/index-in.docbook:4512
10780msgid ""10829msgid ""
10781"<classname>MessageDialog</classname> (deprecated since <application>gtkmm</"10830"<classname>MessageDialog</classname> (deprecated since <application>gtkmm</"
10782"application> 4.10) and <classname>AlertDialog</classname> (available since "10831"application> 4.10) and <classname>AlertDialog</classname> (available since "
10783"<application>gtkmm</application> 4.10) are convenience classes, used to "10832"<application>gtkmm</application> 4.10) are convenience classes, used to "
10784"create simple, standard message dialogs, with a message and buttons for user "10833"create simple, standard message dialogs, with a message and buttons for user "
10785"response."10834"response."
10786msgstr ""10835msgstr ""
nn10836"<classname>MessageDialog</classname> (föråldrad sedan <application>gtkmm</"
10837"application> 4.10) och <classname>AlertDialog</classname> (tillgänglig sedan "
10838"<application>gtkmm</application> 4.10) är bekvämlighetsklasser som används "
10839"för att skapa enkla standardmeddelandedialoger, med ett meddelande och "
10840"knappar för användarsvar."
1078710841
10788#. (itstool) path: section/para10842#. (itstool) path: section/para
10789#: C/index-in.docbook:451910843#: C/index-in.docbook:4519
n10790#, fuzzyn
10791#| msgid ""
10792#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10793#| "classGtk_1_1Dialog.html\">Reference</link>"
10794msgid ""10844msgid ""
10795"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10845"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10796"classGtk_1_1AlertDialog.html\">AlertDialog Reference</link>"10846"classGtk_1_1AlertDialog.html\">AlertDialog Reference</link>"
10797msgstr ""10847msgstr ""
10798"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10848"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n10799"classGtk_1_1Dialog.html\">Referens</link>"n10849"classGtk_1_1AlertDialog.html\">AlertDialog-referens</link>"
1080010850
10801#. (itstool) path: section/para10851#. (itstool) path: section/para
10802#: C/index-in.docbook:452010852#: C/index-in.docbook:4520
n10803#, fuzzyn
10804#| msgid ""
10805#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10806#| "classGtk_1_1MessageDialog.html\">Reference</link>"
10807msgid ""10853msgid ""
10808"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10854"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10809"classGtk_1_1MessageDialog.html\">MessageDialog Reference</link>"10855"classGtk_1_1MessageDialog.html\">MessageDialog Reference</link>"
10810msgstr ""10856msgstr ""
10811"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10857"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n10812"classGtk_1_1MessageDialog.html\">Referens</link>"n10858"classGtk_1_1MessageDialog.html\">MessageDialog-referens</link>"
1081310859
10814#. (itstool) path: figure/title10860#. (itstool) path: figure/title
10815#: C/index-in.docbook:452610861#: C/index-in.docbook:4526
n10816#, fuzzyn
10817#| msgid "AboutDialog"
10818msgid "AlertDialog"10862msgid "AlertDialog"
n10819msgstr "AboutDialog"n10863msgstr "AlertDialog"
1082010864
10821#. (itstool) path: imageobject/imagedata10865#. (itstool) path: imageobject/imagedata
10822#. This is a reference to an external file such as an image or video. When10866#. This is a reference to an external file such as an image or video. When
10823#. the file changes, the md5 hash will change to let you know you need to10867#. the file changes, the md5 hash will change to let you know you need to
10824#. update your localized copy. The msgstr is not used at all. Set it to10868#. update your localized copy. The msgstr is not used at all. Set it to
10828msgctxt "_"10872msgctxt "_"
10829msgid ""10873msgid ""
10830"external ref='figures/dialogs_alertdialog.png' "10874"external ref='figures/dialogs_alertdialog.png' "
10831"md5='88fa2103ad6d842eeebc68cc8cfd94ef'"10875"md5='88fa2103ad6d842eeebc68cc8cfd94ef'"
10832msgstr ""10876msgstr ""
n10833"external ref='figures/dialogs_messagedialog.png' "n10877"external ref='figures/dialogs_alertdialog.png' "
10834"md5='58151003c2b562b9f27b064c3193f7b1'"10878"md5='88fa2103ad6d842eeebc68cc8cfd94ef'"
1083510879
10836#. (itstool) path: section/para10880#. (itstool) path: section/para
10837#: C/index-in.docbook:453210881#: C/index-in.docbook:4532
n10838#, fuzzyn
10839#| msgid ""
10840#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
10841#| "tree/master/examples/book/dialogs/aboutdialog\">Source Code</link>"
10842msgid ""10882msgid ""
10843"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10883"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
10844"master/examples/book/dialogs/alertdialog\">Source Code</link>"10884"master/examples/book/dialogs/alertdialog\">Source Code</link>"
10845msgstr ""10885msgstr ""
10846"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10886"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n10847"master/examples/book/dialogs/aboutdialog\">Källkod</link>"n10887"master/examples/book/dialogs/alertdialog\">Källkod</link>"
1084810888
10849#. (itstool) path: section/title10889#. (itstool) path: section/title
10850#: C/index-in.docbook:453710890#: C/index-in.docbook:4537
n10851#, fuzzyn
10852#| msgid "FileChooserDialog"
10853msgid "FileDialog and FileChooserDialog"10891msgid "FileDialog and FileChooserDialog"
n10854msgstr "FileChooserDialog"n10892msgstr "FileDialog och FileChooserDialog"
1085510893
10856#. (itstool) path: section/para10894#. (itstool) path: section/para
10857#: C/index-in.docbook:453810895#: C/index-in.docbook:4538
10858msgid ""10896msgid ""
10859"The <classname>FileChooserDialog</classname> (deprecated since "10897"The <classname>FileChooserDialog</classname> (deprecated since "
10860"<application>gtkmm</application> 4.10) and <classname>FileDialog</classname> "10898"<application>gtkmm</application> 4.10) and <classname>FileDialog</classname> "
10861"(available since <application>gtkmm</application> 4.10) are suitable for use "10899"(available since <application>gtkmm</application> 4.10) are suitable for use "
10862"with \"Open\" or \"Save\" menu items."10900"with \"Open\" or \"Save\" menu items."
10863msgstr ""10901msgstr ""
nn10902"<classname>FileChooserDialog</classname> (föråldrad sedan "
10903"<application>gtkmm</application> 4.10) och <classname>FileDialog</classname> "
10904"(tillgänglig sedan <application>gtkmm</application> 4.10) är lämpliga för "
10905"användning med menyobjekten ”Öppna” eller ”Spara”."
1086410906
10865#. (itstool) path: section/para10907#. (itstool) path: section/para
10866#: C/index-in.docbook:454310908#: C/index-in.docbook:4543
n10867#, fuzzyn
10868#| msgid ""
10869#| "Most of the useful member methods for this class are actually in the "
10870#| "<classname>Gtk::FileChooser</classname> base class."
10871msgid ""10909msgid ""
10872"Most of the useful member methods for <classname>FileChooserDialog</"10910"Most of the useful member methods for <classname>FileChooserDialog</"
10873"classname> are actually in the <classname>Gtk::FileChooser</classname> base "10911"classname> are actually in the <classname>Gtk::FileChooser</classname> base "
10874"class."10912"class."
10875msgstr ""10913msgstr ""
n10876"De flesta av de användbara medlemsmetoderna för denna klass är faktiskt i "n10914"De flesta av de användbara medlemsmetoderna för "
10915"<classname>FileChooserDialog</classname> finns faktiskt i basklassen "
10877"basklassen <classname>Gtk::FileChooser</classname>."10916"<classname>Gtk::FileChooser</classname>."
1087810917
10879#. (itstool) path: section/para10918#. (itstool) path: section/para
10880#: C/index-in.docbook:454810919#: C/index-in.docbook:4548
nn10920msgid ""
10921"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10922"classGtk_1_1FileDialog.html\">FileDialog Reference</link>"
10923msgstr ""
10924"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10925"classGtk_1_1FileDialog.html\">FileDialog-referens</link>"
10926 
10927# TODO: FileChooseDialog Reference
10928#. (itstool) path: section/para
10929#: C/index-in.docbook:4549
10881#, fuzzy10930#, fuzzy
10882#| msgid ""10931#| msgid ""
10883#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10932#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n10884#| "classGtk_1_1Dialog.html\">Reference</link>"n
10885msgid ""
10886"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10887"classGtk_1_1FileDialog.html\">FileDialog Reference</link>"
10888msgstr ""
10889"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10890"classGtk_1_1Dialog.html\">Referens</link>"
10891 
10892#. (itstool) path: section/para
10893#: C/index-in.docbook:4549
10894#, fuzzy
10895#| msgid ""
10896#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10897#| "classGtk_1_1FileChooserDialog.html\">Reference</link>"10933#| "classGtk_1_1FileChooserDialog.html\">FileChooserDialogReference</link>"
10898msgid ""10934msgid ""
10899"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10935"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10900"classGtk_1_1FileChooserDialog.html\">FileChooserDialog Reference</link>"10936"classGtk_1_1FileChooserDialog.html\">FileChooserDialog Reference</link>"
10901msgstr ""10937msgstr ""
10902"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10938"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n10903"classGtk_1_1FileChooserDialog.html\">Referens</link>"n10939"classGtk_1_1FileChooserDialog.html\">FileChooserDialog-referens</link>"
1090410940
10905#. (itstool) path: figure/title10941#. (itstool) path: figure/title
10906#: C/index-in.docbook:455510942#: C/index-in.docbook:4555
n10907#, fuzzyn
10908#| msgid "FileChooserDialog"
10909msgid "FileDialog"10943msgid "FileDialog"
n10910msgstr "FileChooserDialog"n10944msgstr "FileDialog"
1091110945
10912#. (itstool) path: imageobject/imagedata10946#. (itstool) path: imageobject/imagedata
10913#. This is a reference to an external file such as an image or video. When10947#. This is a reference to an external file such as an image or video. When
10914#. the file changes, the md5 hash will change to let you know you need to10948#. the file changes, the md5 hash will change to let you know you need to
10915#. update your localized copy. The msgstr is not used at all. Set it to10949#. update your localized copy. The msgstr is not used at all. Set it to
10919msgctxt "_"10953msgctxt "_"
10920msgid ""10954msgid ""
10921"external ref='figures/dialogs_filedialog.png' "10955"external ref='figures/dialogs_filedialog.png' "
10922"md5='15ecc452482112428259d0dcd8d0394a'"10956"md5='15ecc452482112428259d0dcd8d0394a'"
10923msgstr ""10957msgstr ""
n10924"external ref='figures/dialogs_filechooser.png' "n10958"external ref='figures/dialogs_filedialog.png' "
10925"md5='15ecc452482112428259d0dcd8d0394a'"10959"md5='15ecc452482112428259d0dcd8d0394a'"
1092610960
10927#. (itstool) path: section/para10961#. (itstool) path: section/para
10928#: C/index-in.docbook:456110962#: C/index-in.docbook:4561
n10929#, fuzzyn
10930#| msgid ""
10931#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
10932#| "tree/master/examples/book/dialogs/filechooserdialog\">Source Code</link>"
10933msgid ""10963msgid ""
10934"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10964"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
10935"master/examples/book/dialogs/filedialog\">Source Code</link>"10965"master/examples/book/dialogs/filedialog\">Source Code</link>"
10936msgstr ""10966msgstr ""
10937"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10967"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n10938"master/examples/book/dialogs/filechooserdialog\">Källkod</link>"n10968"master/examples/book/dialogs/filedialog\">Källkod</link>"
1093910969
10940#. (itstool) path: section/title10970#. (itstool) path: section/title
10941#: C/index-in.docbook:456610971#: C/index-in.docbook:4566
n10942#, fuzzyn
10943#| msgid "ColorChooserDialog"
10944msgid "ColorDialog and ColorChooserDialog"10972msgid "ColorDialog and ColorChooserDialog"
n10945msgstr "ColorChooserDialog"n10973msgstr "ColorDialog och ColorChooserDialog"
1094610974
10947#. (itstool) path: section/para10975#. (itstool) path: section/para
10948#: C/index-in.docbook:456710976#: C/index-in.docbook:4567
10949msgid ""10977msgid ""
10950"The <classname>ColorChooserDialog</classname> (deprecated since "10978"The <classname>ColorChooserDialog</classname> (deprecated since "
10954"since <application>gtkmm</application> 4.10) and "10982"since <application>gtkmm</application> 4.10) and "
10955"<classname>ColorDialogButton</classname> (available since "10983"<classname>ColorDialogButton</classname> (available since "
10956"<application>gtkmm</application> 4.10) open a color selection dialog when it "10984"<application>gtkmm</application> 4.10) open a color selection dialog when it "
10957"is clicked."10985"is clicked."
10958msgstr ""10986msgstr ""
nn10987"<classname>ColorChooserDialog</classname> (föråldrad sedan "
10988"<application>gtkmm</application> 4.10) och <classname>ColorDialog</"
10989"classname> (tillgänglig sedan <application>gtkmm</application> 4.10) låter "
10990"användaren välja en färg. <classname>ColorButton</classname> (föråldrad "
10991"sedan <application>gtkmm</application> 4.10) och "
10992"<classname>ColorDialogButton</classname> (tillgänglig sedan "
10993"<application>gtkmm</application> 4.10) öppnar en färgvalsdialog när de "
10994"klickas på."
1095910995
10960#. (itstool) path: section/para10996#. (itstool) path: section/para
10961#: C/index-in.docbook:457510997#: C/index-in.docbook:4575
n10962#, fuzzyn
10963#| msgid ""
10964#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10965#| "classGtk_1_1Dialog.html\">Reference</link>"
10966msgid ""10998msgid ""
10967"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10999"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10968"classGtk_1_1ColorDialog.html\">ColorDialog Reference</link>"11000"classGtk_1_1ColorDialog.html\">ColorDialog Reference</link>"
10969msgstr ""11001msgstr ""
10970"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11002"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n10971"classGtk_1_1Dialog.html\">Referens</link>"n11003"classGtk_1_1ColorDialog.html\">ColorDialog-referens</link>"
1097211004
10973#. (itstool) path: section/para11005#. (itstool) path: section/para
10974#: C/index-in.docbook:457611006#: C/index-in.docbook:4576
n10975#, fuzzyn
10976#| msgid ""
10977#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10978#| "classGtk_1_1ColorChooserDialog.html\">Reference</link>"
10979msgid ""11007msgid ""
10980"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11008"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10981"classGtk_1_1ColorChooserDialog.html\">ColorChooserDialog Reference</link>"11009"classGtk_1_1ColorChooserDialog.html\">ColorChooserDialog Reference</link>"
10982msgstr ""11010msgstr ""
10983"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11011"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n10984"classGtk_1_1ColorChooserDialog.html\">Referens</link>"n11012"classGtk_1_1ColorChooserDialog.html\">ColorChooserDialog-referens</link>"
1098511013
10986#. (itstool) path: figure/title11014#. (itstool) path: figure/title
10987#: C/index-in.docbook:458211015#: C/index-in.docbook:4582
n10988#, fuzzyn
10989#| msgid "ColorChooserDialog"
10990msgid "ColorDialog"11016msgid "ColorDialog"
n10991msgstr "ColorChooserDialog"n11017msgstr "ColorDialog"
1099211018
10993#. (itstool) path: imageobject/imagedata11019#. (itstool) path: imageobject/imagedata
10994#. This is a reference to an external file such as an image or video. When11020#. This is a reference to an external file such as an image or video. When
10995#. the file changes, the md5 hash will change to let you know you need to11021#. the file changes, the md5 hash will change to let you know you need to
10996#. update your localized copy. The msgstr is not used at all. Set it to11022#. update your localized copy. The msgstr is not used at all. Set it to
11000msgctxt "_"11026msgctxt "_"
11001msgid ""11027msgid ""
11002"external ref='figures/dialogs_colordialog.png' "11028"external ref='figures/dialogs_colordialog.png' "
11003"md5='029761e82cf06d3cbeaac2b7ccd70e57'"11029"md5='029761e82cf06d3cbeaac2b7ccd70e57'"
11004msgstr ""11030msgstr ""
n11005"external ref='figures/dialogs_colorchooserdialog.png' "n11031"external ref='figures/dialogs_colordialog.png' "
11006"md5='029761e82cf06d3cbeaac2b7ccd70e57'"11032"md5='029761e82cf06d3cbeaac2b7ccd70e57'"
1100711033
11008#. (itstool) path: section/para11034#. (itstool) path: section/para
11009#: C/index-in.docbook:458811035#: C/index-in.docbook:4588
n11010#, fuzzyn
11011#| msgid ""
11012#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
11013#| "tree/master/examples/book/dialogs/colorchooserdialog\">Source Code</link>"
11014msgid ""11036msgid ""
11015"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"11037"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
11016"master/examples/book/dialogs/colordialog\">Source Code</link>"11038"master/examples/book/dialogs/colordialog\">Source Code</link>"
11017msgstr ""11039msgstr ""
11018"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"11040"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n11019"master/examples/book/dialogs/colorchooserdialog\">Källkod</link>"n11041"master/examples/book/dialogs/colordialog\">Källkod</link>"
1102011042
11021#. (itstool) path: section/title11043#. (itstool) path: section/title
11022#: C/index-in.docbook:459311044#: C/index-in.docbook:4593
n11023#, fuzzyn
11024#| msgid "FontChooserDialog"
11025msgid "FontDialog and FontChooserDialog"11045msgid "FontDialog and FontChooserDialog"
n11026msgstr "FontChooserDialog"n11046msgstr "FontDialog och FontChooserDialog"
1102711047
11028#. (itstool) path: section/para11048#. (itstool) path: section/para
11029#: C/index-in.docbook:459411049#: C/index-in.docbook:4594
11030msgid ""11050msgid ""
11031"The <classname>FontChooserDialog</classname> (deprecated since "11051"The <classname>FontChooserDialog</classname> (deprecated since "
11034"choose a font. The <classname>FontButton</classname> (deprecated since "11054"choose a font. The <classname>FontButton</classname> (deprecated since "
11035"<application>gtkmm</application> 4.10) and <classname>FontDialogButton</"11055"<application>gtkmm</application> 4.10) and <classname>FontDialogButton</"
11036"classname> (available since <application>gtkmm</application> 4.10) open a "11056"classname> (available since <application>gtkmm</application> 4.10) open a "
11037"font chooser dialog when it is clicked."11057"font chooser dialog when it is clicked."
11038msgstr ""11058msgstr ""
nn11059"<classname>FontChooserDialog</classname> (föråldrad sedan "
11060"<application>gtkmm</application> 4.10) och <classname>FontDialog</classname> "
11061"(tillgänglig sedan <application>gtkmm</application> 4.10) låter användaren "
11062"välja ett typsnitt. <classname>FontButton</classname> (föråldrad sedan "
11063"<application>gtkmm</application> 4.10) och <classname>FontDialogButton</"
11064"classname> (tillgänglig sedan <application>gtkmm</application> 4.10) öppnar "
11065"en typsnittvalsdialog när de klickas på."
1103911066
11040#. (itstool) path: section/para11067#. (itstool) path: section/para
11041#: C/index-in.docbook:460211068#: C/index-in.docbook:4602
n11042#, fuzzyn
11043#| msgid ""
11044#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11045#| "classGtk_1_1Dialog.html\">Reference</link>"
11046msgid ""11069msgid ""
11047"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11070"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11048"classGtk_1_1FontDialog.html\">FontDialog Reference</link>"11071"classGtk_1_1FontDialog.html\">FontDialog Reference</link>"
11049msgstr ""11072msgstr ""
11050"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11073"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n11051"classGtk_1_1Dialog.html\">Referens</link>"n11074"classGtk_1_1FontDialog.html\">FontDialog-referens</link>"
1105211075
11053#. (itstool) path: section/para11076#. (itstool) path: section/para
11054#: C/index-in.docbook:460311077#: C/index-in.docbook:4603
n11055#, fuzzyn
11056#| msgid ""
11057#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11058#| "classGtk_1_1FontChooserDialog.html\">Reference</link>"
11059msgid ""11078msgid ""
11060"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11079"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11061"classGtk_1_1FontChooserDialog.html\">FontChooserDialog Reference</link>"11080"classGtk_1_1FontChooserDialog.html\">FontChooserDialog Reference</link>"
11062msgstr ""11081msgstr ""
11063"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11082"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n11064"classGtk_1_1FontChooserDialog.html\">Referens</link>"n11083"classGtk_1_1FontChooserDialog.html\">FontChooserDialog-referens</link>"
1106511084
11066#. (itstool) path: figure/title11085#. (itstool) path: figure/title
11067#: C/index-in.docbook:460911086#: C/index-in.docbook:4609
n11068#, fuzzyn
11069#| msgid "AboutDialog"
11070msgid "FontDialog"11087msgid "FontDialog"
n11071msgstr "AboutDialog"n11088msgstr "FontDialog"
1107211089
11073#. (itstool) path: imageobject/imagedata11090#. (itstool) path: imageobject/imagedata
11074#. This is a reference to an external file such as an image or video. When11091#. This is a reference to an external file such as an image or video. When
11075#. the file changes, the md5 hash will change to let you know you need to11092#. the file changes, the md5 hash will change to let you know you need to
11076#. update your localized copy. The msgstr is not used at all. Set it to11093#. update your localized copy. The msgstr is not used at all. Set it to
11080msgctxt "_"11097msgctxt "_"
11081msgid ""11098msgid ""
11082"external ref='figures/dialogs_fontdialog.png' "11099"external ref='figures/dialogs_fontdialog.png' "
11083"md5='e35e05429468fa8823416b8a0deff342'"11100"md5='e35e05429468fa8823416b8a0deff342'"
11084msgstr ""11101msgstr ""
n11085"external ref='figures/dialogs_fontchooserdialog.png' "n11102"external ref='figures/dialogs_fontdialog.png' "
11086"md5='e35e05429468fa8823416b8a0deff342'"11103"md5='e35e05429468fa8823416b8a0deff342'"
1108711104
11088#. (itstool) path: section/para11105#. (itstool) path: section/para
11089#: C/index-in.docbook:461511106#: C/index-in.docbook:4615
n11090#, fuzzyn
11091#| msgid ""
11092#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
11093#| "tree/master/examples/book/dialogs/aboutdialog\">Source Code</link>"
11094msgid ""11107msgid ""
11095"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"11108"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
11096"master/examples/book/dialogs/fontdialog\">Source Code</link>"11109"master/examples/book/dialogs/fontdialog\">Source Code</link>"
11097msgstr ""11110msgstr ""
11098"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"11111"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n11099"master/examples/book/dialogs/aboutdialog\">Källkod</link>"n11112"master/examples/book/dialogs/fontdialog\">Källkod</link>"
1110011113
11101#. (itstool) path: section/title11114#. (itstool) path: section/title
11102#: C/index-in.docbook:462011115#: C/index-in.docbook:4620
11103#, fuzzy11116#, fuzzy
11104msgid "Non-modal AboutDialog"11117msgid "Non-modal AboutDialog"
11174"master/examples/book/dialogs/aboutdialog\">Källkod</link>"11187"master/examples/book/dialogs/aboutdialog\">Källkod</link>"
1117511188
11176#. (itstool) path: section/title11189#. (itstool) path: section/title
11177#: C/index-in.docbook:465211190#: C/index-in.docbook:4652
11178#, fuzzy11191#, fuzzy
n11179#| msgid "Custom Widget"n
11180msgid "Custom Dialog"11192msgid "Custom Dialog"
n11181msgstr "Anpassad komponent"n11193msgstr "Anpassad dialogruta"
1118211194
11183#. (itstool) path: section/para11195#. (itstool) path: section/para
11184#: C/index-in.docbook:465311196#: C/index-in.docbook:4653
nn11197#, fuzzy
11185msgid ""11198msgid ""
11186"When none of the predefined dialog classes suit your needs, you can make "11199"When none of the predefined dialog classes suit your needs, you can make "
11187"your own dialog by deriving a class from <classname>Window</classname> and "11200"your own dialog by deriving a class from <classname>Window</classname> and "
11188"fill it with the widgets you need."11201"fill it with the widgets you need."
11189msgstr ""11202msgstr ""
nn11203"Om ingen av de fördefinierade dialogklasserna passar för dina behov kan du "
11204"skapa din egen dialogruta genom att härleda en klass från <classname>Window</"
11205"classname> och fylla den med komponenterna som du behöver."
1119011206
11191#. (itstool) path: section/para11207#. (itstool) path: section/para
11192#: C/index-in.docbook:465911208#: C/index-in.docbook:4659
n11193#, fuzzyn
11194#| msgid ""
11195#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11196#| "classGtk_1_1Widget.html\">Widget Reference</link>"
11197msgid ""11209msgid ""
11198"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11210"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11199"classGtk_1_1Window.html\">Window Reference</link>"11211"classGtk_1_1Window.html\">Window Reference</link>"
11200msgstr ""11212msgstr ""
11201"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11213"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n11202"classGtk_1_1Widget.html\">Widget-referens</link>"n11214"classGtk_1_1Window.html\">Window-referens</link>"
1120311215
11204#. (itstool) path: figure/title11216#. (itstool) path: figure/title
11205#: C/index-in.docbook:466511217#: C/index-in.docbook:4665
11206#, fuzzy11218#, fuzzy
n11207#| msgid "Dialogs"n
11208msgid "Window Dialog"11219msgid "Window Dialog"
n11209msgstr "Dialogrutor"n11220msgstr "Fönsterdialog"
1121011221
11211#. (itstool) path: imageobject/imagedata11222#. (itstool) path: imageobject/imagedata
11212#. This is a reference to an external file such as an image or video. When11223#. This is a reference to an external file such as an image or video. When
11213#. the file changes, the md5 hash will change to let you know you need to11224#. the file changes, the md5 hash will change to let you know you need to
11214#. update your localized copy. The msgstr is not used at all. Set it to11225#. update your localized copy. The msgstr is not used at all. Set it to
11218msgctxt "_"11229msgctxt "_"
11219msgid ""11230msgid ""
11220"external ref='figures/dialogs_windowdialog.png' "11231"external ref='figures/dialogs_windowdialog.png' "
11221"md5='53deb18153f6903fe45d015fc06ccef3'"11232"md5='53deb18153f6903fe45d015fc06ccef3'"
11222msgstr ""11233msgstr ""
n11223"external ref='figures/dialogs_messagedialog.png' "n11234"external ref='figures/dialogs_windowdialog.png' "
11224"md5='58151003c2b562b9f27b064c3193f7b1'"11235"md5='53deb18153f6903fe45d015fc06ccef3'"
1122511236
11226#. (itstool) path: section/para11237#. (itstool) path: section/para
11227#: C/index-in.docbook:467111238#: C/index-in.docbook:4671
n11228#, fuzzyn
11229#| msgid ""
11230#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
11231#| "tree/master/examples/book/dialogs/aboutdialog\">Source Code</link>"
11232msgid ""11239msgid ""
11233"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"11240"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
11234"master/examples/book/dialogs/windowdialog\">Source Code</link>"11241"master/examples/book/dialogs/windowdialog\">Source Code</link>"
11235msgstr ""11242msgstr ""
11236"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"11243"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n11237"master/examples/book/dialogs/aboutdialog\">Källkod</link>"n11244"master/examples/book/dialogs/windowdialog\">Källkod</link>"
1123811245
11239#. (itstool) path: chapter/title11246#. (itstool) path: chapter/title
11240#: C/index-in.docbook:467811247#: C/index-in.docbook:4678
11241msgid "The DrawingArea Widget"11248msgid "The DrawingArea Widget"
11242msgstr "DrawingArea-komponenten"11249msgstr "DrawingArea-komponenten"
13902"advanced."13909"advanced."
1390313910
13904#. (itstool) path: section/title13911#. (itstool) path: section/title
13905#: C/index-in.docbook:5952 C/index-in.docbook:598913912#: C/index-in.docbook:5952 C/index-in.docbook:5989
13906#, fuzzy13913#, fuzzy
n13907#| msgid "AboutDialog"n13914#| msgid "FontDialog"
13908msgid "PrintDialog"13915msgid "PrintDialog"
n13909msgstr "AboutDialog"n13916msgstr "FontDialog"
1391013917
13911#. (itstool) path: section/para13918#. (itstool) path: section/para
13912#: C/index-in.docbook:595413919#: C/index-in.docbook:5954
13913msgid ""13920msgid ""
13914"Since <application>gtkmm</application> 4.14 <classname>Gtk::PrintDialog</"13921"Since <application>gtkmm</application> 4.14 <classname>Gtk::PrintDialog</"
14349"methodname> påverkar inte de faktiska filerna som URI:erna hänvisar till, de "14356"methodname> påverkar inte de faktiska filerna som URI:erna hänvisar till, de "
14350"ändrar bara listan över senaste filer."14357"ändrar bara listan över senaste filer."
1435114358
14352#. (itstool) path: section/title14359#. (itstool) path: section/title
14353#: C/index-in.docbook:616714360#: C/index-in.docbook:6167
n14354#, fuzzyn
14355#| msgid "FileChooserDialog"
14356msgid "FileChooser and FileDialog"14361msgid "FileChooser and FileDialog"
n14357msgstr "FileChooserDialog"n14362msgstr "FileChooser och FileDialog"
1435814363
14359#. (itstool) path: section/para14364#. (itstool) path: section/para
14360#: C/index-in.docbook:616914365#: C/index-in.docbook:6169
14361msgid ""14366msgid ""
14362"<classname>FileChooser</classname> is an interface that can be implemented "14367"<classname>FileChooser</classname> is an interface that can be implemented "
14394"<classname>FileChooser</classname> and the classes that implement it are "14399"<classname>FileChooser</classname> and the classes that implement it are "
14395"deprecated since <application>gtkmm</application> 4.10. They have been "14400"deprecated since <application>gtkmm</application> 4.10. They have been "
14396"replaced by <classname>FileDialog</classname>, which is available since "14401"replaced by <classname>FileDialog</classname>, which is available since "
14397"<application>gtkmm</application> 4.10."14402"<application>gtkmm</application> 4.10."
14398msgstr ""14403msgstr ""
nn14404"<classname>FileChooser</classname> och klasserna som implementerar den är "
14405"föråldrade sedan <application>gtkmm</application> 4.10. De har ersatts av "
14406"<classname>FileDialog</classname>, vilken finns tillgänglig sedan "
14407"<application>gtkmm</application> 4.10."
1439914408
14400#. (itstool) path: section/title14409#. (itstool) path: section/title
14401#: C/index-in.docbook:619114410#: C/index-in.docbook:6191
n14402#, fuzzyn
14403#| msgid "Simple FileChooserDialog example"
14404msgid "Simple FileDialog example"14411msgid "Simple FileDialog example"
n14405msgstr "Enkelt FileChooserDialog-exempel"n14412msgstr "Enkelt FileDialog-exempel"
1440614413
14407#. (itstool) path: section/para14414#. (itstool) path: section/para
14408#: C/index-in.docbook:619314415#: C/index-in.docbook:6193
14409#, fuzzy14416#, fuzzy
14410msgid ""14417msgid ""
14951msgid "Timeouts, I/O and Idle Functions"14958msgid "Timeouts, I/O and Idle Functions"
14952msgstr "Timeout, I/O och inaktivitetsfunktioner"14959msgstr "Timeout, I/O och inaktivitetsfunktioner"
1495314960
14954#. (itstool) path: section/title14961#. (itstool) path: section/title
14955#: C/index-in.docbook:643514962#: C/index-in.docbook:6435
n14956#, fuzzyn
14957msgid "Timeouts"14963msgid "Timeouts"
14958msgstr "Timeout"14964msgstr "Timeout"
1495914965
14960#. (itstool) path: section/para14966#. (itstool) path: section/para
14961#: C/index-in.docbook:643714967#: C/index-in.docbook:6437
15458"över klassräckvidd är det ökade datadöljandet och minskade beroendena."15464"över klassräckvidd är det ökade datadöljandet och minskade beroendena."
1545915465
15460#. (itstool) path: section/programlisting15466#. (itstool) path: section/programlisting
15461#: C/index-in.docbook:667215467#: C/index-in.docbook:6672
15462#, fuzzy, no-wrap15468#, fuzzy, no-wrap
nn15469#| msgid ""
15470#| "\n"
15471#| "{\n"
15472#| "  Gtk::Button aButton;\n"
15473#| "  aButton.set_visible(true);\n"
15474#| "  ...\n"
15475#| "  app-&gt;run();\n"
15476#| "}\n"
15463msgid ""15477msgid ""
15464"<code>{\n"15478"<code>{\n"
15465"  Gtk::Button aButton;\n"15479"  Gtk::Button aButton;\n"
15466"  aButton.set_visible(true);\n"15480"  aButton.set_visible(true);\n"
15467"  ...\n"15481"  ...\n"
15470"</code>"15484"</code>"
15471msgstr ""15485msgstr ""
15472"\n"15486"\n"
15473"{\n"15487"{\n"
15474"  Gtk::Button aButton;\n"15488"  Gtk::Button aButton;\n"
n15475"  aButton.show();\n"n15489"  aButton.set_visible(true);\n"
15476"  ...\n"15490"  ...\n"
15477"  app-&gt;run();\n"15491"  app-&gt;run();\n"
15478"}\n"15492"}\n"
1547915493
15480#. (itstool) path: section/para15494#. (itstool) path: section/para
15858"Se <link linkend=\"chapter-refptr\">bilagan</link> för detaljerad "15872"Se <link linkend=\"chapter-refptr\">bilagan</link> för detaljerad "
15859"information om RefPtr."15873"information om RefPtr."
1586015874
15861#. (itstool) path: listitem/para15875#. (itstool) path: listitem/para
15862#: C/index-in.docbook:683415876#: C/index-in.docbook:6834
n15863#, fuzzyn
15864#| msgid ""
15865#| "Bjarne Stroustrup, \"The C++ Programming Language\" Forth Edition - "
15866#| "section 34.3"
15867msgid ""15877msgid ""
15868"Bjarne Stroustrup, \"The C++ Programming Language\" Fourth Edition - section "15878"Bjarne Stroustrup, \"The C++ Programming Language\" Fourth Edition - section "
15869"34.3"15879"34.3"
15870msgstr ""15880msgstr ""
15871"Bjarne Stroustrup, ”The C++ Programming Language”, 4:e utgåvan - avsnitt 34.3"15881"Bjarne Stroustrup, ”The C++ Programming Language”, 4:e utgåvan - avsnitt 34.3"
16039"<methodname>get_widget()</methodname> method, providing the widget's name. "16049"<methodname>get_widget()</methodname> method, providing the widget's name. "
16040"This name should be specified in the <application>Cambalache</application> "16050"This name should be specified in the <application>Cambalache</application> "
16041"window. If the widget could not be found, or is of the wrong type, then the "16051"window. If the widget could not be found, or is of the wrong type, then the "
16042"pointer will be set to <literal>nullptr</literal>."16052"pointer will be set to <literal>nullptr</literal>."
16043msgstr ""16053msgstr ""
n16044"För att komma åt en komponent, exempelvis för att visa en dialogruta med "n16054"För att komma åt en komponent, exempelvis för att visa en dialogruta, "
16045"<methodname>show()</methodname>, använder du metoden "16055"använder du metoden <methodname>get_widget()</methodname> och "
16046"<methodname>get_widget()</methodname> och tillhandahåller komponentens namn. "16056"tillhandahåller komponentens namn. Detta namn bör anges i "
16047"Detta namn bör anges i <application>Glade</application>s egenskapsfönster. "16057"<application>Glade</application>s egenskapsfönster. Om komponenten inte "
16048"Om komponenten inte kunde hittas eller är av fel typ så kommer pekaren "16058"kunde hittas eller är av fel typ så kommer pekaren sättas till nullptr."
16049"sättas till nullptr."
1605016059
16051#. (itstool) path: section/para16060#. (itstool) path: section/para
16052#: C/index-in.docbook:691016061#: C/index-in.docbook:6910
n16053#, fuzzyn
16054msgid ""16062msgid ""
16055"The dialogs in this chapter are derived from <classname>Gtk::Window</"16063"The dialogs in this chapter are derived from <classname>Gtk::Window</"
16056"classname> because <classname>Gtk::Dialog</classname> is deprecated since "16064"classname> because <classname>Gtk::Dialog</classname> is deprecated since "
16057"<application>gtkmm</application> 4.10."16065"<application>gtkmm</application> 4.10."
16058msgstr ""16066msgstr ""
n16059"I detta steg använder vi en <classname>Gtk::Builder</classname>-instans för "n16067"Dialogrutorna i detta kapitel härleds från <classname>Gtk::Window</"
16060"att associera en <classname>Gtk::Builder</classname>-ui-fil med vår "16068"classname> eftersom <classname>Gtk::Dialog</classname> är föråldrat sedan "
16061"programfönsterklass."16069"<application>gtkmm</application> 4.10."
1606216070
16063#. (itstool) path: section/programlisting16071#. (itstool) path: section/programlisting
16064#: C/index-in.docbook:691416072#: C/index-in.docbook:6914
16065#, fuzzy, no-wrap16073#, fuzzy, no-wrap
16066msgid ""16074msgid ""
16076msgid ""16084msgid ""
16077"<classname>Gtk::Builder</classname> checks for a null pointer, and checks "16085"<classname>Gtk::Builder</classname> checks for a null pointer, and checks "
16078"that the widget is of the expected type, and will show warnings on the "16086"that the widget is of the expected type, and will show warnings on the "
16079"command line about these."16087"command line about these."
16080msgstr ""16088msgstr ""
n16081"<application>Gtk::Builder</application> tittar efter en null-pekare, och "n16089"<classname>Gtk::Builder</classname> tittar efter en null-pekare, och "
16082"kontrollerar att komponenten är av förväntad typ, och kommer visa varningar "16090"kontrollerar att komponenten är av förväntad typ, och kommer visa varningar "
16083"på kommandoraden om dessa."16091"på kommandoraden om dessa."
1608416092
16085#. (itstool) path: section/para16093#. (itstool) path: section/para
16086#: C/index-in.docbook:692316094#: C/index-in.docbook:6923
16288"}\n"16296"}\n"
1628916297
16290#. (itstool) path: section/para16298#. (itstool) path: section/para
16291#: C/index-in.docbook:700916299#: C/index-in.docbook:7009
16292#, fuzzy16300#, fuzzy
nn16301#| msgid ""
16302#| "It's possible to pass additional arguments from "
16303#| "<methodname>get_widget_derived()</methodname> to the constructor of the "
16304#| "derived widget. For instance, this call to "
16305#| "<methodname>get_widget_derived()</methodname> <_:programlisting-1/> can "
16306#| "invoke this constructor"
16293msgid ""16307msgid ""
16294"It's possible to pass additional arguments from "16308"It's possible to pass additional arguments from "
16295"<methodname>get_widget_derived()</methodname> to the constructor of the "16309"<methodname>get_widget_derived()</methodname> to the constructor of the "
16296"derived widget. For instance, this call to <methodname>get_widget_derived()</"16310"derived widget. For instance, this call to <methodname>get_widget_derived()</"
16297"methodname>"16311"methodname>"
16298msgstr ""16312msgstr ""
16299"Det är möjligt att skicka ytterligare argument från "16313"Det är möjligt att skicka ytterligare argument från "
16300"<methodname>get_widget_derived()</methodname> till konstruktorn för den "16314"<methodname>get_widget_derived()</methodname> till konstruktorn för den "
16301"härledda komponenten. Exempelvis kan detta anrop till "16315"härledda komponenten. Exempelvis kan detta anrop till "
16302"<methodname>get_widget_derived()</methodname> <_:programlisting-1/> starta "16316"<methodname>get_widget_derived()</methodname> <_:programlisting-1/> starta "
n16303"denna konstruktor <_:programlisting-2/>"n16317"denna konstruktor"
1630416318
16305#. (itstool) path: section/programlisting16319#. (itstool) path: section/programlisting
16306#: C/index-in.docbook:701416320#: C/index-in.docbook:7014
16307#, fuzzy, no-wrap16321#, fuzzy, no-wrap
16308msgid ""16322msgid ""
18021"your custom class from that class. The <link linkend=\"custom-css-name-"18035"your custom class from that class. The <link linkend=\"custom-css-name-"
18022"example\">custom CSS name example</link> shows how that's done."18036"example\">custom CSS name example</link> shows how that's done."
18023msgstr ""18037msgstr ""
18024"Vissa <application>GTK</application>-funktioner måste, om de anropas över "18038"Vissa <application>GTK</application>-funktioner måste, om de anropas över "
18025"huvud taget, anropas från klassens init-funktion. Några andra "18039"huvud taget, anropas från klassens init-funktion. Några andra "
n18026"<application>GTK</application>-funktioner måste, om de anropas , anropas "n18040"<application>GTK</application>-funktioner måste, om de anropas, anropas från "
18027"från instansens init-funktion. Om din anpassade komponent måste anropa någon "18041"instansens init-funktion. Om din anpassade komponent måste anropa någon av "
18028"av dessa funktioner kan du härleda en klass från <classname>Glib::"18042"dessa funktioner kan du härleda en klass från <classname>Glib::"
18029"ExtraClassInit</classname> och härleda din anpassade klass från den klassen. "18043"ExtraClassInit</classname> och härleda din anpassade klass från den klassen. "
nn18044"Exemplet för <link linkend=\"custom-css-name-example\">anpassat CSS-namn</"
18030"ljande exempel visar hur detta görs."18045"link> visar hur detta görs."
1803118046
18032#. (itstool) path: section/para18047#. (itstool) path: section/para
18033#: C/index-in.docbook:778018048#: C/index-in.docbook:7780
18034msgid "This example implements a widget which draws Penrose triangles."18049msgid "This example implements a widget which draws Penrose triangles."
18035msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar."18050msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar."
18063"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"18078"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
18064"master/examples/book/custom/custom_widget/\">Källkod</link>"18079"master/examples/book/custom/custom_widget/\">Källkod</link>"
1806518080
18066#. (itstool) path: section/title18081#. (itstool) path: section/title
18067#: C/index-in.docbook:779418082#: C/index-in.docbook:7794
n18068#, fuzzyn
18069#| msgid "Custom Containers"
18070msgid "Custom CSS Names"18083msgid "Custom CSS Names"
n18071msgstr "Anpassade behållare"n18084msgstr "Anpassade CSS-namn"
1807218085
nn18086# TODO: controlled
18073#. (itstool) path: section/para18087#. (itstool) path: section/para
18074#: C/index-in.docbook:779618088#: C/index-in.docbook:7796
nn18089#, fuzzy
18075msgid ""18090msgid ""
18076"Many aspects of the look of widgets are controlled by CSS (Cascading Style "18091"Many aspects of the look of widgets are controlled by CSS (Cascading Style "
18077"Sheet) files. With CSS files you can choose color, font, line thickness, "18092"Sheet) files. With CSS files you can choose color, font, line thickness, "
18078"etc. If you give some widgets their own names or their own CSS classes, you "18093"etc. If you give some widgets their own names or their own CSS classes, you "
18079"can define CSS rules that apply only to those widgets, for instance certain "18094"can define CSS rules that apply only to those widgets, for instance certain "
18080"buttons, without affecting other similar widgets."18095"buttons, without affecting other similar widgets."
18081msgstr ""18096msgstr ""
nn18097"Många aspekter hos komponenters utseende styrs av CSS-filer (Cascading Style "
18098"Sheet). Med CSS-filer kan du välja färg, typsnitt, radtjocklek och så "
18099"vidare. Om du ger några komponenter egna namn så kan du definiera CSS-regler "
18100"som endast tillämpas på dessa komponenter, exempelvis vissa knappar, utan "
18101"att påverka andra liknande komponenter."
1808218102
18083#. (itstool) path: section/title18103#. (itstool) path: section/title
18084#: C/index-in.docbook:780318104#: C/index-in.docbook:7803
18085msgid "CSS Node Name, Widget Name, CSS Class Name"18105msgid "CSS Node Name, Widget Name, CSS Class Name"
n18086msgstr ""n18106msgstr "CSS-nodnamn, Komponentnamn, CSS-klassnamn"
1808718107
18088#. (itstool) path: listitem/para18108#. (itstool) path: listitem/para
18089#: C/index-in.docbook:780718109#: C/index-in.docbook:7807
nn18110#, fuzzy
18090msgid ""18111msgid ""
18091"<methodname>gtk_widget_class_set_css_name()</methodname> can only be called "18112"<methodname>gtk_widget_class_set_css_name()</methodname> can only be called "
18092"from the class init function. It sets the CSS node name of all instances of "18113"from the class init function. It sets the CSS node name of all instances of "
18093"a class (a GType). See the <link linkend=\"custom-init-functions\"> Class "18114"a class (a GType). See the <link linkend=\"custom-init-functions\"> Class "
18094"Init and Instance Init Functions</link> section."18115"Init and Instance Init Functions</link> section."
18095msgstr ""18116msgstr ""
nn18117"<methodname>gtk_widget_class_set_css_name()</methodname> kan endast anropas "
18118"från klassens init-funktion. Den ställer in CSS-nodnamnet för alla instanser "
18119"av en klass (en GType). Se avsnittet <link linkend=\"custom-init-"
18120"functions\"> Initieringsfunktioner för klasser och instanser</link>."
1809618121
18097#. (itstool) path: listitem/para18122#. (itstool) path: listitem/para
18098#: C/index-in.docbook:781118123#: C/index-in.docbook:7811
nn18124#, fuzzy
18125#| msgid ""
18126#| "<methodname>Gtk::Widget::set_name()</methodname> can be called from a C++ "
18127#| "constructor. It sets the name of a widget instance."
18099msgid ""18128msgid ""
18100"<methodname>Gtk::Widget::set_name()</methodname> can be called from a "18129"<methodname>Gtk::Widget::set_name()</methodname> can be called from a "
18101"<phrase role=\"nowrap\">C++</phrase> constructor. It sets the name of a "18130"<phrase role=\"nowrap\">C++</phrase> constructor. It sets the name of a "
18102"widget instance."18131"widget instance."
18103msgstr ""18132msgstr ""
nn18133"<methodname>Gtk::Widget::set_name()</methodname> kan anropas från en C++-"
18134"konstruktor. Den ställer in namnet för en komponentinstans."
1810418135
18105#. (itstool) path: listitem/para18136#. (itstool) path: listitem/para
18106#: C/index-in.docbook:781418137#: C/index-in.docbook:7814
nn18138#, fuzzy
18139#| msgid ""
18140#| "<methodname>Gtk::Widget::add_class_name()</methodname> can be called from "
18141#| "a C++ constructor. It adds the name of a CSS class, used by a widget "
18142#| "instance."
18107msgid ""18143msgid ""
18108"<methodname>Gtk::Widget::add_class_name()</methodname> can be called from a "18144"<methodname>Gtk::Widget::add_class_name()</methodname> can be called from a "
18109"<phrase role=\"nowrap\">C++</phrase> constructor. It adds the name of a CSS "18145"<phrase role=\"nowrap\">C++</phrase> constructor. It adds the name of a CSS "
18110"class, used by a widget instance."18146"class, used by a widget instance."
18111msgstr ""18147msgstr ""
nn18148"<methodname>Gtk::Widget::add_class_name()</methodname> kan anropas från en C+"
18149"+-konstruktor. Den lägger till namnet för en CSS-klass, använd av en "
18150"komponentinstans."
1811218151
18113#. (itstool) path: section/para18152#. (itstool) path: section/para
18114#: C/index-in.docbook:780518153#: C/index-in.docbook:7805
nn18154#, fuzzy
18115msgid ""18155msgid ""
18116"There are three ways of referring from a widget to data in a CSS file: <_:"18156"There are three ways of referring from a widget to data in a CSS file: <_:"
18117"itemizedlist-1/> The following example shows a button with its own CSS node "18157"itemizedlist-1/> The following example shows a button with its own CSS node "
18118"name, a label with a widget name and a label that uses its own CSS class."18158"name, a label with a widget name and a label that uses its own CSS class."
18119msgstr ""18159msgstr ""
nn18160"Det finns tre sätt att referera från en komponent till data i en CSS-fil: <_:"
18161"itemizedlist-1/> Följande exempel visar en knapp med eget CSS-nodnamn, en "
18162"etikett med ett komponentnamn och en etikett som använder sin egen CSS-klass."
1812018163
18121#. (itstool) path: section/title18164#. (itstool) path: section/title
18122#: C/index-in.docbook:782318165#: C/index-in.docbook:7823
18123msgid "Custom Style Information"18166msgid "Custom Style Information"
18124msgstr "Anpassad stilinformation"18167msgstr "Anpassad stilinformation"
18133"StyleContext::add_provider_for_display()</methodname>. <classname>Gtk::"18176"StyleContext::add_provider_for_display()</methodname>. <classname>Gtk::"
18134"StyleContext</classname> also contains methods to read some style "18177"StyleContext</classname> also contains methods to read some style "
18135"information, but this class is deprecated since <application>gtkmm</"18178"information, but this class is deprecated since <application>gtkmm</"
18136"application> 4.10."18179"application> 4.10."
18137msgstr ""18180msgstr ""
nn18181"För att lägga till en stilmall till ett program använder du en av "
18182"<methodname>Gtk::CssProvider::load_from_*()</methodname>-metoderna. Lägg "
18183"sedan till den med <methodname>Gtk::StyleProvider::"
18184"add_provider_for_display()</methodname> (tillgänglig sedan "
18185"<application>gtkmm</application> 4.10) eller <methodname>Gtk::StyleContext::"
18186"add_provider_for_display()</methodname>. <classname>Gtk::StyleContext</"
18187"classname> innehåller också metoder för att läsa viss stilinformation, men "
18188"denna klass är föråldrad sedan <application>gtkmm</application> 4.10."
1813818189
18139#. (itstool) path: section/para18190#. (itstool) path: section/para
18140#: C/index-in.docbook:783218191#: C/index-in.docbook:7832
18141msgid "CSS files are described in the documentation of GTK."18192msgid "CSS files are described in the documentation of GTK."
n18142msgstr ""n18193msgstr "CSS-filer beskrivs i dokumentationen för GTK."
1814318194
18144#. (itstool) path: section/para18195#. (itstool) path: section/para
18145#: C/index-in.docbook:783818196#: C/index-in.docbook:7838
n18146#, fuzzyn
18147#| msgid "This example implements a widget which draws Penrose triangles."
18148msgid ""18197msgid ""
18149"This example implements a button and two labels with custom style "18198"This example implements a button and two labels with custom style "
18150"information."18199"information."
n18151msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar."n18200msgstr ""
18201"Detta exempel implementerar en knapp och två etiketter med anpassad "
18202"stilinformation."
1815218203
18153#. (itstool) path: figure/title18204#. (itstool) path: figure/title
18154#: C/index-in.docbook:784118205#: C/index-in.docbook:7841
18155#, fuzzy18206#, fuzzy
n18156#| msgid "Custom Container"n
18157msgid "Custom CSS Name"18207msgid "Custom CSS Name"
n18158msgstr "Anpassad behållare"n18208msgstr "Anpassat CSS-namn"
1815918209
18160#. (itstool) path: imageobject/imagedata18210#. (itstool) path: imageobject/imagedata
18161#. This is a reference to an external file such as an image or video. When18211#. This is a reference to an external file such as an image or video. When
18162#. the file changes, the md5 hash will change to let you know you need to18212#. the file changes, the md5 hash will change to let you know you need to
18163#. update your localized copy. The msgstr is not used at all. Set it to18213#. update your localized copy. The msgstr is not used at all. Set it to
18167msgctxt "_"18217msgctxt "_"
18168msgid ""18218msgid ""
18169"external ref='figures/custom_css_name.png' "18219"external ref='figures/custom_css_name.png' "
18170"md5='fb3d968b1fd40eb219e5a78946adff0f'"18220"md5='fb3d968b1fd40eb219e5a78946adff0f'"
18171msgstr ""18221msgstr ""
n18172"external ref='figures/frame.png' md5='e7b49b5f57afa5c0d4c487c187f1be55'"n18222"external ref='figures/custom_css_name.png' "
18223"md5='fb3d968b1fd40eb219e5a78946adff0f'"
1817318224
18174#. (itstool) path: section/para18225#. (itstool) path: section/para
18175#: C/index-in.docbook:784718226#: C/index-in.docbook:7847
n18176#, fuzzyn
18177#| msgid ""
18178#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
18179#| "tree/master/examples/book/custom/custom_container/\">Source Code</link>"
18180msgid ""18227msgid ""
18181"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"18228"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
18182"master/examples/book/custom/custom_css_name/\">Source Code</link>"18229"master/examples/book/custom/custom_css_name/\">Source Code</link>"
18183msgstr ""18230msgstr ""
18184"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"18231"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n18185"master/examples/book/custom/custom_container/\">Källkod</link>"n18232"master/examples/book/custom/custom_css_name/\">Källkod</link>"
1818618233
18187#. (itstool) path: chapter/title18234#. (itstool) path: chapter/title
18188#: C/index-in.docbook:785418235#: C/index-in.docbook:7854
18189msgid "Multi-threaded programs"18236msgid "Multi-threaded programs"
18190msgstr "Flertrådade program"18237msgstr "Flertrådade program"
18696"endast ett huvudfönster. Dessa program kan använda <methodname>Gtk::"18743"endast ett huvudfönster. Dessa program kan använda <methodname>Gtk::"
18697"Application::make_window_and_run(int argc, char** argv, T_Args&amp;&amp;... "18744"Application::make_window_and_run(int argc, char** argv, T_Args&amp;&amp;... "
18698"args)</methodname>. Det skapar och visar ett fönster. När fönstret är dolt "18745"args)</methodname>. Det skapar och visar ett fönster. När fönstret är dolt "
18699"tar <methodname>make_window_and_run()</methodname> bort fönstret och "18746"tar <methodname>make_window_and_run()</methodname> bort fönstret och "
18700"returnerar till anroparen. Detta kan hända när användaren stänger fönstret, "18747"returnerar till anroparen. Detta kan hända när användaren stänger fönstret, "
n18701"eller när din kod bestämmer sig för att köra <methodname>hide()</methodname> "n18748"eller när din kod bestämmer sig för att dölja fönstret med "
18702"på fönstret. Du kan förhindra användaren från att stränga fönstret "18749"<methodname>set_visible(false)</methodname>. Du kan förhindra användaren "
18703"(exempelvis om det finns osparade ändringar) genom att åsidosätta "18750"från att stränga fönstret (exempelvis om det finns osparade ändringar) genom "
18704"<methodname>Gtk::Window::on_close_request()</methodname>."18751"att åsidosätta <methodname>Gtk::Window::on_close_request()</methodname>."
1870518752
18706#. (itstool) path: section/para18753#. (itstool) path: section/para
18707#: C/index-in.docbook:813918754#: C/index-in.docbook:8139
18708msgid "Most of our examples use this technique."18755msgid "Most of our examples use this technique."
18709msgstr "De flesta av våra exempel använder denna teknik."18756msgstr "De flesta av våra exempel använder denna teknik."
18764"Packa komponenten i en behållare med lämpligt anrop, t.ex. <methodname>Gtk::"18811"Packa komponenten i en behållare med lämpligt anrop, t.ex. <methodname>Gtk::"
18765"Box::append()</methodname>."18812"Box::append()</methodname>."
1876618813
18767#. (itstool) path: section/para18814#. (itstool) path: section/para
18768#: C/index-in.docbook:818718815#: C/index-in.docbook:8187
n18769#, fuzzyn
18770msgid ""18816msgid ""
18771"If you don't want all widgets to be shown, call <methodname>Gtk::Widget::"18817"If you don't want all widgets to be shown, call <methodname>Gtk::Widget::"
18772"set_visible(false)</methodname> on the widgets that you don't want to show. "18818"set_visible(false)</methodname> on the widgets that you don't want to show. "
18773"If a container widget is hidden, all of its child widgets are also hidden, "18819"If a container widget is hidden, all of its child widgets are also hidden, "
18774"even if <methodname>set_visible(false)</methodname> is not called on the "18820"even if <methodname>set_visible(false)</methodname> is not called on the "
18775"child widgets."18821"child widgets."
18776msgstr ""18822msgstr ""
18777"Om du inte vill att alla komponenter ska visas anropar du <methodname>Gtk::"18823"Om du inte vill att alla komponenter ska visas anropar du <methodname>Gtk::"
n18778"Widget::hide()</methodname> på komponenterna som du inte vill ska visas. Om "n18824"Widget::set_visible(false)</methodname> på komponenterna som du inte vill "
18779"en behållarkomponent är dold så är även alla dess underordnade komponenter "18825"ska visas. Om en behållarkomponent är dold så är även alla dess underordnade "
18780"dolda, även om <methodname>hide()</methodname> inte anropas på de "18826"komponenter dolda, även om <methodname>set_visible(false)</methodname> inte "
18781"underordnade komponenterna."18827"anropas på de underordnade komponenterna."
1878218828
18783#. (itstool) path: chapter/title18829#. (itstool) path: chapter/title
18784#: C/index-in.docbook:819818830#: C/index-in.docbook:8198
18785msgid "Building applications"18831msgid "Building applications"
18786msgstr "Bygga program"18832msgstr "Bygga program"
19502"FontDialogButton</classname> and <classname>Gtk::DropDown</classname> in the "19548"FontDialogButton</classname> and <classname>Gtk::DropDown</classname> in the "
19503"preference dialog. The types of the properties in these classes can't be "19549"preference dialog. The types of the properties in these classes can't be "
19504"automatically converted to the string type that <classname>Gio::Settings</"19550"automatically converted to the string type that <classname>Gio::Settings</"
19505"classname> requires."19551"classname> requires."
19506msgstr ""19552msgstr ""
n19507"Vi denna punkt kommer programmet redan reagera om du ändrar en av "n19553"Vid denna punkt kommer programmet redan reagera om du ändrar en av "
19508"inställningarna, exempelvis genom att använda kommandoradsverktyget "19554"inställningarna, exempelvis genom att använda kommandoradsverktyget "
19509"<command>gsettings</command>. Vi förväntar oss förstås att programmet "19555"<command>gsettings</command>. Vi förväntar oss förstås att programmet "
19510"tillhandahåller en inställningsdialog för dessa. Så låt oss göra så nu. Vår "19556"tillhandahåller en inställningsdialog för dessa. Så låt oss göra så nu. Vår "
19511"inställningsdialog kommer vara en underklass av <classname>Gtk::Dialog</"19557"inställningsdialog kommer vara en underklass av <classname>Gtk::Dialog</"
19512"classname>, och vi kommer använda samma tekniker som vi redan sett i "19558"classname>, och vi kommer använda samma tekniker som vi redan sett i "
19513"<classname>ExampleAppWindow</classname>: en <classname>Gtk::Builder</"19559"<classname>ExampleAppWindow</classname>: en <classname>Gtk::Builder</"
n19514"classname>-ui-fil och inställningsbindningar."n19560"classname>-ui-fil och inställningsbindningar. I detta fall är dock "
19561"bindningarna mer avancerade. Vi använder <classname>Gtk::FontDialogButton</"
19562"classname> och <classname>Gtk::DropDown</classname> i inställningsdialogen. "
19563"Typerna för egenskaperna i dessa klasser kan inte automatiskt konverteras "
19564"till den strängtyp som <classname>Gio::Settings</classname> kräver."
1951519565
19516#. (itstool) path: section/para19566#. (itstool) path: section/para
19517#: C/index-in.docbook:852519567#: C/index-in.docbook:8525
19518#, fuzzy19568#, fuzzy
19519msgid ""19569msgid ""
19523"in our application class, and make it open a new preference dialog."19573"in our application class, and make it open a new preference dialog."
19524msgstr ""19574msgstr ""
19525"När vi skapat filen <filename>prefs.ui</filename> och klassen "19575"När vi skapat filen <filename>prefs.ui</filename> och klassen "
19526"<classname>ExampleAppPrefs</classname> besöker vi åter metoden "19576"<classname>ExampleAppPrefs</classname> besöker vi åter metoden "
19527"<methodname>ExampleApplication::on_action_preferences()</methodname> i vår "19577"<methodname>ExampleApplication::on_action_preferences()</methodname> i vår "
n19528"programklass, och får den öppna en ny inställningsdialog."n19578"programklass, och får den att öppna en ny inställningsdialog."
1952919579
19530#. (itstool) path: section/programlisting19580#. (itstool) path: section/programlisting
19531#: C/index-in.docbook:853019581#: C/index-in.docbook:8530
19532#, fuzzy, no-wrap19582#, fuzzy, no-wrap
19533#| msgid ""19583#| msgid ""
20060"filename>. Denna fil finns i modulen <literal>gtkmm-documentation</literal> "20110"filename>. Denna fil finns i modulen <literal>gtkmm-documentation</literal> "
20061"i GNOME git."20111"i GNOME git."
2006220112
20063#. (itstool) path: chapter/para20113#. (itstool) path: chapter/para
20064#: C/index-in.docbook:876020114#: C/index-in.docbook:8760
n20065#, fuzzyn
20066msgid ""20115msgid ""
20067"If you do decide to contribute, please post your contribution as an issue or "20116"If you do decide to contribute, please post your contribution as an issue or "
20068"merge request to <link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-"20117"merge request to <link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-"
20069"documentation\">GitLab</link>. You can also discuss your ideas on GNOME's "20118"documentation\">GitLab</link>. You can also discuss your ideas on GNOME's "
20070"<link xlink:href=\"https://discourse.gnome.org\">Discourse</link> instance, "20119"<link xlink:href=\"https://discourse.gnome.org\">Discourse</link> instance, "
20074"document is free, and any addition you provide must also be free. That is, "20123"document is free, and any addition you provide must also be free. That is, "
20075"people must be able to use any portion of your examples in their programs, "20124"people must be able to use any portion of your examples in their programs, "
20076"and copies of this document (including your contribution) may be distributed "20125"and copies of this document (including your contribution) may be distributed "
20077"freely."20126"freely."
20078msgstr ""20127msgstr ""
n20079"Om du bestämmer dig för att bidra kan du skicka ditt bidrag till sändlistan "n20128"Om du bestämmer dig för att bidra kan du skicka ditt bidrag som etärende "
20080"för <application>gtkmm</application> på <link xlink:href=\"mailto:gtkmm-"
20081"list@gnome.org\">&lt;gtkmm-list@gnome.org&gt;</link> eller som ett ärende "
20082"eller en merge-förfrågan till <link xlink:href=\"https://gitlab.gnome.org/"20129"eller en merge-förfrågan till <link xlink:href=\"https://gitlab.gnome.org/"
n20083"GNOME/gtkmm-documentation\">GitLab</link>. Var också medveten om att hela "n20130"GNOME/gtkmm-documentation\">GitLab</link>. Du kan också diskutera dina idéer "
20131"på GNOMEs <link xlink:href=\"https://discourse.gnome.org\">Discourse</link>-"
20132"instans, under kategorin <link xlink:href=\"https://discourse.gnome.org/c/"
20133"platform/language-bindings\"> Platform/Language bindings</link> med en "
20134"<literal>cplusplus</literal>-tagg. Var också medveten om att hela detta "
20084"detta dokument är fritt, och alla tillägg du gör också måste vara fria. Det "20135"dokument är fritt, och alla tillägg du gör också måste vara fria. Det vill "
20085"vill säga att personer måste kunna använda alla delar av dina exempel i sina "20136"säga att personer måste kunna använda alla delar av dina exempel i sina "
20086"program, och kopior av detta dokument (med ditt bidrag) måste kunna spridas "20137"program, och kopior av detta dokument (med ditt bidrag) måste kunna spridas "
20087"fritt."20138"fritt."
2008820139
20089#. (itstool) path: appendix/title20140#. (itstool) path: appendix/title
20090#: C/index-in.docbook:877520141#: C/index-in.docbook:8775
21448"}\n"21499"}\n"
2144921500
21450#. (itstool) path: section/para21501#. (itstool) path: section/para
21451#: C/index-in.docbook:938321502#: C/index-in.docbook:9383
21452#, fuzzy21503#, fuzzy
n21453#| msgid "Changes in <application>gtkmm</application> 3"n21504#| msgid "Deprecations in <application>gtkmm</application> 4.10"
21454msgid "And here's an excerpt from a <application>gdb</application> session."21505msgid "And here's an excerpt from a <application>gdb</application> session."
n21455msgstr "Ändringar i <application>gtkmm</application> 3"n21506msgstr "Föråldringar i <application>gtkmm</application> 4.10"
2145621507
21457#. (itstool) path: section/programlisting21508#. (itstool) path: section/programlisting
21458#: C/index-in.docbook:938621509#: C/index-in.docbook:9386
21459#, fuzzy, no-wrap21510#, fuzzy, no-wrap
21460msgid ""21511msgid ""
22042msgid "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"22093msgid "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"
22043msgstr "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"22094msgstr "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"
2204422095
22045#. (itstool) path: section/para22096#. (itstool) path: section/para
22046#: C/index-in.docbook:963222097#: C/index-in.docbook:9632
n22047#, fuzzyn
22048msgid ""22098msgid ""
22049"To set up <application>jhbuild</application>, follow the basic installation "22099"To set up <application>jhbuild</application>, follow the basic installation "
22050"instructions from the <link xlink:href=\"https://gnome.pages.gitlab.gnome."22100"instructions from the <link xlink:href=\"https://gnome.pages.gitlab.gnome."
22051"org/jhbuild/\">jhbuild manual</link>. After you have installed "22101"org/jhbuild/\">jhbuild manual</link>. After you have installed "
22052"<application>jhbuild</application>, you should copy the sample "22102"<application>jhbuild</application>, you should copy the sample "
22053"<application>jhbuild</application> configuration file into your home "22103"<application>jhbuild</application> configuration file into your home "
22054"directory by executing the following command from the <application>jhbuild</"22104"directory by executing the following command from the <application>jhbuild</"
22055"application> directory: <_:screen-1/>"22105"application> directory: <_:screen-1/>"
22056msgstr ""22106msgstr ""
22057"Följ de grundläggande installationsinstruktionerna från <link xlink:"22107"Följ de grundläggande installationsinstruktionerna från <link xlink:"
n22058"href=\"http://developer-old.gnome.org/jhbuild/unstable/\">handboken för "n22108"href=\"https://gnome.pages.gitlab.gnome.org/jhbuild/\">handboken för "
22059"jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter "22109"jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter "
22060"att du har installerat <application>jhbuild</application> bör du kopiera "22110"att du har installerat <application>jhbuild</application> bör du kopiera "
22061"<application>jhbuild</application>-exempelkonfigurationsfilen till din "22111"<application>jhbuild</application>-exempelkonfigurationsfilen till din "
22062"hemkatalog genom att exekvera följande kommando från katalogen "22112"hemkatalog genom att exekvera följande kommando från katalogen "
22063"<application>jhbuild</application>: <_:screen-1/>"22113"<application>jhbuild</application>: <_:screen-1/>"
25503"<function>_WRAP_ENUM()</function> för att de är komplext definierade (kanske "25553"<function>_WRAP_ENUM()</function> för att de är komplext definierade (kanske "
25504"med C-makron) men att det fortfarande är önskvärt att inkludera den "25554"med C-makron) men att det fortfarande är önskvärt att inkludera den "
25505"genererade uppräkningsdokumentationen. Det används med samma syntax som "25555"genererade uppräkningsdokumentationen. Det används med samma syntax som "
25506"<function>_WRAP_ENUM()</function> och bearbetar även samma alternativ (även "25556"<function>_WRAP_ENUM()</function> och bearbetar även samma alternativ (även "
25507"om NO_GTYPE, gtype_func &lt;funktionsnamn&gt; och CONV_TO_INT ignoreras för "25557"om NO_GTYPE, gtype_func &lt;funktionsnamn&gt; och CONV_TO_INT ignoreras för "
n25508"att de inte gör någon skillnad på bara uppräkningens dokumentation "n25558"att de inte gör någon skillnad då bara uppräkningens dokumentation "
25509"genereras)."25559"genereras)."
2551025560
25511#. (itstool) path: section/title25561#. (itstool) path: section/title
25512#: C/index-in.docbook:1110625562#: C/index-in.docbook:11106
25513msgid "_WRAP_GERROR"25563msgid "_WRAP_GERROR"
25995"<parameter>out_mime_type</parameter>:"26045"<parameter>out_mime_type</parameter>:"
25996msgstr ""26046msgstr ""
2599726047
25998#. (itstool) path: section/programlisting26048#. (itstool) path: section/programlisting
25999#: C/index-in.docbook:1127926049#: C/index-in.docbook:11279
n26000#, no-wrapn26050#, fuzzy, no-wrap
26051#| msgid ""
26052#| "\n"
26053#| "GInputStream* gdk_clipboard_read_finish(GdkClipboard* clipboard,\n"
26054#| "  GAsyncResult* result, const char** out_mime_type, GError** error)\n"
26001msgid ""26055msgid ""
26002"<code>GInputStream* gdk_clipboard_read_finish(GdkClipboard* clipboard,\n"26056"<code>GInputStream* gdk_clipboard_read_finish(GdkClipboard* clipboard,\n"
26003"  GAsyncResult* result, const char** out_mime_type, GError** error)\n"26057"  GAsyncResult* result, const char** out_mime_type, GError** error)\n"
26004"</code>"26058"</code>"
26005msgstr ""26059msgstr ""
nn26060"\n"
26061"GInputStream* gdk_clipboard_read_finish(GdkClipboard* clipboard,\n"
26062"  GAsyncResult* result, const char** out_mime_type, GError** error)\n"
2600626063
26007#. (itstool) path: section/para26064#. (itstool) path: section/para
26008#: C/index-in.docbook:1128226065#: C/index-in.docbook:11282
26009msgid ""26066msgid ""
26010"To have <command>gmmproc</command> place the value returned in the <phrase "26067"To have <command>gmmproc</command> place the value returned in the <phrase "
26013"macro could be used:"26070"macro could be used:"
26014msgstr ""26071msgstr ""
2601526072
26016#. (itstool) path: section/programlisting26073#. (itstool) path: section/programlisting
26017#: C/index-in.docbook:1128626074#: C/index-in.docbook:11286
n26018#, no-wrapn26075#, fuzzy, no-wrap
26019msgid ""26076msgid ""
26020"<code>\n"26077"<code>\n"
26021"_WRAP_METHOD(Glib::RefPtr&lt;Gio::InputStream&gt; read_finish(\n"26078"_WRAP_METHOD(Glib::RefPtr&lt;Gio::InputStream&gt; read_finish(\n"
26022"  const Glib::RefPtr&lt;Gio::AsyncResult&gt;&amp; result,\n"26079"  const Glib::RefPtr&lt;Gio::AsyncResult&gt;&amp; result,\n"
26023"  Glib::ustring&amp; out_mime_type{&gt;&gt;}), gdk_clipboard_read_finish, errth26080"  Glib::ustring&amp; out_mime_type{&gt;&gt;}), gdk_clipboard_read_finish, errth
>row)\n">row)\n"
26024"</code>"26081"</code>"
26025msgstr ""26082msgstr ""
nn26083"\n"
26084"_WRAP_METHOD(Glib::RefPtr&lt;Gio::InputStream&gt; read_finish(\n"
26085"  const Glib::RefPtr&lt;Gio::AsyncResult&gt;&amp; result,\n"
26086"  Glib::ustring&amp; out_mime_type{&gt;&gt;}), gdk_clipboard_read_finish, errth
 >row)\n"
2602626087
26027#. (itstool) path: section/para26088#. (itstool) path: section/para
26028#: C/index-in.docbook:1129126089#: C/index-in.docbook:11291
26029#, fuzzy26090#, fuzzy
26030msgid ""26091msgid ""
26040"char**</classname> such as the following:"26101"char**</classname> such as the following:"
26041msgstr ""26102msgstr ""
26042"<function>_WRAP_METHOD()</function> stöder också att sätta C++-"26103"<function>_WRAP_METHOD()</function> stöder också att sätta C++-"
26043"utdataparametrar från C- utdataparametrar om den omslutna C-funktionen har "26104"utdataparametrar från C- utdataparametrar om den omslutna C-funktionen har "
26044"några. Anta till exempel att vi vill omsluta följande C-funktion som "26105"några. Anta till exempel att vi vill omsluta följande C-funktion som "
n26045"returnerar ett värde i sin C-utdataparameter <parameter>rect</parameter>: <_:"n26106"returnerar ett värde i sin C-utdataparameter <parameter>out_mime_type</"
26046"programlisting-1/> För att <command>gmmproc</command> ska placera det "26107"parameter>: <_:programlisting-1/> För att <command>gmmproc</command> ska "
26047"returnerade värdet i C++-utdataparametern <parameter>rect</parameter> ska "26108"placera det returnerade värdet i C++-utdataparametern "
26048"något i stil med följande <function>_WRAP_METHOD()</function>-makro "26109"<parameter>out_mime_type</parameter> ska något i stil med följande "
26049"användas: <_:programlisting-2/> Den <literal>{&gt;&gt;}</literal> som följer "26110"<function>_WRAP_METHOD()</function>-makro användas: <_:programlisting-2/> "
26050"parameternamnet <parameter>rect</parameter> indikerar att C++-"26111"Den <literal>{&gt;&gt;}</literal> som följer parameternamnet "
26112"<parameter>out_mime_type</parameter> indikerar att C++-utdataparametern ska "
26051"utdataparametern ska ställas in från värdet som returneras C-parametern från "26113"ställas in från värdet som returneras i C-parametern från C-funktionen. "
26052"C-funktionen. <command>gmmproc</command> kommer att generera en deklaration "26114"<command>gmmproc</command> kommer att generera en deklaration av en temporär "
26053"av en temporär variabel i vilken värdet av C-utdataparametern och en sats "26115"variabel i vilken värdet av C-utdataparametern och en sats som sätter C++-"
26054"som sätter C++-utdataparametern från temporärvariabeln. I detta fall kan det "26116"utdataparametern från temporärvariabeln. I detta fall kan det vara "
26055"vara nödvändigt att ha en <function>_INITIALIZATION()</function> som "26117"nödvändigt att ha en <function>_INITIALIZATION()</function> som beskriver "
26056"beskriver hur en <classname>Gdk::Rectangle&amp;</classname> ska sättas från "26118"hur en <classname>Glib::ustring&amp;</classname> ska sättas från en "
26057"en <classname>GdkRectangle*</classname> som i det följande: <_:"26119"<classname>const char**</classname> som i det följande: <_:programlisting-3/>"
26058"programlisting-3/>"
2605926120
26060#. (itstool) path: section/programlisting26121#. (itstool) path: section/programlisting
26061#: C/index-in.docbook:1130126122#: C/index-in.docbook:11301
26062#, fuzzy, no-wrap26123#, fuzzy, no-wrap
26063#| msgid ""26124#| msgid ""
26064#| "\n"26125#| "\n"
n26065#| "_INITIALIZATION(`Gtk::Widget&amp;',`GtkWidget*',`$3 = Glib::wrap($4)')\n"n26126#| "_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const
 >_gchar_ptr_to_ustring($4)')\n"
26066msgid ""26127msgid ""
26067"<code>\n"26128"<code>\n"
26068"_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const_gc26129"_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const_gc
>har_ptr_to_ustring($4)')\n">har_ptr_to_ustring($4)')\n"
26069"</code>"26130"</code>"
26070msgstr ""26131msgstr ""
26071"\n"26132"\n"
n26072"_INITIALIZATION(`Gtk::Widget&amp;',`GtkWidget*',`$3 = Glib::wrap($4)')\n"n26133"_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const_gc
 >har_ptr_to_ustring($4)')\n"
2607326134
26074#. (itstool) path: section/title26135#. (itstool) path: section/title
26075#: C/index-in.docbook:1130726136#: C/index-in.docbook:11307
26076#, fuzzy26137#, fuzzy
26077msgid "String Parameter Processing"26138msgid "String Parameter Processing"
27370#~ "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"27431#~ "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
27371#~ "namespaceGlib.html\">Reference</link>"27432#~ "namespaceGlib.html\">Reference</link>"
27372#~ msgstr ""27433#~ msgstr ""
27373#~ "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"27434#~ "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
27374#~ "namespaceGlib.html\">Referens</link>"27435#~ "namespaceGlib.html\">Referens</link>"
n27375 n
27376#, fuzzy
27377#~| msgid ""
27378#~| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27379#~| "tree/master/examples/book/iconview\">Source Code, IconView</link>"
27380#~ msgid ""
27381#~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27382#~ "tree/master/examples/book/gridview\">Source Code, GridView</link>"
27383#~ msgstr ""
27384#~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27385#~ "tree/master/examples/book/iconview\">Källkod, IconView</link>"
2738627436
27387#, no-wrap27437#, no-wrap
27388#~ msgid "intltool-update --pot"27438#~ msgid "intltool-update --pot"
27389#~ msgstr "intltool-update --pot"27439#~ msgstr "intltool-update --pot"
2739027440
27520#~ "<_:programlisting-2/>"27570#~ "<_:programlisting-2/>"
27521#~ msgstr ""27571#~ msgstr ""
27522#~ "Detta kompileringsfel kan se ut så här: <_:programlisting-1/> eller så "27572#~ "Detta kompileringsfel kan se ut så här: <_:programlisting-1/> eller så "
27523#~ "här: <_:programlisting-2/>"27573#~ "här: <_:programlisting-2/>"
2752427574
tt27575#~ msgid "Widget Name and CSS Node Name"
27576#~ msgstr "Komponentnamn och CSS-nodnamn"
27577 
27525#, fuzzy27578#, fuzzy
27526#~ msgid ""27579#~ msgid ""
27527#~ "<classname>MessageDialog</classname> is a convenience class, used to "27580#~ "<classname>MessageDialog</classname> is a convenience class, used to "
27528#~ "create simple, standard message dialogs, with a message and buttons for "27581#~ "create simple, standard message dialogs, with a message and buttons for "
27529#~ "user response. You can specify the type of message and the text in the "27582#~ "user response. You can specify the type of message and the text in the "

Note: both files are merged with latest POT file.